/fritap:fritap-androidfrom fritap
Captures TLS session keys and decrypted traffic from Android apps using friTap on rooted devices or emulators. Covers frida-server setup, version matching, spawn vs attach, and troubleshooting common failures.
Ships in fritap. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Extract TLS keys and decrypted traffic from an Android app by hooking its TLS library with Frida. friTap reads keys and plaintext inside the process, so certificate pinning does not get in the way and no proxy or CA install is needed.
fritap-capture skill once the device works; for decrypting the result use
fritap-decrypt.adb shell su -c id prints uid=0(root).pip install fritap). friTap 2.x needs frida 17.x.frida
package. A different version gives frida version mismatch.frida --version
adb shell getprop ro.product.cpu.abi
adb push frida-server-<version>-android-arm64 /data/local/tmp/frida-server
adb shell chmod 755 /data/local/tmp/frida-server
adb shell su -c "/data/local/tmp/frida-server &"
adb shell ps | grep frida-server
Download frida-server from the frida GitHub releases with the same version as
frida --version. If the device must keep an older frida-server (15.x/16.x),
install the matching legacy friTap line instead (README "Frida
compatibility", constraints/). FRITAP_STRICT_FRIDA=1 turns a frida-major
mismatch into a startup error.
Check the device.
adb devices
fritap devices
fritap devices --json
fritap devices exits 1 on a Frida error (device not found, frida-server
not running). Agent API: fritap q list_devices (MCP tool list_devices).
Find the package name.
fritap apps -m
fritap apps --device emulator-5554 --running --json
adb shell pm list packages | grep example
pid 0 means not running. Agent API:
fritap q list_apps --device usb --running --limit 20
(MCP list_apps with {"device": "usb", "running": true}). Use the
identifier (e.g. com.example.app) as the target.
Pick the device flag. -m / --mobile selects the USB device; with
several devices pass the id right after it (-m emulator-5554). For a
network frida-server use -H ip:port. There is no -D flag on the capture
command; --device ID exists only on fritap apps.
Pick spawn or attach.
-s): friTap starts the app and hooks before it runs, so startup
handshakes are caught. Most fragile mode (anti-tamper, watchdogs).-s): open the app by hand, then attach to the running
package or PID. Misses early handshakes but survives more often. Use it
first when an app crashes.Capture. Keys only, plaintext pcap, or full capture:
fritap -m -s -k keys.log com.example.app
fritap -m -k keys.log -p plain.pcap com.example.app
fritap -m -f -p full.pcapng -k keys.log com.example.app
fritap -m emulator-5554 -s -k keys.log --tap run.tap --duration 120 com.example.app
-k writes an NSS SSLKEYLOGFILE (QUIC keys from Cronet/QUICHE are
included).-p alone writes the decrypted plaintext as a pcap (synthetic
packets). -f captures the real encrypted traffic on the device and
requires -p; combine it with -k to decrypt later. A .pcapng
name embeds the keys as a Decryption Secrets Block (--pcap-format).--owner-capture limits -f to the app's own UID (rooted device).--tap writes a .tap for fritap --analyze / the agent read tools;
--duration stops cleanly (Ctrl+C does the same).Agent API (blocks until done; capture: full = keylog + pcap):
fritap q start_capture --target com.example.app --device usb --capture full --duration-s 120.
Over MCP call start_capture with the same keys, then capture_status
and stop_capture (see fritap-capture).
Add Android options only when needed.
fritap -m -s -ar -k keys.log com.example.app
fritap -m -k keys.log --pairip-safe -v com.example.app
fritap -m --enable_spawn_gating -k keys.log -p plain.pcap com.example.app
fritap -m --patterns patterns.json -k keys.log com.example.flutter_app
fritap -m --library-scan -k keys.log com.example.app
-ar / --anti_root: anti-root hooks for apps that refuse rooted
devices. Agent API: start_capture with "anti_root": true
(--anti-root on fritap q).--pairip-safe: for apps shipping Google PairIP (libpairipcore.so);
friTap prints ANTI-TAMPER PROTECTION DETECTED: Google PairIP. Attach is
the proven path; spawn defers hooks ~8 s and misses early handshakes.
Trigger fresh handshakes right after keylog hooks installed. Agent API:
--protocol-options '{"pairip_safe": true}'.--enable_spawn_gating: multi-process apps (WebView, :service
processes).--profile profile.json / --discover <seconds> / --also-package <pkg>:
apps whose traffic runs through delegate apps (e.g. Gemini via Google
Search). Gates the profile's packages, force-stops delegates so they
respawn hooked, attaches late to survivors, never hooks shared_system
processes. --discover needs tlsLibHunter with discovery support:
fritap -m -s --profile profile.json -k keys.log com.example.app.
Recommended one-shot (keep the app idle 5 s, then use it when told):
fritap -m <S> --discover 30 --discover-baseline 5 -k keys.log -s com.example.app.
Add --discover-probe to find delegates through the binder calls; check
the summary for discovery incomplete: <code> lines (e.g. no_root).
Agent API: fritap q discover_processes --package com.example.app --device emulator-5556 --baseline 5 --write-profile profile.json
(candidates with role, gaps; device strings under untrusted;
--probe adds the binder probe), then start_capture with
"profile": "profile.json" or "also_package": ["com.example.delegate"].--include-shared-delegates (with --profile/--discover): also
attach running shared_system processes (GMS, Play Store). Never gated
or force-stopped; their keys go only to <keylog>.shared (needs -k)
and are not attributable to the app. Agent API:
"include_shared_delegates": true with profile, server started with
--allow-shared-delegates.[Hint] with
the discovery commands (after 30 s without keys also a live one-liner).
If capture_status / stop_capture returns a hints entry with code
no_keys or target_exited_early, run discover_processes (its
next_tool) with write_profile, then start_capture with profile.--patterns / --offsets / --force-scan
(see the fritap-custom-hooks skill).Verify the result.
wc -l keys.log
head -c 120 keys.log
fritap --from-pcap full.pcapng --keylog keys.log --tap out.tap
fritap --analyze out.tap
CLIENT_RANDOM ... or
CLIENT_TRAFFIC_SECRET_0 ....-f pcap with the keylog (Wireshark/tshark or
fritap --from-pcap). Records that decrypt prove the keys belong to that
traffic. Details: fritap-decrypt skill.-p pcap may need Wireshark "Decode As" HTTP2 on port 443.-f without -p is rejected (--full_capture requires -p).-t/--timeout only delays resuming a spawned app; it does not end the
capture. Use --duration.-ll / --list-libraries lists libraries and exits; no keys are
written by design.-k without -p) install no plaintext hooks, so JSON
traffic counters stay 0.-s, then walk the crash ladder
(--probe, --pairip-safe, --no-loader-hook). See
references/troubleshooting.md.--quic-only attaches to a target already in active QUIC traffic. The docs
do not describe forcing a TCP fallback by blocking UDP/443; do not present
it as a friTap feature.-f stores pcaps under /data/local/tmp/ on the
device and does not delete them.keys.log, .pcapng files
with embedded secrets, and -j output with --json-keys as secrets. Do not
paste key lines into chat or tickets. Agent servers hand out key material
only with --allow-secrets.--anti_root, --pairip-safe and --payload_modification change app
behaviour; use them only on authorized targets.fritap-capture (agent API capture loop), fritap-decrypt (decrypt a pcap
with the keylog), fritap-custom-hooks (patterns/offsets for stripped TLS)docs/platforms/android.md, docs/examples/android.mddocs/advanced/pairip-safe.md, docs/advanced/patterns.mddocs/troubleshooting/common-issues.md, docs/api/cli.md,
docs/api/agent.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
fritap, frida, tls-intercept, android-security, traffic-capture
npx claudepluginhub fkie-cad/fritap --plugin fritap10 skills in this plugin
/fritap-captureRuns a live friTap capture of an app or process (Android, iOS, Linux, Windows, macOS) through the friTap agent API and reads the decrypted traffic in token-budgeted pieces. Covers device and app discovery, protocol selection, start/status/phase/stop of a capture session, the digest, endpoints, findings, single flows and HAR/Markdown/keylog export, plus the server permission flags, token budgets and error model of fritap q, fritap mcp and fritap serve. Use when asked to "capture app traffic", "what does this app send", "sniff/decrypt the TLS traffic of an app", "hook the TLS library", "which hosts does this app contact", "summarize a .tap capture", or "export the capture as HAR"./fritap-custom-hooksRecovers TLS keys with friTap when the default hooks find nothing. Covers diagnosing the run (debug output -do / --debug-log, --list-libraries, --probe, --library-scan), byte-pattern hooking of stripped or statically linked TLS libraries (Flutter libflutter.so, Cronet, statically linked BoringSSL) with --patterns, the pattern JSON schemas, generating patterns with BoringSecretHunter, --force-scan, custom offsets (--offsets), custom Frida scripts (-c / --custom_script), friTap plugins (FriTapPlugin / ScriptPlugin), custom ciphers (--protocol custom, the custom_cipher category), the standalone fritap_agent.js, and verifying the resulting keylog. Use when the user reports "no keys captured", "empty keylog", "friTap finds no SSL library", "Flutter app", "byte pattern", "stripped library", "statically linked BoringSSL", "custom offsets", "custom Frida script", "custom encryption", "friTap plugin", or wants to hook a TLS function friTap does not resolve by symbol./fritap-decryptTurns friTap output into readable traffic and analysis without a live device. Covers decrypting a pcap with a friTap NSS keylog (-k) in tshark or Wireshark and proving that decryption worked, the -p plaintext pcap versus the -f full capture, pcapng with embedded keys, the live Wireshark named pipe, converting pcap plus keylog into a .tap with fritap --from-pcap, fritap analyze and fritap report (digest, --flow drill-down), TUI replay, and the agent read tools (get_digest, get_flow, list_endpoints, export) on an existing .tap. Explains why decryption fails (missing TLS 1.3 secrets, QUIC, keys from connections that started before the capture, mismatched pcap and keylog). Use when asked to "decrypt pcap", "use the keylog", "load the SSLKEYLOGFILE", "open it in Wireshark", "decrypt with tshark", "why is my pcap still encrypted", "offline analysis", "convert pcap to .tap" or "analyze this .tap"./fritap-leak-proofProves with friTap captures that a known value (email, phone, advertising id, Android id, IMEI, IP, GPS coordinate or any string) leaves the device, including URL, base64, hex and md5/sha1/sha256 encoded forms, using the find_values agent tool; and compares two phases of one capture or two separate captures with the diff tool to show which endpoints appeared, disappeared or changed. Use when asked to "prove this app leaks my email", "is the advertising id sent to third parties", "does the app send my location", "what starts being sent after consent", "compare before and after login", "diff two app versions", or "what changed between these captures"./fritap-memory-scanRecovers TLS, Schannel, RC4 and Telegram MTProto session secrets by scanning a target process's heap with friTap's memory scanner (-ms / --memory-scan) instead of hooking its TLS library. Covers when to prefer a memory scan over hooks (stripped binary, unknown or statically linked TLS library, hooks that crash the app, no keys captured), how the scan engine is chosen from --protocol and the platform or forced with -ms boringssl / schannel / rc4 / mtproto (alias telegram) or a custom profile JSON, the scan interval and RC4 oracles, where the keylog and sidecar files land, verifying recovered keys with tshark or fritap --from-pcap, RC4 standalone and nested inside TLS, the read-only Schannel scan of lsass on Windows, and the caveats (per-architecture calibration, false positives, CPU cost). Use when asked to "run a memory scan", "find heap secrets", "friTap finds no keys captured", "get keys from a stripped binary", "recover Schannel keys from lsass", "capture RC4 keys", or "scan memory for TLS secrets"./fritap-privacy-auditRuns a phase-by-phase privacy audit of a mobile or desktop app with friTap - captures its decrypted TLS (and other protocol) traffic, then reports what personal data the app sends, to which first- and third-party hosts (analytics, advertising, crash reporting), and in which phase (launch, before or after consent, login, idle). Produces PII findings, a per-host destination map, get_flow evidence and a Markdown report. Use when the user asks for a "privacy audit", "what personal data does this app send", "does this app track me", "GDPR" or "CCPA" compliance evidence, "tracking" or "third-party trackers", "data sent before consent", or "which SDKs phone home".Other plugins' skills for the same job