re-frida

re-frida is a skill for Claude Code from dslsdzc/rev-skills. It costs 37 tokens per session (4,673 once invoked), scanned B, original, Apache-2.0.

A Frida-based workflow for observing and changing software while it is running. Frida is a tool for inserting code into desktop and mobile applications at runtime.

In plain words
What is it for?
It helps hook functions, change arguments or return values, inspect loaded modules and classes, trace runtime call chains, and test Android, iOS, Linux, macOS, or Windows applications in controlled environments.
Why use it?
It helps investigate behaviour that cannot be understood from source or files alone, such as runtime calls, certificate checks, and root detection.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It helps hook functions, change arguments or return values, inspect loaded modules and classes, trace runtime call chains, and test Android, iOS, Linux, macOS, or Windows applications in controlled environments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-frida
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dslsdzc/rev-skills --skill re-frida
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for re-frida

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-frida/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-frida)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-frida"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-frida/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for re-frida

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-frida"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-frida.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,673 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 35
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 124
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.04673
Opus 5 $0.00018 $0.02337
Sonnet 5 $0.00007 $0.00935
Haiku 4.5 $0.00004 $0.00467

Measured 10d ago against content hash 034ca39af888, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

re-frida scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

adb shell "chmod 755 /data/local/tmp/frida-server"
.claude/skills/re-frida/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Frida 动态插桩

何时使用 / 何时不用

  • 用:需要 hook 函数(拦截 / 改参 / 改返回值)、枚举模块与类、绕过证书校验 / root 检测、观察运行时调用链
  • 用:移动端(Android / iOS)与桌面端(Linux / macOS / Windows)统一的插桩需求
  • 不用:只需静态分析(Android 走 [[re-apk]],格式走 [[re-format-elf]] / [[re-format-macho]] 系列)
  • 不用:需要系统调用级跟踪(走 [[re-tracing]])
  • 不用:需要完整调试器体验(断点 / 单步 / 内存,走 [[re-gdb]] / [[re-lldb]] / [[re-x64dbg]])

工具准备

动态分析按 [[platform-tips]] 最高原则:移动端在受控设备 / 模拟器快照内执行,桌面端插桩前确认沙箱环境。所有工具先验证再使用。

frida-tools —— 主机侧命令行工具

  • 跨平台(Linux / macOS / Windows): pip install frida-tools(Python 3.8+;建议 venv: python3 -m venv venv && venv/bin/pip install frida-tools
  • 验证: frida --version(输出 frida 版本号);frida-ps -U / frida-trace -h 可用

frida-server —— 移动端插桩代理

  • 下载:GitHub release https://github.com/frida/frida/releases,选 frida-server-<版本>-android-<架构>(arm64 选 -arm64,32 位选 -arm,模拟器 x86_64 选 -x86_64
  • 版本必须与主机 frida 完全一致(对照 frida --version),架构与设备匹配,否则连接报协议错误(见坑 1)
  • Android 推送与启动:
    adb push frida-server-xxx /data/local/tmp/frida-server
    adb shell "chmod 755 /data/local/tmp/frida-server"
    adb shell "su -c /data/local/tmp/frida-server" &   # 或 adb root 后直接运行
    
  • iOS 越狱设备:Sileo / Cydia 添加源 https://build.frida.re 安装 frida deb,或 ssh root@<设备IP> 后安装
  • 验证: 主机 frida-ps -U 能列出设备进程(-U = USB 设备,-R = 远程 ip:port)

objection —— 免写 JS 的快速插桩

  • 跨平台: pip install objection
  • 验证: objection --version
  • 用法: objection -g <应用> explore,内置 android hooking / ios hooking 子命令(如 android hooking list activitiesios sslpinning disable

操作步骤

按顺序执行,每步记下结果。

  1. spawn vs attach 选择

    frida -U -f com.target.app              # spawn:从零启动应用,能抓启动早期逻辑(解密 / 初始化)
    frida -U com.target.app                 # attach:附加到已运行进程(不重启)
    frida-trace -U -f com.target.app -i "Java!*"   # 启动即跟踪 Java 方法调用
    

    规则:抓启动逻辑 / 绕过早期检测用 spawn;只是观察现状用 attach。attach 晚于启动,可能错过已执行完的早期逻辑(见坑 2)。

  2. JS hook 编写(拦截 / 改参 / 返回值)

    // hook.js —— 拦截、改参数、改返回值(Android Java 层)
    Java.perform(function () {
      var cls = Java.use("com.example.Target");
      cls.doLogin.implementation = function (user, pass) {
        console.log("doLogin(" + user + ", " + pass + ")");
        return this.doLogin("hacked", "pass123");   // 改参
      };
      cls.isLicensed.implementation = function () {
        return true;                                // 改返回值
      };
    });
    
    frida -U -f com.target.app -l hook.js
    

    原生函数用 Interceptor.attach(Module.findExportByName("libfoo.so", "func"), { onEnter: ..., onLeave: ... }) 拦截(onEnter 改参数、onLeave 改返回值)。桌面端同样本:frida -p <pid> -l hook.js

Read the full file on GitHub · 165 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 165 lines · 37 tokens per session scan B 034ca39af888

Subscribe to this mod's changes

re-frida is a skill published in the GitHub repository dslsdzc/rev-skills (52 stars, last pushed 12d ago), licensed Apache-2.0. It adds 37 tokens to every session and 4,673 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

Reverse Engineering & Binary Analysis

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

deobfuscating-powershell-obfuscated-malware

Systematically deobfuscates multi-layer PowerShell malware using AST analysis, dynamic tracing, and tools like PSDecode and PowerDecode to reveal hidden payloads and C2 infrastructure. Use during incident response or malware analysis when a PowerShell script is obfuscated with encoding, string manipulation, or…

Youngmaidainon/Agent-Level-Up · 90 tokens

conducting-malware-incident-response

Respond to malware infections across enterprise endpoints by identifying the malware family, determining infection vectors, assessing spread, and executing containment, analysis, eradication, and recovery procedures aligned to MITRE ATT&CK. Use when responding to a confirmed or suspected malware infection, including…

Youngmaidainon/Agent-Level-Up · 78 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

Youngmaidainon/Agent-Level-Up · 95 tokens

analyzing-network-covert-channels-in-malware

Detect and analyze covert communication channels used by malware, including DNS tunneling, ICMP exfiltration, steganographic HTTP, and other protocol abuse used for C2 and data exfiltration. Use when investigating suspicious DNS/ICMP/HTTP traffic patterns, hunting for hidden C2 channels in network captures, or…

Youngmaidainon/Agent-Level-Up · 90 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.

Mikaru0Mystic/sectinel · 40 tokens