intercept

A workflow for inspecting an Android app's network security and setting up traffic interception. Traffic interception means observing the app's network requests through a proxy, including when the app uses certificate pinning.

In plain words
What is it for?
Use it to inspect an APK's network configuration, detect common certificate-pinning implementations, and prepare interception with the appropriate bypass method.
Why use it?
It helps identify why a normal proxy cannot see the app's HTTPS traffic and choose a matching bypass approach.

Command

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.

agentmods
npx agentmods add commands/theqmaks/areclaw-plugin/intercept
Clone the repo
git clone --depth 1 https://github.com/TheQmaks/areclaw-plugin
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,563 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00012 $0.01563
Opus 5 $0.00006 $0.00781
Sonnet 5 $0.00002 $0.00313
Haiku 4.5 $0.00001 $0.00156

Measured 2d ago against content hash 7dbb18b87772, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

intercept 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 2d 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/<NAME>-server
plugins/areclaw/commands/intercept.md · 163 lines

How it starts

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

/intercept

Set up intelligent traffic interception for an Android application. This is not a one-size-fits-all proxy setup — it detects the app's SSL pinning and protection mechanisms and selects the correct bypass strategy automatically.

Instructions

1. Analyze the app's network security configuration

Decompile the app's resources to inspect its network security posture:

apktool d -s -f -o /tmp/intercept_recon $APK

Read res/xml/network_security_config.xml and look for:

  • <domain-config cleartextTrafficPermitted="false"> — HTTPS only.
  • <pin-set> — Certificate pinning configured.
  • <trust-anchors><certificates src="user"/> — User CA trusted (easy to intercept).
  • No config file — default behavior (user CA NOT trusted on Android 7+).

2. Detect the pinning implementation

grep -rn 'CertificatePinner\|TrustManager\|X509\|ssl_pinning\|NetworkSecurityConfig' workspace/output/$PKG/

Determine the pinning type:

  • None — Simple proxy or Frida HTTP logger is enough.
  • OkHttp CertificatePinnerssl-bypass.js handles it.
  • Custom X509TrustManagerssl-bypass.js handles it.
  • Conscrypt/platformssl-bypass.js handles it.
  • Native TLS (BoringSSL in .so) — Need Interceptor hook on SSL_CTX_set_verify.
  • Flutter — Need special Flutter SSL bypass.
  • React Native — Patch network_security_config plus ssl-bypass.js.

3. Select and execute the interception strategy

Based on the reconnaissance in steps 1 and 2, choose one of these strategies:

Strategy A — No Pinning:

frida -U -f $PKG -l ${CLAUDE_PLUGIN_ROOT}/skills/android-security/scripts/frida/http-logger.js

Strategy B — Standard Pinning (OkHttp/TrustManager/Conscrypt):

frida -U -f $PKG \
  -l ${CLAUDE_PLUGIN_ROOT}/skills/android-security/scripts/frida/ssl-bypass.js \
  -l ${CLAUDE_PLUGIN_ROOT}/skills/android-security/scripts/frida/http-logger.js

Strategy C — Heavy Pinning with Root Detection:

frida -U -f $PKG \
  -l ${CLAUDE_PLUGIN_ROOT}/skills/android-security/scripts/frida/root-bypass.js \
  -l ${CLAUDE_PLUGIN_ROOT}/skills/android-security/scripts/frida/ssl-bypass.js \
  -l ${CLAUDE_PLUGIN_ROOT}/skills/android-security/scripts/frida/http-logger.js

Read the full file on GitHub · 163 lines

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. 2d ago First seen · 163 lines · 12 tokens per session scan B 7dbb18b87772

Subscribe to this mod's changes

intercept is a command published in the GitHub repository TheQmaks/areclaw-plugin (2 stars, last pushed 5mo ago), licensed MIT. It adds 12 tokens to every session and 1,563 once invoked, about $0.0001 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-31.