configuration-security
Skill18 starsChanged 3 months agoMITView on GitHub
Find security misconfiguration before ship — debug flags, verbose errors, exposed actuators/admin, weak defaults (CWE-489 / CWE-209 / A05:2021).
- Reads credentials
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
- deserialization-securitySkill
- file-upload-securitySkill
- graphql-securitySkill
- jwt-securitySkill
- mcp-securitySkill
- oauth-securitySkill
- path-traversalSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- secrets-detectionSkill
- 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
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
After axguard hits debug.*, suspicious cloud.*, or crypto.* defaults
- Very specific: line 63
Run axguard scan / audit; collect debug.*, review related cloud.* / crypto.*.
- Very specific: line 65
Check framework debug: DEBUG=True, app.run(debug=True), Express error handlers sending err.stack.
- Very specific: line 66
Check management surfaces: Spring Actuator exposure.include=*, unauthenticated admin/metrics.
- Very specific: line 68
Prefer environment-forced safe defaults (DEBUG=False in prod) over hope that operators remember.
- Distinctive: line 82
Test settings modules excluded from production images
≈ “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
Configuration Security
Purpose
Detect insecure defaults and runtime misconfiguration that ship with the product: debug modes, stack traces to clients, open management endpoints, and related hard-coded crypto/CORS footguns adjacent to config.
When to Use
- Pre-ship / production config review
- After
axguardhitsdebug.*, suspiciouscloud.*, orcrypto.*defaults - Framework apps (Django/Flask/Express/Spring) where DEBUG or actuators may leak
When Not to Use
- Local-only developer settings clearly gated and never referenced by prod deploy paths
- Penetration of live systems without authorization
Security Concepts
A05:2021 covers incomplete hardening: unnecessary features on, default accounts, verbose errors, missing security headers, and misconfigured permissions. Active debug code (CWE-489) and sensitive error messages (CWE-209) turn configuration mistakes into reconnaissance or RCE (e.g. interactive debuggers).
Threat Model
Attacker goals:
- Harvest stack traces, env hints, or heap dumps from verbose errors / actuators.
- Abuse debug/reloader features for code execution.
- Bypass weak TLS/crypto defaults or trust-all certificate settings.
- Combine with CORS/cloud misconfig for broader access.
Analysis Workflow
- Run
axguard scan/audit; collectdebug.*, review relatedcloud.*/crypto.*. - Confirm each hit is on a shipped path (Dockerfile, prod compose, CI deploy config, main settings module) — not only
.env.example. - Check framework debug:
DEBUG=True,app.run(debug=True), Express error handlers sendingerr.stack. - Check management surfaces: Spring Actuator
exposure.include=*, unauthenticated admin/metrics. - Review security-relevant defaults: permissive CORS (→
cloud-security),verify=False, hardcoded IVs/keys (→secrets-detection/ crypto rules). - Prefer environment-forced safe defaults (
DEBUG=Falsein prod) over hope that operators remember.
Evidence Requirements
- File:line of unsafe setting
- Whether prod/staging deploy uses that file
- Leak class (stack, env, debugger, open admin)
- Confidence gated on deploy reachability
False Positive Controls
.env.example/ sample compose withDEBUG=trueand documented local-only use- Error handlers that log stacks server-side and return generic client bodies
- Actuator limited to
health/infobehind auth and network policy - Test settings modules excluded from production images
Remediation
- Force safe prod config via env / secrets manager; fail closed if unset.
- Disable interactive debuggers and template auto-reload in production.
- Return generic errors to clients; keep detail in server logs (with redaction).
- Minimize exposed management endpoints; authenticate and network-restrict the rest.
- Align CORS and cloud ACL hardening with
cloud-security.
Verification
Re-run axguard audit focusing on debug.*. Confirm production config paths cannot enable debug. Spot-check that client error responses omit stacks and secrets.
Related Skills
cloud-security, secrets-detection, security-triage, security-remediation, axguard-triage (orchestration)
Framework Mapping
- CWE-489 Active Debug Code
- CWE-209 Generation of Error Message Containing Sensitive Information
- OWASP A05:2021 Security Misconfiguration
- OWASP A09:2021 Security Logging and Monitoring Failures (adjacent when errors/logging are mishandled)
- OWASP API8:2023 Security Misconfiguration
References
- https://owasp.org/Top10/A05_2021-Security_Misconfiguration/
- https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/
- https://cwe.mitre.org/data/definitions/489.html
- https://cwe.mitre.org/data/definitions/209.html
- https://owasp.org/API-Security/editions/2023/en/0xa8-security-misconfiguration/
Research Provenance
Primary: OWASP Top 10:2021 A05/A09; CWE-489/209; OWASP API8:2023 (2026-09-15).
Internal: AXGuard rules/debug.json, rules/cloud.json, rules/crypto.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.

