FC detecting-aws-credential-exposure-with-trufflehog
Scan source code repositories, CI/CD pipelines, and configuration files for exposed AWS credentials using TruffleHog, git-secrets, and AWS-native detection. Use when integrating secrets scanning into CI/CD, auditing repositories (including git history) for historically committed AWS keys, responding to a GuardDuty alert about credential use from an unexpected location, or verifying credential rotation removed all exposed keys.
Scan source code repositories, CI/CD pipelines, and configuration files for exposed AWS credentials using TruffleHog, git-secrets, and AWS-native detection.
As a process C 63/100 · Has gaps — weak spots: failures and branches, running it twice, progress reporting
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
The files contain someone else's key or token. If it is live, your agent will call third-party services under a stranger's identity; if it was revoked, the skill's scripts simply fail. Such a key often arrives with the author's whole workspace, personal data included.
The key is visible to everyone who downloaded the skill and has likely been copied by catalog-scanning bots already. Revoke it now, check bills and access logs, then reissue.
How to improve
- Remove the critical guard findings (secrets, dangerous commands, hidden instructions): while they stand the skill is blocked and cannot grade above F.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 9
-
critical Secrets in code
secret-aws-keySKILL.md:213AWS access key ID--access-key-id AKIA…456 \
-
critical Secrets in code
secret-aws-keySKILL.md:221AWS access key ID--lookup-attributes AttributeKey=AccessKeyId,AttributeValue=AKIA…456 \
-
critical Secrets in code
secret-aws-keySKILL.md:229AWS access key ID--access-key-id AKIA…456
Medium and low: 6
-
low Secrets in code
secret-aws-keyreferences/api-reference.md:47AWS access key ID (placeholder value)aws iam get-access-key-last-used --access-key-id AKIAXXXXXXXXXXXXXXXX
placeholder -
low Secrets in code
secret-aws-keyreferences/api-reference.md:53AWS access key ID (placeholder value)aws iam update-access-key --access-key-id AKIAXXXXXXXXXXXXXXXX \
placeholder -
low Secrets in code
secret-aws-keyreferences/api-reference.md:57AWS access key ID (placeholder value)aws iam delete-access-key --access-key-id AKIAXXXXXXXXXXXXXXXX \
placeholder -
low Secrets in code
secret-aws-keyreferences/api-reference.md:85AWS access key ID (placeholder value)WHERE useridentity.accesskeyid = 'AKIAXXXXXXXXXXXXXXXX'
placeholder -
low Dangerous commands
cmd-pipe-to-shell-known-hostSKILL.md:92Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin
security skill -
low Secrets in code
secret-aws-keySKILL.md:142AWS access key ID (placeholder value)aws iam get-access-key-last-used --access-key-id AKIA…PLE
placeholder
Files scanned: 4. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- note
frontmatter-keyunknown frontmatter key "domain" - note
frontmatter-keyunknown frontmatter key "subdomain" - note
frontmatter-keyunknown frontmatter key "nist_csf" - note
frontmatter-keyunknown frontmatter key "mitre_attack" - note
frontmatter-keyunknown frontmatter key "mitre_f3"
Process rating: all ten parameters 63/100
- 0Failures and branches. Linear process with no failure handling
- 0Progress reporting. Says nothing while it works
- 30Running it twice. 20 mutating operations with no state check
- 50When it triggers. No condition that starts the skill
- 60Tools and files. Uses tools (bash, web, python) that frontmatter does not declare
- 60Result and completion. Output format stated, no completion criterion
- 70Inputs and preconditions. Inputs and preconditions are listed
- 100Steps. 22 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 2524 tokens
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- -41 reference files, but SKILL.md never points to them: the model will not open them
- -31 of 1 scripts are never mentioned in SKILL.md
- +2Single-language instructions
- +4Description says when NOT to use the skill
- +3Description length 430: enough signal without eating the budget
- +4Structure: 15 headings
- +3Step-by-step instructions: 22 items
- +3Output format is stated explicitly
- +4Has examples (8 code blocks)
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 82.