/security-agent-skills:hunting-mutual-tls-and-service-identity-gapsfrom security-agent-skills
Hunts for gaps in mutual TLS authentication where services fail to require client certificates, verify certificate identity, or scope trust anchors properly. Tests by presenting wrong, missing, or valid-but-wrong-identity certificates.
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.
Service-to-service authentication with mutual TLS rests on a chain of checks, and skipping any one of them leaves the caller's identity unproven while the connection still looks encrypted and authenticated. The endpoint has to actually require a client certificate, not merely request one and proceed without it. It has to verify the certificate is valid and chains to a trusted authority. Crucially, it then has to check which identity the certificate names and that this identity is authorized for the call, verifying the chain proves the certificate is legitimate, not that it belongs to the right service. And the trust anchor matters: if the service accepts any certificate issued by a broad authority, then any peer that authority ever issued a certificate to can authenticate as any service. When identity is instead taken from a header or source IP, it is spoofable and the certificate is decorative. The hunt is for the missing link in that chain. You hunt this by presenting the wrong certificate, no certificate, and a valid-but-wrong-identity certificate and seeing what authenticates.
Test service identity only on systems you own or are authorized to assess, on non-production endpoints. Presenting certificates and connecting attempts real authentication between services, so use non-production identities and never authenticate into a real service path. If you can't name the authorization, stop.
Establish the intended peer identity first. Name, for each endpoint, exactly which service identities may call it and how that identity is proven: a client certificate naming the specific service, chaining to a narrowly scoped trust anchor. This is the false-positive killer: an endpoint that requires a client certificate, verifies its chain to a scoped anchor, checks the named identity against an allowlist, and authorizes on that verified identity is correct. Name the intended identity, then test each check.
Test whether the certificate is required. Determine whether the endpoint requires a valid client certificate or merely requests one and proceeds if none is presented. Connect without a client certificate and confirm the call is refused. An endpoint that requests but does not require a certificate authenticates callers who present none.
Test chain verification. Present a certificate that does not chain to the trusted authority, an expired one, and one with a broken chain, and confirm each is rejected. An endpoint that accepts an untrusted or invalid chain is not verifying the certificate at all, so any self-issued certificate authenticates.
Test identity checking beyond the chain. Present a certificate that is valid and chains to the trusted authority but names a different service than the one authorized for the call. Confirm the endpoint checks the named identity, not just chain validity. An endpoint that accepts any trusted-authority certificate treats chain validity as identity, so any legitimately issued certificate authenticates as any service.
Check trust-anchor scope and identity source. Determine how broad the trust anchor is: if the service accepts any certificate issued by a wide public or shared authority, the anchor is too broad and any peer that authority issued to can authenticate. Also confirm identity is derived from the verified certificate, not from a header or source IP a caller can set. A spoofable identity source makes the certificate decorative.
Confirm and record. Confirm by authenticating with no certificate, an untrusted certificate, or a valid certificate naming the wrong service, or by spoofing the header or IP the identity is read from, on non-production endpoints and without entering a real service path. Kill the lead if the endpoint requires a certificate, verifies the chain to a scoped anchor, checks the named identity against an allowlist, and authorizes on the verified certificate. Record the unverified or misbound peer, the called-service sink, and the missing certificate requirement, identity check, or trust-anchor scoping.
Confirm. An internal endpoint uses mutual TLS and verifies that the client certificate chains to the organization's shared certificate authority, but it does not check which service the certificate names. A service holding a legitimately issued certificate for an unrelated, low-privilege workload connects and is authenticated as an authorized caller because its certificate chains to the trusted authority. Confirmed service-identity bypass via chain-validity-as-identity,
high, remediation = check the specific identity the certificate names against an allowlist of authorized services, scope the trust anchor to the intended issuers, and authorize on the verified certificate identity rather than mere chain validity.Kill. The endpoint requires a client certificate, rejects connections without one, verifies the chain to a narrowly scoped trust anchor, checks the identity the certificate names against the allowlist of services authorized for the call, and derives the caller identity solely from the verified certificate rather than any header or IP. A missing, untrusted, or wrong-identity certificate is refused. Killed,
kill_reason= "certificate required, chain verified to a scoped anchor, named identity checked against an allowlist, and identity taken from the verified certificate; no unverified or misbound peer authenticates."
You need, per endpoint, whether a client certificate is required, how the chain is verified and to what anchor, whether the named identity is checked against an allowlist, and whether identity comes from the certificate or a spoofable attribute. For each, connect with no certificate, an untrusted one, and a valid-but-wrong-identity one. Reading the mutual-TLS configuration shows the intended checks; a wrong or absent certificate that authenticates shows whether they hold.
auditing-service-mesh-mtls-and-authz-trust - meshes automate mutual TLS; this skill is the underlying
identity-verification question their authorization decisions depend on.auditing-tls-and-certificate-validation - the certificate-validation mechanics shared with server-side TLS;
chain and trust-anchor checks apply in both directions.mapping-service-account-impersonation-chains - once a peer identity is established, what it can reach and
impersonate is the paired reachability question.auditing-grpc-service-authorization - gRPC calls often carry mutual-TLS identity; verifying the peer and
authorizing the method are the two halves.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