Android应用安全分析工具集

admin 2026-06-26 08:18:57 网络安全文章 来源:ZONE.CI 全球网 0 阅读模式

文章总结: 该项目是基于Frida的Android应用安全分析工具集,支持运行时自动捕获加密哈希参数、监控网络请求和WebView行为,并内置Root模拟器检测绕过功能。主要特性包括加密自吐、HTTP拦截、行为监控等,需在已root设备或模拟器上运行Frida-server,提供Python启动和命令行两种使用方式。 综合评分: 85 文章分类: 移动安全,安全工具,逆向分析,渗透测试,漏洞分析


cover_image

Android 应用安全分析工具集

jenn619 jenn619

HACK之道

2026年6月24日 08:45 重庆

在小说阅读器读本章

去阅读

项目简介

基于 Frida 的 Android 应用安全分析工具集,运行时自动捕获加密/哈希参数,监控网络请求、WebView、动态加载等行为,并内置 Root/模拟器检测绕过。

功能特性

| 模块 | 功能 | | — | — | | 加密自吐 | 自动输出 Cipher(AES/DES/RSA)、MessageDigest(MD5/SHA)、HMAC 的算法名、密钥、IV、明文、密文 | | HTTP 拦截 | 拦截 OkHttp3 / HttpURLConnection / Apache HttpClient 的请求 URL、Headers、Body | | WebView 监控 | 捕获 loadUrl / loadData / addJavascriptInterface,检测 XSS、JS Bridge RCE 等安全风险 | | 安全绕过 | Bypass Root 检测、模拟器检测、调试器检测、FLAG_DEBUGGABLE、签名校验 | | 行为监控 | DexClassLoader 动态加载、SharedPreferences、SQLite、Intent 跳转、剪贴板、Log 输出 | | SSL Bypass | 绕过 Android < 7 TrustManager + OkHTTPv3 CertificatePinner | | 防退出 | 拦截 Runtime.exit / Process.killProcess,防止 App 自杀退出 | | Native 监控 | Hook SO 层导出函数、JNI RegisterNatives 注册监控 |

环境要求

  • Frida

    : Python 端 pip install frida frida-tools

  • 设备

    : 已 root 的 Android 设备或模拟器(如雷电模拟器),已安装并运行 frida-server

  • ADB

    : 设备可通过 adb 连接

  • Python

    : 3.6+

快速开始

方式一:Python 启动(推荐)

# 1. 修改 Crypto.py 中的目标包名TARGET_PACKAGE =&nbsp;"com.target.app"
# 2. 运行python Crypto.py

方式二:Frida 命令行

# Attach 模式(附加到已运行进程)frida&nbsp;-U -n com.target.app -l main.js
# Spawn 模式(启动时注入,适合 early hook)frida -U -f com.target.app -l main.js --no-pause

配置

Crypto.py 配置

# 修改顶部配置区域ADB_PATH =&nbsp;r"D:\path\to\adb.exe"&nbsp; &nbsp; &nbsp;# adb 路径TARGET_PACKAGE =&nbsp;"com.target.app"&nbsp; &nbsp; &nbsp;# 目标包名MODE =&nbsp;"attach"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# "attach" 或 "spawn"# 模块开关(按需开启/关闭)MODULES = {&nbsp; &nbsp;&nbsp;"Utils.js": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;True, &nbsp; &nbsp; &nbsp;&nbsp;# 工具函数(必须)&nbsp; &nbsp;&nbsp;"Hash.js": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;True, &nbsp; &nbsp; &nbsp;&nbsp;# 哈希算法&nbsp; &nbsp;&nbsp;"Mac.js": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;True, &nbsp; &nbsp; &nbsp;&nbsp;# HMAC&nbsp; &nbsp;&nbsp;"Cipher.js": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;True, &nbsp; &nbsp; &nbsp;&nbsp;# 加密算法&nbsp; &nbsp;&nbsp;"HttpMonitor.js": &nbsp; &nbsp;&nbsp;True, &nbsp; &nbsp; &nbsp;&nbsp;# HTTP 拦截&nbsp; &nbsp;&nbsp;"WebViewMonitor.js": &nbsp;True, &nbsp; &nbsp; &nbsp;&nbsp;# WebView 安全检测&nbsp; &nbsp;&nbsp;"RootBypass.js": &nbsp; &nbsp; &nbsp;True, &nbsp; &nbsp; &nbsp;&nbsp;# Root/模拟器绕过&nbsp; &nbsp;&nbsp;"DexMonitor.js": &nbsp; &nbsp; &nbsp;True, &nbsp; &nbsp; &nbsp;&nbsp;# 动态加载 + 行为监控&nbsp; &nbsp;&nbsp;"String.js": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;False, &nbsp; &nbsp; &nbsp;# String 监控(噪音较多)&nbsp; &nbsp;&nbsp;"Native.js": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;False, &nbsp; &nbsp; &nbsp;# Native SO 层监控}

查看目标包名

# 列出所有应用包名adb&nbsp;shell pm list packages
# 查看当前前台应用adb shell&nbsp;"dumpsys activity | grep mFocusedActivity"

项目结构

├── Crypto.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Python 启动器(模块管理 + 自动连接 + 输出记录)├── main.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Frida 命令行入口(精简版,含防退出)├── Utils.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# 工具函数(Hex/Base64/UTF8 编解码、调用栈打印)│├── Cipher.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# javax.crypto.Cipher 加密算法自吐├── Cipher2.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# 增强版:更多 Cipher.init 重载 + SecretKeySpec├── Hash.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# MessageDigest 哈希算法监控├── Mac.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# javax.crypto.Mac HMAC 监控├── String.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# java.lang.String 操作监控├── Native.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Native SO 层函数 Hook│├── HttpMonitor.js &nbsp; &nbsp; &nbsp;&nbsp;# OkHttp / HttpURLConnection / Apache HTTP 拦截├── WebViewMonitor.js &nbsp; &nbsp;# WebView 安全检测(XSS/JS Bridge/跨域)├── RootBypass.js &nbsp; &nbsp; &nbsp; &nbsp;# Root/模拟器/调试器检测绕过├── DexMonitor.js &nbsp; &nbsp; &nbsp; &nbsp;# 动态加载 + SP/SQLite/Intent/剪贴板/Log 监控│├── ssl.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# SSL 证书校验绕过(TrustManager + OkHTTPv3)└──&nbsp;exit.js &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 防应用自杀退出

项目地址

https://github.com/jenn619/frida_Hook_tools_Android


免责声明:

本文所载程序、技术方法仅面向合法合规的安全研究与教学场景,旨在提升网络安全防护能力,具有明确的技术研究属性。

任何单位或个人未经授权,将本文内容用于攻击、破坏等非法用途的,由此引发的全部法律责任、民事赔偿及连带责任,均由行为人独立承担,本站不承担任何连带责任。

本站内容均为技术交流与知识分享目的发布,若存在版权侵权或其他异议,请通过邮件联系处理,具体联系方式可点击页面上方的联系我

本文转载自:HACK之道 jenn619 jenn619《Android 应用安全分析工具集》

评论:0   参与:  0