当前位置:网站首页>调用系统函数安全方案
调用系统函数安全方案
2022-06-24 22:46:00 【华为云】
1.直接调用系统的函数
不建议使用理由:我们在编码过程中,有很多功能系统都已经有提供的函数接口,一般情况下我们都是直接调用系统函数直接进行实现功能。但你知道吗?你这样直接调用系统函数在一些场景下是不安全的,当你的程序在被安全逆向研究的时候,直接可以通过程序的导入表,以及反汇编看到调用的系统函数,这样我们只要一查下系统函数的功能,那么就可以知道大概的功能点,还有只要一挂钩(HOOK技术)上系统的函数,那么你所调用的系统函数的功能就失效了。
下图展示上面函数通过调用系统函数实现的汇编代码。大家可以直接通过展示的系统函数去分析功能。
2.自定义实现函数再调用函数
建议使用理由:我们对于关键功能函数建议还是采用自己去实现函数功能,再去调用,这样可以加强程序被直接分析的难度,从而加强程序的安全性。
下图是自定义实现函数调用的汇编代码,可以从下面汇编代码看到关键函数是自己实现的,那么要了解该函数功能就需要进入到函数内部去做分析。这从而加强了关键函数功能的相对安全。
边栏推荐
- Redistemplate operates redis. This article is enough (I) [easy to understand]
- Of the seven levels of software testers, it is said that only 1% can achieve level 7
- 业务与技术双向结合构建银行数据安全管理体系
- Convert string array to list collection
- Please run IDA with elevated permissons for local debugging.
- Jetson Nano 从入门到实战(案例:Opencv配置、人脸检测、二维码检测)
- Test / development programmers, 30, do you feel confused? And where to go
- Redis 那些事
- 同花顺是正规平台吗?同花顺开户安全吗
- The role of software security testing, how to find a software security testing company to issue a report?
猜你喜欢
How to quickly familiarize yourself with the code when you join a new company?
What is the reason for the disconnection of video playback due to the EHOME protocol access of easycvr platform?
Exploring the mystery of C language program -- C language program compilation and preprocessing
Cusdis - 轻量级、隐私优先的开源评论系统 | 倾城之链
左手梦想 右手责任 广汽本田不光关注销量 还有儿童安全
元宇宙的生态圈
Intranet learning notes (7)
Redis
qt打包exe文件,解决“无法定位程序输入点_ZdaPvj于动态链接库Qt5Cored.dll”
ProcessOn制作ER过程(自定义)
随机推荐
write a number of lines to a new file in vim
华泰证券如何开户能做到万分之一?证券开户安全可靠吗
What are the reasons for the abnormal playback of the online channel of the channel accessed by easycvr national standard protocol?
【Proteus仿真】Arduino UNO+继电器控制照明设备
Are programmers from Huawei, Alibaba and other large manufacturers really easy to find?
How to monitor the log through the easycvr interface to observe the platform streaming?
AI服装生成,帮你完成服装设计的最后一步
File system - basic knowledge of disk and detailed introduction to FAT32 file system
LogMiner 数据库日志挖掘
How to get the picture outside the chain - Netease photo album [easy to understand]
Beescms website penetration test and repair comments "suggestions collection"
3年测试经验,连简历上真正需要什么都没搞明白,张口就要20k?
How do the TMUX color palette work?
beescms网站渗透测试和修复意见「建议收藏」
MOS管相关知识
Fake wireless speakers in stores? Sony responded: the product has reserved a wired connection interface, which can be used in complex scenarios
internship:svn的使用
Is the compass reliable? Is it safe to open a securities account?
测试/开发程序员,30而立,你是否觉得迷茫?又当何去何从......
Investigation on key threats of cloud computing applications in 2022