/fritap:fritap-decryptfrom fritap
Decrypts and analyzes friTap captures offline using keylogs, pcaps, and .tap files. Covers tshark/Wireshark decryption, pcapng with embedded keys, fritap analyze/report, TUI replay, and troubleshooting decryption 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.
Turn friTap output (keylog, pcap, .tap) into decrypted, readable traffic and
findings. Nothing here touches a device; every step runs on files.
Commands use the fritap CLI. Agent tools are shown as fritap q <tool>; the
same names work over fritap mcp and fritap serve (POST /v1/tools/<tool>).
-k keys.log) and a pcap (friTap -f,
tcpdump, Wireshark) and wants the plaintext.Application Data in Wireshark and the user asks why..tap from a pcap + keylog to run fritap analyze,
fritap report or the TUI on it..tap and wants a digest, one flow, or a HAR/Markdown
export. For a live capture first, use the fritap-capture skill.fritap --version.tshark, and
fritap --from-pcap with keys). It is not bundled with friTap. If tshark is
not on PATH (macOS: inside Wireshark.app), pass --tshark-path or set
$FRITAP_TSHARK. Reading an existing .tap needs no tshark.Know what you have. friTap writes:
| Flag | Output | Needs decryption? |
|---|---|---|
-k keys.log | NSS SSLKEYLOGFILE (split per protocol with several protocols, e.g. keys.tls.log) | It is the key |
-p out.pcap | friTap's own decrypted payload pcap, synthetic headers | No |
-f -p out.pcap | Full raw capture of the interface (needs libpcap/Npcap + privileges) | Yes, with -k |
-p out.pcapng / --pcap-format pcapng | pcapng with the keys embedded as a Decryption Secrets Block (DSB) | Wireshark decrypts it alone |
--tap run.tap | friTap .tap (decrypted flows) | No; go to step 5 |
-l | Named pipe for live Wireshark viewing | No |
fritap -m -f -k keys.log -p traffic.pcap com.example.app
fritap -m -k keys.log -p traffic.pcapng com.example.app
fritap -m --tap run.tap --duration 60 com.example.app
-f without -p is rejected. A -p plaintext pcap may still run on
port 443; if Wireshark shows HTTP/2 as TLS, use Decode As HTTP2 on 443.
Decrypt the pcap with tshark (or Wireshark: Preferences > Protocols > TLS > (Pre)-Master-Secret log filename).
tshark -r traffic.pcap -o tls.keylog_file:keys.log -Y "http || http2"
tshark -r traffic.pcap -o tls.keylog_file:keys.log \
-o tls.ignore_ssl_mac_failed:FALSE -Y "http || http2"
tshark -r traffic.pcap -o tls.keylog_file:keys.log -d tcp.port==8443,tls -Y http
-d tcp.port==<port>,tls makes tshark treat a non-standard port as TLS.
Prove decryption worked. Count the same filter with and without the keylog; only a higher count with keys is proof. More recipes: references/tshark-verify.md.
# TLS 1.3: decrypted records expose the inner content type
tshark -r traffic.pcap -Y "tls.record.opaque_type==23 && tls.record.content_type==23" | wc -l
tshark -r traffic.pcap -o tls.keylog_file:keys.log \
-Y "tls.record.opaque_type==23 && tls.record.content_type==23" | wc -l
# TLS 1.2 / any: count application protocols
tshark -r traffic.pcap -o tls.keylog_file:keys.log -Y "http || http2" | wc -l
content_type==23 alone also matches TLS 1.2 records and proves nothing.
On demo/tst.pcap + demo/keys.log the TLS 1.3 count goes from 0 to 3.
Convert pcap + keylog to a .tap (offline, no Frida):
fritap --from-pcap traffic.pcap --keylog keys.log --tap out.tap
fritap --from-pcap traffic.pcapng --tap out.tap
fritap --from-pcap traffic.pcap --keylog keys.log --tap out.tap --tls-port 8443 --scan
fritap --from-pcap traffic.pcap --keylog keys.log --repair-keylog --tap out.tap
flows, decrypted packets, streams. Zero
decrypted packets = exit 4; read the printed coverage note.0 ok, 2 pcap missing, 3 tshark missing, 4 no
application data, 5 --keylog given but missing and no DSB, 1 other.--keylog and without a DSB the capture is read as plaintext;
encrypted streams are skipped and counted.<pcap>.fritap.json sidecar (written by live captures) supplies
keylog, tls_ports, quic_ports; CLI flags win.--tls-port, --quic-port (443 always on),
--decode-as, --tls-heuristic. Pass the server port with --tls-port
so request/response direction is right.--mtproto-keylog,
--telegram-keylog, --rc4-keylog,
--schannel-unpaired, --tls-midstream-secrets). Full list:
references/offline-flags.md.Analyze the .tap (read-only, offline).
fritap analyze out.tap --report table
fritap analyze out.tap --category pii --min-severity medium --report md --report-out findings.md
fritap report out.tap --budget 800 --format md
fritap report out.tap --protocol tls --focus security
fritap report out.tap --flow f1 --max-bytes 1024
analyze runs the analyzers (credentials, ioc, privacy,
protobuf), writes <stem>.findings.json, exits 2 on a medium+
finding (CI gate), 1 on usage/IO errors. Values are redacted unless
--show-pii.report prints the token-budgeted digest (fritap.digest/2); refs like
f1 or f1#m0 go to --flow. Values are redacted unless
--show-values.Replay in the TUI (interactive; for a human, not an agent):
fritap -r out.tap
Agent read tools on the .tap (no device; paths inside --root,
default cwd):
fritap q list_protocols --tap out.tap
fritap q get_digest --tap out.tap --budget 800 --format md
fritap q list_endpoints --tap out.tap --limit 20
fritap q list_findings --tap out.tap --min-severity medium
fritap q get_flow --tap out.tap --ref f1 --fields flow,response --max-bytes 1024
fritap q export --tap out.tap --format har --out out.har --include-bodies
fritap q --root ./captures get_digest --tap run.tap
There is no list_flows tool: take refs from get_digest or
list_endpoints, then call get_flow. Page with --cursor <next_cursor>.
Get the keys back out of a .tap (only when the user asks):
fritap q export --tap out.tap --format keylog --out keys.log --allow-secrets --confirm-secrets
Without --allow-secrets the call fails forbidden (restart the server with --allow-secrets); without --confirm-secrets it asks for
confirm_secrets=true.
CLIENT_HANDSHAKE_TRAFFIC_SECRET, SERVER_HANDSHAKE_TRAFFIC_SECRET,
CLIENT_TRAFFIC_SECRET_0, SERVER_TRAFFIC_SECRET_0 (TLS 1.2 needs one
CLIENT_RANDOM line). Count labels with
cut -d' ' -f1 keys.log | sort | uniq -c. A hook may swap HANDSHAKE and
TRAFFIC labels; --repair-keylog fixes that by trial decryption.-Y http3 counts.N connections started before the capture and can't be decrypted). Start the pcap first, then spawn (-s) the app; for TLS 1.3
memory-scan sidecars use --tls-midstream-secrets.TLS keylog matches 0 of N TLS handshakes
means the client randoms differ (different run, or keys written after the
capture stopped). Re-capture both together. For Schannel/lsass keys with
wrong or ??? client randoms use --repair-keylog or --schannel-unpaired.--repair-keylog.-d tcp.port==8443,tls (tshark) or --tls-port 8443 (friTap).-p alone gives friTap's decrypted pcap: synthetic IP/TCP headers, no
keylog needed. Do not feed it a keylog and expect more.-l creates the named pipe <tempdir>/fritap_sharkfin.pcapng (a fresh
temp directory) and prints its path at start; open that path with
wireshark -k -i <path>. Not supported on Windows. The pcap is
not saved; save it from Wireshark.fritap analyze --help and fritap report --help print their own help
(the subcommand's options), not the capture help..tap files in the repo may label protocols differently than a fresh
conversion of the same pcap; re-convert when labels matter.keys.log and the pcap reads the
traffic. Never paste keylog lines, DSB pcapngs or exported keylogs into chats,
tickets, issues or prompts; refer to them by path. Count labels, do not print
secrets.untrusted in agent results are exactly that.--allow-secrets on the server (or the
fritap q call) and confirm_secrets / --confirm-secrets in the
call. Do not export keys unless the user asked.--show-pii, --show-values,
show_values with a server started with --allow-values).docs/getting-started/offline-quickstart.md,
docs/advanced/offline-pcap-to-tap.md (manifest, exit codes,
pcap_to_tap() Python API)docs/advanced/traffic-analysis.md (analyze, digest, CI gate)docs/api/cli.md (-k, -p, -f, --pcap-format, -l, --from-pcap)docs/api/agent.md (read tools, secrets policy, sandbox root)friTap/skills/fritap-capture/SKILL.md (live capture),
friTap/skills/fritap-leak-proof/SKILL.md (find_values, diff)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
fritap, pcap-decryption, tls-keylog, network-analysis, wireshark
npx claudepluginhub fkie-cad/fritap --plugin fritap10 skills in this plugin
/fritap-androidCaptures TLS session keys and decrypted traffic from Android apps with friTap on a rooted device or emulator. Covers frida-server setup and version matching over adb, finding the package name (fritap devices / fritap apps or the list_devices / list_apps agent tools), spawn versus attach, keylog (-k), plaintext pcap (-p) and full capture (-f), anti-root hooks (-ar), PairIP-protected apps (--pairip-safe), stripped Flutter / Cronet / BoringSSL libraries, verifying the keylog and pcap, and the common failures (frida-server not running, version mismatch, SELinux, script-load timeouts, app crashes, empty keylogs). Use when asked to "intercept TLS on Android", "capture traffic of an Android app", "get TLS keys from an APK", "bypass certificate pinning to see app traffic", "run friTap on the emulator", "friTap over adb", or "frida-server is not working with friTap"./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-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