secrets-detection
Skill18 starsChanged 3 months agoMITView on GitHub
Find and triage hard-coded secrets, tokens, and credentials in source and build artifacts before ship (CWE-798 / A07:2021 adjacent).
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Rootx202/appsec-skillstheir own version, first seen Jul 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Rootx202/appsec-skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-agent-securitySkill
- ai-application-securitySkill
- api-securitySkill
- attack-surface-mappingSkill
- authentication-analysisSkill
- authorization-analysisSkill
- axguard-auditSkill
- axguard-csoSkill
- axguard-knowledgeSkill
- axguard-preshipSkill
- axguard-remediateSkill
- axguard-reportSkill
- axguard-securitySkill
- axguard-triageSkill
- cloud-securitySkill
- command-injectionSkill
- configuration-securitySkill
- deserialization-securitySkill
- file-upload-securitySkill
- graphql-securitySkill
- jwt-securitySkill
- mcp-securitySkill
- oauth-securitySkill
- path-traversalSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- security-architecture-reviewSkill
- security-remediationSkill
- security-triageSkill
- session-securitySkill
- sql-injectionSkill
- ssrf-analysisSkill
- ssti-analysisSkill
- supply-chain-securitySkill
- threat-modelingSkill
- websocket-securitySkill
- xss-analysisSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
After axguard secrets.* hits
- Very specific: line 49
Run axguard scan / audit; collect secrets.*.
- Distinctive: line 52
If real: treat as incident — rotate first, then remove from git history if needed.
- Distinctive: line 53
Check build artifacts and client bundles, not only server source.
- Distinctive: line 69
Remove secret; rotate at provider
- Distinctive: line 71
Add pre-commit secret scanning
- Distinctive: line 72
Ensure CI does not echo secrets
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Secrets Detection
Purpose
Detect credentials committed to repositories or artifacts and drive safe rotation + removal workflows.
When to Use
- Pre-ship / PR review
- After
axguardsecrets.*hits - Incident suspicion of leaked keys
When Not to Use
- Scanning systems without authorization
- Printing full live secrets into chat/logs (always redact)
Analysis Workflow
- Run
axguard scan/audit; collectsecrets.*. - Classify: cloud keys, GitHub/Slack tokens, PEM private keys, generic API keys.
- Decide if value is a real secret vs fixture/example (
EXAMPLE,changeme, obviously fake). - If real: treat as incident — rotate first, then remove from git history if needed.
- Check build artifacts and client bundles, not only server source.
Evidence Requirements
- File:line
- Secret class (not full value)
- Whether it appears active (best-effort; do not exercise stolen creds against third parties)
False Positive Controls
- Documented placeholders in fixtures
- Public test keys clearly marked
.env.examplewith empty values
Remediation
- Remove secret; rotate at provider
- Load via env / secret manager
- Add pre-commit secret scanning
- Ensure CI does not echo secrets
Verification
Confirm file gone, rotation done, axguard no longer flags the live material, history cleaned if it was committed.
Framework Mapping
- CWE-798
- OWASP A07:2021 (auth failures — credential exposure contributes)
References
- https://cwe.mitre.org/data/definitions/798.html
- https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/
Research Provenance
Primary: CWE-798; OWASP Top 10:2021 A07 (2026-09-15).
Internal: AXGuard rules/secrets.json.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

