/security-agent-skills:hunting-mobile-tls-pinning-and-trust-gapsfrom security-agent-skills
Hunts transport trust gaps in mobile apps where the app accepts a network position it should reject. Covers user-trusted CAs, cleartext/mixed connections, disabled certificate validation, and partial or bypassable pinning.
Ships in security-agent-skills. 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.
None: SKILL.md is the whole skill.
A mobile app talks to its backend over connections it treats as private, and that privacy depends entirely on the app rejecting any network position that would let someone read or alter the traffic. The app does that by validating the server's certificate against trusted anchors, refusing cleartext, and, for its most sensitive connections, pinning to a known certificate or key so even a trusted-but-wrong authority is rejected. The gap is any place the app accepts a network position it should reject: it trusts certificate authorities the user or a device profile added, it allows a cleartext or mixed connection, it disables or loosens validation for convenience, or it pins some connections but leaves an unpinned or fallback path a network attacker can take. The bug is not the absence of pinning everywhere; it is a sensitive connection the app treats as secure that an intercepting network position can actually read or alter. You hunt these by listing every connection and checking whether each resists a network attacker.
Hunt transport trust gaps only on apps and networks you own or are authorized to assess, on test devices and accounts, interposing only on a network you control and never on real users' traffic. A confirmed gap exposes supposedly secure traffic, so keep every probe within scope. If you can't name the authorization, stop.
Establish whether each sensitive connection rejects an intercepting position first. For each connection the app treats as private, determine whether it validates the certificate against trusted anchors, refuses cleartext, and, where required, pins to a known certificate or key, so an intercepting network position is rejected, or whether some trust gap lets that position succeed. This is the false-positive killer: a connection that validates strictly and pins where it matters cannot be read by a network attacker, so its presence is not a finding. Name the accepted network position before claiming interception.
Enumerate the app's connections and their sensitivity. List the connections the app makes, the data each carries, and which are sensitive enough that reading or altering them would matter. Note which the app treats as secure and relies on for authentication or private data.
Check the trust anchors and validation. Determine whether the app trusts only the system anchors it should, or also user-added authorities or a device profile's anchors, and whether it validates the certificate fully, hostname included, or disables or loosens validation. A user-trusted anchor or disabled validation lets an interposed certificate be accepted.
Check for cleartext and mixed connections. Determine whether any sensitive connection uses cleartext or falls back to it, or mixes secure and insecure content, so part of the traffic is readable regardless of the certificate handling.
Check the pinning coverage and fallback. For connections that pin, determine whether every sensitive connection is pinned or only some, and whether pinning has a fallback, a catch-all path, an unpinned subdomain, or a bypass, that a network attacker can steer the app onto. Partial or bypassable pinning leaves the unpinned path open.
Confirm and record. Confirm by interposing on a network you control and reading or altering a sensitive
connection the app treats as secure, on a test device with a test account. Kill the lead if every sensitive
connection validates strictly, refuses cleartext, and pins where required with no bypassable fallback, or if
the interception requires a trust the attacker cannot obtain. Record the connection, the accepted network
position, the trust gap, and the interception observed, or set a kill_reason.
Confirm. The app pins its primary API connection but makes a sensitive secondary connection to an unpinned host that validates only against system and user-added anchors. Interposing on a controlled network with a user-added anchor lets that secondary connection be read and altered, exposing data the app treats as secure, on a test device. Confirmed transport trust gap through partial pinning and user-anchor trust,
high, remediation = pin every sensitive connection to a known certificate or key, trust only system anchors for those connections, refuse cleartext and fallback, and remove any unpinned sensitive path.Kill. Every sensitive connection validates fully against system anchors only, ignores user-added authorities, refuses cleartext with no fallback, and pins to a known key with no bypassable path. An interposed certificate is rejected on every sensitive connection and no traffic is readable. Killed,
kill_reason= "all sensitive connections validate strictly against system anchors, refuse cleartext, and pin without a fallback; the intercepting position is rejected everywhere it matters."
You need every connection the app makes with its sensitivity, the trust anchors and validation each uses, whether any use or fall back to cleartext, and which are pinned with what fallback. For each sensitive connection, decide whether an intercepting network position is rejected. Reading the trust configuration and observing the app's behavior settles most leads; interposing on a controlled network and reading or altering a sensitive connection on a test device settles the rest.
auditing-tls-and-certificate-validation - the general certificate-validation audit, of which mobile
pinning and anchor trust are the app-side application.auditing-mobile-webview-bridge-exposure - content loaded over a connection an attacker can intercept
reaches the WebView bridge, so a transport gap feeds that exposure.hunting-mobile-secret-and-storage-exposure - a token read from intercepted traffic joins the secret
exposure that skill pursues from the storage side.auditing-mobile-backend-and-firebase-exposure - an intercepted or unpinned backend connection reveals the
backend endpoints and keys that skill audits.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.Other plugins' skills for the same job