/aws-secrets-inspector:collectfrom aws-secrets-inspector
Scans AWS Secrets Manager for compliance issues including rotation status, KMS key type, resource policy public access, and access recency. Emits structured findings per secret.
Ships in aws-secrets-inspector. 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.
Scans AWS Secrets Manager for compliance-relevant configuration. Emits one Finding document per secret. Inspector mode is the default path of aws-secrets-inspector. For value retrieval, use /aws-secrets-inspector:retrieve instead.
node "${CLAUDE_PLUGIN_ROOT}/scripts/collect.js" [options]
--regions=<csv> — regions to scan (default: the config's default_region or defaults.regions)--profile=<name> — override the configured AWS profile--output=<fmt> — silent | summary (default) | json--refresh — ignore cache; re-query AWS (always refreshes for now)--quiet — no stderr progressOne Finding per secret, with four SCF-mapped evaluations. The SCF IDs were verified against the live SCF API at https://grcengclub.github.io/scf-api during implementation (the implementation plan's prior guesses were superseded).
| SCF | Check | Severity if failing | Source of truth |
|---|---|---|---|
| CRY-09 | Rotation enabled | high | describe-secret → RotationEnabled, RotationRules |
| CRY-09 | Customer-managed KMS key | high | describe-secret → KmsKeyId (must not be alias/aws/secretsmanager) |
| IAC-21 | Resource policy excludes public access | critical | get-resource-policy → policy statements with Principal: "*" granting secretsmanager:GetSecretValue (or secretsmanager:* / *) |
| IAC-15.3 | Access pattern (LastAccessedDate ≤ 180d) | medium | describe-secret → LastAccessedDate |
If a get-resource-policy call returns ResourcePolicyNotFoundException, the secret relies on IAM only and IAC-21 is recorded as pass with a note. If the call fails for any other reason, IAC-21 is inconclusive.
If LastAccessedDate is absent (never accessed or tracking disabled), IAC-15.3 is inconclusive; the operator can rely on the rotation-age signal recorded in raw_attributes.RotationAgeDays and on their consumer inventory.
Writes ~/.cache/claude-grc/findings/aws-secrets-inspector/<run_id>.json — array of Findings
Appends a run manifest to ~/.cache/claude-grc/runs.log
One-line summary unless --quiet or --output=json:
aws-secrets-inspector: 12 resources, 48 evaluations, 7 failing (1 critical, 4 high, 2 medium).
The raw_attributes block on each Finding carries everything needed for downstream triage without a re-query: Name, ARN, RotationEnabled, RotationRules, LastRotatedDate, LastChangedDate, LastAccessedDate, KmsKeyId, OwningService, PrimaryRegion, Description, InactiveDays, RotationAgeDays. resource.tags carries the secret's tag set.
0 success2 credentials invalid or expired; usage error in retrieval mode3 rate-limited (AWS throttling; retry later)4 partial (some regions inaccessible; report still written)5 config missing — run setup6 retrieval mode: secret not found in this account/regionMinimum IAM policy for inspector mode (read-only):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"secretsmanager:ListSecrets",
"secretsmanager:DescribeSecret",
"secretsmanager:GetResourcePolicy"
],
"Resource": "*"
}
]
}
For retrieve mode, additionally: secretsmanager:GetSecretValue, kms:Decrypt.
The AWS-managed ReadOnlyAccess policy is a superset that also works.
# Default region, all secrets
/aws-secrets-inspector:collect
# Multi-region scan
/aws-secrets-inspector:collect --regions=us-east-1,us-west-2,eu-west-1
# Alternate profile (e.g., for cross-account via the AWS CLI profile chain)
/aws-secrets-inspector:collect --profile=audit-target
# CI/CD-friendly
node "${CLAUDE_PLUGIN_ROOT}/scripts/collect.js" --quiet --output=json
This connector does NOT implement sts:AssumeRole itself. For cross-account access, configure the standard AWS CLI profile chain in ~/.aws/config and pass --profile=<name>:
[profile audit-target]
role_arn = arn:aws:iam::222233334444:role/SecurityAudit
source_profile = default
mfa_serial = arn:aws:iam::111122223333:mfa/you # optional
The AWS SDK performs the AssumeRole transparently; this connector sees the resolved credentials. See skills/setup/SKILL.md and skills/retrieve/SKILL.md for the same pattern applied to setup and retrieval.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub grcengclub/claude-grc-engineering --plugin aws-secrets-inspector5 skills in this plugin
/aws-secrets-inspector-expertUse when interpreting AWS Secrets Manager connector output, deciding between inspector and retrieve modes, drafting SCF-mapped controls for rotation / KMS / public-access / inactive-access findings, or troubleshooting an aws-secrets-inspector run.
/retrieveRetrieve a single AWS Secrets Manager secret value to stdout or a 0600-permission file. Opt-in retrieval mode — never writes to the findings cache./setupVerify the aws-secrets-inspector connector's prerequisites and write its config. Idempotent.Other plugins' skills for the same job