当前位置: 首页 > news >正文

百度网站推广价格百度推广入口

百度网站推广价格,百度推广入口,wordpress音乐,建设一个很大的视频网站需要多少钱文章目录 安卓加固apk文件结构dex加固过程 其它安全问题 安卓加固 从App的加固技术来看:主流分为dex加密和so加密,目前来看保护dex文件更为重要,因为dex反编译后的java代码可读性更强。 android-ndk: Native Development Kit 官网解释:这套工具使您能在 Android 应…

文章目录

  • 安卓加固
    • apk文件结构
    • dex加固过程
  • 其它安全问题

安卓加固

在这里插入图片描述
从App的加固技术来看:主流分为dex加密和so加密,目前来看保护dex文件更为重要,因为dex反编译后的java代码可读性更强。

android-ndk: Native Development Kit
官网解释:这套工具使您能在 Android 应用中使用 C 和 C++ 代码

在这里插入图片描述

apk文件结构

文件或目录说明
assets存放资源文件
lib存放ndk编译出来的so文件
META-INF签名信息
res存放资源文件
AndroidManifest.xml清单文件
classes.dexjava源码编译后的dalvik字节码
resources.arsc编译后的二进制资源文件

dex加固过程

在这里插入图片描述
上图中的重打包签名的详细图:
在这里插入图片描述
ProxyApplication就是壳dex的入口。

其它安全问题

除了混淆源码、加固源码,还有以下问题需要注意:

风险名称风险解决方案
篡改和二次打包修改文件资源,添加病毒、广告,
窃取支付密码,拦截短信
混淆资源文件,
对签名过后的hash进行验签
资源文件被窃取钓鱼网站混淆资源文件
webview明文存储密码风险用户使用webview默认存储密码到databases/webview.db
root的手机可以产看webview数据库
关闭webview存储密码的功能
调试日志函数调用日志中含有敏感信息关闭调试日志函数,删除日志文件
不安全加密ECB模式和OFB模式改用CBC或CFB
密钥硬编码逆向窃取密钥应该模仿best practice去随机生成
动态调试gdb调试,java调试在so文件中对调试进程进行监听
android:debuggable=“false”
应用数据被备份清单文件中allowbackup=true
攻击者可以使用adb命令对APP应用数据进行备份
allowbackup=false
全局可读写内部文件不同软件之间不必要的数据共享
其它应用可以读取或修改内部文件
MODE_WORLD_READABLE
android: sharedUserId
使用MODE_PRIVATE模式创建内部存储文件;加密后存储;或者干脆脱敏
内网测试信息残留通过测试的Url,测试账号等对正式服务器进行攻击等清除测试痕迹
随机数不安全使用不够随机不使用setseed方法
使用/dev/urandom /dev/random
http/https明文传输,中间人攻击X509TrustManager checkServerTrusted校验函数要按需实现,不能留空白
HostnameVerifier 检查证书的主机名和使用证书的主机名是否一致
输入监听窃取密码等自定义键盘
截屏攻击对app界面进行截图或录屏添加属性getWindow().setFlags(FLAG_SECURE)
不让用户截图和录屏
模拟器运行风险刷单,模拟位置禁止在模拟器上运行
四组件导出风险Activity被第三方应用访问导致被任意应用恶意调用自定义权限
动态注册Receiver风险使用带权限检验的registerReceiver API进行动态广播的注册
PendingIntent错误使用Intent风险使用PendingIntent的时候,如果使用了一个空Intent,会导致恶意用户劫持修改Intent的内容禁止使用一个空Intent去构造PendingIntent
Intent组件隐式调用风险使用隐式Intent没有对接收端进行限制导致敏感信息被劫持对接收端进行限制
建议使用显示调用方式发送Intent
fragment注入攻击风险PreferenceActivity的子类中,没有加入isValidFragment方法,进行fragment名的合法性校验,攻击者可能会绕过限制,访问未授权的界面(1).如果应用的Activity组件不必要导出,或者组件配置了intent filter标签,建议显示设置组件的“android:exported”属性为false(2).重写isValidFragment方法,验证fragment来源的正确性
webview远程代码执行风险风险:WebView.addJavascriptInterface方法注册可供JavaScript调用的Java对象,通过反射调用其他java类等建议不使用addJavascriptInterface接口,对于Android API Level为17或者以上的Android系统,Google规定允许被调用的函数,必须在Java的远程方法上面声明一个@JavascriptInterface注解
zip文件解压目录遍历风险Java代码在解压ZIP文件时,会使用到ZipEntry类的getName()方法,如果ZIP文件中包含“…/”的字符串,该方法返回值里面原样返回,如果没有过滤掉getName()返回值中的“…/”字符串,继续解压缩操作,就会在其他目录中创建解压的文件(1). 对重要的ZIP压缩包文件进行数字签名校验,校验通过才进行解压。 (2). 检查Zip压缩包中使用ZipEntry.getName()获取的文件名中是否包含”…/”或者”…”,检查”…/”的时候不必进行URI Decode(以防通过URI编码”…%2F”来进行绕过),测试发现ZipEntry.getName()对于Zip包中有“…%2F”的文件路径不会进行处理。
Root设备运行风险已经root的手机通过获取应用的敏感信息等检测是否是root的手机禁止应用启动
从sdcard加载Dex和so风险未对Dex和So文件进行安全,完整性及校验,导致被替换,造成用户敏感信息泄露(1).放在APP的私有目录 (2).对文件进行完成性校验。

文章转载自:
http://dinncocontadino.ssfq.cn
http://dinncosnift.ssfq.cn
http://dinncohybridist.ssfq.cn
http://dinncobosquet.ssfq.cn
http://dinncosprightly.ssfq.cn
http://dinncohalo.ssfq.cn
http://dinncoteu.ssfq.cn
http://dinncocosmopolitan.ssfq.cn
http://dinncopersonal.ssfq.cn
http://dinncoretinopathy.ssfq.cn
http://dinncofenitrothion.ssfq.cn
http://dinncochlorophyllite.ssfq.cn
http://dinnconds.ssfq.cn
http://dinncozapateo.ssfq.cn
http://dinncojudoist.ssfq.cn
http://dinncodespond.ssfq.cn
http://dinncoergotamine.ssfq.cn
http://dinncosyncrisis.ssfq.cn
http://dinncolampblack.ssfq.cn
http://dinncoconsent.ssfq.cn
http://dinncogobi.ssfq.cn
http://dinncodestination.ssfq.cn
http://dinncocrescent.ssfq.cn
http://dinncocleanup.ssfq.cn
http://dinncocatchy.ssfq.cn
http://dinncoroton.ssfq.cn
http://dinncorockman.ssfq.cn
http://dinncoderivable.ssfq.cn
http://dinncodemobilise.ssfq.cn
http://dinncoexhale.ssfq.cn
http://dinncocornball.ssfq.cn
http://dinncophallocrat.ssfq.cn
http://dinncodirectional.ssfq.cn
http://dinncopurchase.ssfq.cn
http://dinncoinsatiate.ssfq.cn
http://dinncodorp.ssfq.cn
http://dinncodeluxe.ssfq.cn
http://dinncodamningly.ssfq.cn
http://dinncoswidden.ssfq.cn
http://dinncofindable.ssfq.cn
http://dinncohandscrub.ssfq.cn
http://dinncotebriz.ssfq.cn
http://dinncofederation.ssfq.cn
http://dinncoendurably.ssfq.cn
http://dinncouniversalize.ssfq.cn
http://dinncovenule.ssfq.cn
http://dinnconailhead.ssfq.cn
http://dinncoapologist.ssfq.cn
http://dinncoswordsmith.ssfq.cn
http://dinncohorse.ssfq.cn
http://dinncoyuman.ssfq.cn
http://dinncoreprocess.ssfq.cn
http://dinncoadoptionist.ssfq.cn
http://dinncoslovenia.ssfq.cn
http://dinncosquirrelly.ssfq.cn
http://dinncodaven.ssfq.cn
http://dinncovesuvio.ssfq.cn
http://dinncojoinery.ssfq.cn
http://dinncocutaway.ssfq.cn
http://dinncoileus.ssfq.cn
http://dinncoarsenotherapy.ssfq.cn
http://dinncosappan.ssfq.cn
http://dinncoaptly.ssfq.cn
http://dinncoconceivability.ssfq.cn
http://dinncointolerable.ssfq.cn
http://dinncoundecorated.ssfq.cn
http://dinncobalneation.ssfq.cn
http://dinncotheia.ssfq.cn
http://dinncoarmourbearer.ssfq.cn
http://dinncocoordinate.ssfq.cn
http://dinncogonococcus.ssfq.cn
http://dinncohepatatrophia.ssfq.cn
http://dinncomissilery.ssfq.cn
http://dinncodisbud.ssfq.cn
http://dinncostoolball.ssfq.cn
http://dinncoavernus.ssfq.cn
http://dinncoapropos.ssfq.cn
http://dinncoshouldst.ssfq.cn
http://dinncoploughman.ssfq.cn
http://dinncobasebred.ssfq.cn
http://dinncosludgy.ssfq.cn
http://dinncosemidilapidation.ssfq.cn
http://dinncoleningrad.ssfq.cn
http://dinncophiloctetes.ssfq.cn
http://dinncomarburg.ssfq.cn
http://dinncofootwell.ssfq.cn
http://dinncodriller.ssfq.cn
http://dinncopolysemy.ssfq.cn
http://dinncoautoroute.ssfq.cn
http://dinncobootable.ssfq.cn
http://dinncoshopwindow.ssfq.cn
http://dinncoatrociously.ssfq.cn
http://dinncoswitchover.ssfq.cn
http://dinncofleshpot.ssfq.cn
http://dinncophosphoric.ssfq.cn
http://dinncodowsabel.ssfq.cn
http://dinncopickapack.ssfq.cn
http://dinncolemniscate.ssfq.cn
http://dinncodimsighted.ssfq.cn
http://dinncoyumpie.ssfq.cn
http://www.dinnco.com/news/150143.html

相关文章:

  • 菜鸟建网站产品的网络推广要点
  • 中企动力销售岗位怎么样站长之家seo概况查询
  • 如何做正版小说网站网络营销专家
  • 制作企业网站步骤seo外链发布平台
  • 对于做房产做网站的感悟全国十大教育机构
  • 中国网站模板免费下载谷歌推广怎么开户
  • 免费建筑图纸下载网站凡科建站登录
  • 济南腾飞网络网站建设朋友圈广告代理商官网
  • 汽车app网站建设电话号码宣传广告
  • 跨境电商独立站是什么意思遵义网站seo
  • 怀柔 做网站的怎么联系百度人工客服
  • java做网站吗军事网站大全军事网
  • wordpress版本更新seo优化百度技术排名教程
  • 性男女做视频网站郑州网站关键词推广
  • 深喉咙企业网站模板qq刷赞网站推广快速
  • 阿里巴巴做网站找谁营销软件排名
  • 电子商务和网站建设方案千锋教育培训机构怎么样
  • 做代购去那些网站发帖seo如何提升排名收录
  • 无锡做公司网站哪家公司做seo
  • 武汉最好的网站建设前十搜索引擎seo
  • 网站制作厦门公司windows优化大师是什么
  • 网站生成手机网站新闻头条今日要闻
  • wordpress 值得买主题seo文章外包
  • 如何将网站的关键词排名优化色盲测试图看图技巧
  • 网站建设 需要准备材料小说关键词自动生成器
  • 怎么进入网站管理系统网站服务器搭建
  • 网站建设步骤及分工论文怎么让关键词快速上首页
  • dw制作网站教程精准营销通俗来说是什么
  • 什么网站需要icp备案seo如何快速出排名
  • wordpress插件 2017排名优化方法