agentleFS
TheQmaksTheQmaks/areclaw/CLAUDE.md

areclaw

CLAUDE.md67 starsChanged 9 months agoMITView on GitHub

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always run source scripts/setup-env.sh before working

    line 162
  2. Very specific:

    Run python pytools/check_updates.py periodically to verify tool versions

    line 163
  3. Very specific:

    Read tools/phantom-frida/build-info.json for current name, port, and version.

    line 168
  4. Very specific:

    Use /agent android-reverser for intelligent analysis sessions.

    line 183

≈ “Common” is an estimate: at least 1 in 5 of the 27,641 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Android Reversing Environment

Setup

source scripts/setup-env.sh

Tool Paths

ToolPath / Command
jadxtools/jadx/bin/jadx
jadx-guitools/jadx/bin/jadx-gui
apktooljava -jar tools/apktool/apktool.jar
dex2jard2j-dex2jar.sh (in PATH after setup-env.sh)
Ghidratools/ghidra/ghidra_*_PUBLIC/support/analyzeHeadless (version auto-detected by setup-env.sh)
uber-apk-signerjava -jar tools/uber-apk-signer/uber-apk-signer.jar
java-deobfuscatorjava -jar tools/java-deobfuscator/deobfuscator.jar
threadtearjava -jar tools/threadtear/threadtear.jar
narumii deobfjava -jar tools/narumii-deobfuscator/Deobfuscator.jar
simplifyjava -jar tools/simplify/simplify.jar -i obfuscated.apk -o deobfuscated.apk
Il2CppDumpertools/il2cppdumper/Il2CppDumper.exe libil2cpp.so global-metadata.dat output/
radare2r2 (in PATH after setup-env.sh)
apk.shbash tools/apk.sh/apk.sh pull <pkg> / patch app.apk --arch arm64
justapkjustapk download <pkg> — multi-source APK downloader with auto-fallback (APK20, F-Droid, APKPure, APKMirror, Uptodown, APKCombo)
trufflehogtools/trufflehog/trufflehog.exe filesystem workspace/output/<pkg>/ — find 800+ secret types + validate if live
phantom-fridatools/phantom-frida/ — stealth Frida server (see build-info.json for name/port)
adb$ANDROID_SDK_ROOT/platform-tools/adb
aapt2aapt2 (in PATH after setup-env.sh)
apkidapkid <apk>
fridafrida -U -f <pkg> -l <script>
objectionobjection -g <pkg> explore
sosaversosaver -p <pkg> -o output/
clsdumperclsdumper -p <pkg> -o output/

Workspace Layout

workspace/
├── samples/        ← APK files
├── output/         ← Decompiled code (per-package dirs)
├── frida-scripts/  ← Frida JS scripts (15 scripts)
├── reports/        ← Analysis reports (markdown)
├── patches/        ← Modified/repackaged APKs
├── credentials/    ← Test account credentials
├── traffic/        ← Intercepted HTTP traffic
└── collections/    ← Postman collections

Python Tools

python pytools/ui_explorer.py <command>        # UIAutomator interaction
tema <command>                                  # Temporary email (7 providers, auto-fallback)
python pytools/traffic_to_collection.py <fmt>   # Traffic → Postman
python pytools/check_updates.py                 # Check tool updates
jnitrace -l <lib.so> <pkg>                      # Trace JNI API calls
fridump3 -U -s <pkg> -o dump/                   # Dump process memory
apkleaks -f <apk>                               # Scan APK for secrets/URLs/API keys
mitmproxy2swagger -i flow -o api.yaml -p <url>  # Traffic → OpenAPI spec

Python Libraries (import in scripts)

import lief       # Parse/modify ELF, DEX, OAT, VDEX binaries
import capstone   # ARM/AArch64 disassembly
import unicorn    # CPU emulation (ARM64 off-device)
import r2pipe     # Script radare2 from Python
from triton import *  # Symbolic execution + taint for ARM (deobfuscation)
from androidemu.emulator import Emulator  # Emulate Android .so with JNI (ARM32)

Frida Scripts (workspace/frida-scripts/) — 15 scripts

ScriptUsage
ssl-bypass.jsfrida -U -f <pkg> -l ssl-bypass.js
root-bypass.jsfrida -U -f <pkg> -l root-bypass.js
http-logger.jsfrida -U -f <pkg> -l http-logger.js — logs JSON to stdout
api-tracer.jsRetrofit interface discovery
enum-classes.jsList all app classes
crypto-tracer.jsCipher/digest/key logging
shared-prefs-monitor.jsSharedPreferences read/write monitor
intent-monitor.jsActivity/broadcast/service intent monitor
hook-template.jsEdit TARGET_CLASS/TARGET_METHOD, then run
anti-frida-bypass.jsMulti-layer: maps, ports, strings, threads, ptrace, CT bypass
stalker-tracer.jsNative instruction tracing via Frida Stalker (ARM64 SVC, calls)
stacktrace-helper.jsCross-thread stack trace linking (Thread, Executor, Handler, Coroutines)
dex-loader-monitor.jsRuntime DEX/SO loading detection + auto-dump
reflection-tracer.jsReflection-based obfuscation defeat (Class.forName, Method.invoke)
webview-interceptor.jsHybrid app JS bridge monitoring + URL/settings audit

Common Workflows

Pull APK from device

adb shell pm path com.example.app
adb pull /data/app/.../base.apk workspace/samples/

Download APK from store (no device needed)

justapk download com.example.app -o workspace/samples/

Decompile and analyze APK

jadx -d workspace/output/com.example.app --deobf workspace/samples/base.apk

Deep secret scan on decompiled source

tools/trufflehog/trufflehog.exe filesystem workspace/output/com.example.app/ --json

Intercept traffic

frida -U -f com.example.app \
  -l workspace/frida-scripts/ssl-bypass.js \
  -l workspace/frida-scripts/http-logger.js

Dump packed DEX

clsdumper -p com.example.app -o workspace/output/

Sign modified APK

java -jar tools/uber-apk-signer/uber-apk-signer.jar -a workspace/patches/modified.apk

Inject Frida gadget (automated)

bash tools/apk.sh/apk.sh patch app.apk --arch arm64

Scan APK for secrets

apkleaks -f workspace/samples/base.apk --json -o workspace/reports/secrets.json

Unity IL2CPP analysis

unzip app.apk lib/arm64-v8a/libil2cpp.so assets/bin/Data/Managed/Metadata/global-metadata.dat -d workspace/output/
tools/il2cppdumper/Il2CppDumper.exe workspace/output/lib/arm64-v8a/libil2cpp.so workspace/output/assets/bin/Data/Managed/Metadata/global-metadata.dat workspace/output/il2cpp/

Generate API docs from traffic

mitmproxy2swagger -i workspace/traffic/capture.flow -o workspace/collections/api.yaml -p https://api.example.com --examples

Security Framework References

DocumentPath
OWASP M1–M10 Checklistdocs/references/owasp-checklist.md
MASTG Test Case Mappingdocs/references/mastg-mapping.md
MITRE ATT&CK Coveragedocs/references/mitre-attack-mapping.md

Rules

  • Reports go to workspace/reports/<pkg>-<YYYY-MM-DD>.md
  • Credentials go to workspace/credentials/<pkg>.json
  • Traffic logs to workspace/traffic/<pkg>-traffic.json
  • Postman collections to workspace/collections/<pkg>.json
  • Always run source scripts/setup-env.sh before working
  • Run python pytools/check_updates.py periodically to verify tool versions

Phantom-Frida (Stealth Frida Server)

Pre-built stealth server is auto-downloaded to tools/phantom-frida/ by install.py. Read tools/phantom-frida/build-info.json for current name, port, and version.

# Deploy to device (read name from build-info.json)
adb push tools/phantom-frida/<name>-server /data/local/tmp/<name>-server
adb shell chmod 755 /data/local/tmp/<name>-server
adb shell /data/local/tmp/<name>-server -D &
adb forward tcp:<port> tcp:<port>
frida -H 127.0.0.1:<port> -f com.example.app

# Update to latest weekly build
python scripts/install.py --update --tools-only

Agent

Use /agent android-reverser for intelligent analysis sessions.

Skills

SkillDescription
/analyze-apk <pkg>Full security analysis -> report
/find-api <pkg>API endpoint discovery -> documentation + Postman
/intercept <pkg>Smart traffic interception (adapts to pinning type)
/register <pkg>Automated account registration with temp email
/compare-versions <old> <new>Diff two APK versions

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.