/security-agent-skills:reviewing-secrets-manager-access-policy-trustfrom security-agent-skills
Reviews who can actually read a managed secret by computing the union of resource policy, identity policy, and key-decrypt permission. Use when applications fetch secrets from a managed store and access policy is the boundary on who reads them.
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 managed secrets store is only as strong as the policy that decides who reads each secret, and that decision is rarely written in one place. The effective read set is the union of the secret's resource policy, the identity policies of every principal in the account, and the permission to decrypt the key that protects the secret. A secret can look locked down on its resource policy while a broad identity policy elsewhere grants read on every secret, or while a wide key-decrypt grant lets a principal decrypt what the store would otherwise deny. Wildcards on secret names or paths quietly sweep in unrelated secrets. You review these by computing who the combined policy actually admits and comparing that to the secret's intended consumers.
Review secret access only in accounts and stores you own or are authorized to assess. Confirming a read retrieves a real secret value, so stay inside the authorized store and treat any retrieved value as sensitive within scope, never exfiltrating it. If you can't name the authorization, stop.
Establish the secret's intended consumers first. For each secret, name the principals that legitimately need to read it: the specific service role, the specific workload. This is the false-positive killer: a policy admitting exactly those consumers is correct however powerful the store is. Name the consumers, then compute the actual read set against them.
Read the resource policy for who it admits. The secret's own policy grants read to named principals or patterns. Determine the true set it admits, noting any broad principal (an account, a wildcard) and any condition that is meant to scope it. This is one term of the union, not the whole answer.
Add the identity policies. A principal can read the secret if its own identity policy grants read on it, independent of the resource policy. Look for identity policies that grant secret-read broadly, on all secrets or a wide path, since these admit readers the resource policy never named. The effective read set includes every principal granted by either side.
Add the key-decrypt permission. The secret is protected by a key; reading the plaintext requires decrypting with that key. A principal with a broad decrypt grant on the key can obtain the plaintext even where the secret policy is tight, so the key policy is a third term of the union. Confirm the decrypt grant is no broader than the secret's read set.
Resolve wildcards on names and paths. A wildcard on the secret name or path in any granting policy matches every secret under it, so a grant meant for one secret can cover a family of unrelated ones. Expand the wildcards against the real secret inventory and confirm each match is an intended consumer.
Confirm and record. Confirm by reading the secret as a principal that should not be a consumer but is admitted by the combined policy, within scope, without exfiltrating the value. Kill the lead if the union of resource policy, identity policies, and key-decrypt permission admits only the intended consumers, and no wildcard sweeps in unrelated secrets. Record the admitting policy term, the secret-read sink, and the reader beyond the intended consumers.
Confirm. A database secret's resource policy names only the application role, but a broad identity policy on an operations role grants secret-read on all secrets, and that role also holds decrypt on the protecting key. The operations role, never an intended consumer, reads the database secret. Confirmed over-broad secret access through an identity policy,
high, remediation = scope the operations identity policy to the specific secrets it needs, restrict key-decrypt to the secret's read set, and confirm the effective union admits only intended consumers.Kill. Each secret's effective read set, computed as the union of its resource policy, all identity policies, and key-decrypt permission, admits only the specific consuming role, and no wildcard path grants read beyond the intended secret. A principal outside the consumer set is denied by every term. Killed,
kill_reason= "the combined resource, identity, and key-decrypt policies admit only the intended consumers and no wildcard sweeps in other secrets; no unintended principal can read the plaintext."
You need each secret's intended consumers, its resource policy, the identity policies that grant read on it, the key-decrypt permissions on its protecting key, and the wildcard matches across the secret inventory. Compute the effective read set as the union and compare it to the consumers. Reading the policies shows the intended boundary; reading the secret as an unintended-but-admitted principal shows whether it holds.
auditing-kms-key-policy-and-envelope-encryption - the key side of the union; a broad decrypt grant on the
protecting key is a back door this review must include.hunting-non-human-identity-and-secret-reachability - the reachability companion; once the read set is
known, that skill traces which reachable identity actually pulls the secret.hunting-iam-privilege-escalation-paths - a principal that can read a secret granting further access is an
escalation edge worth chaining from here.adjudicating-taint-paths - use it to confirm an admitted principal's credentials actually reach the
secret-read call.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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