agentleFS
awarexoneawarexone/AXguard/configuration-security/SKILL.md

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

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
  1. Very specific:

    After axguard hits debug.*, suspicious cloud.*, or crypto.* defaults

    line 40
  2. Very specific:

    Run axguard scan / audit; collect debug.*, review related cloud.* / crypto.*.

    line 63
  3. Very specific:

    Check framework debug: DEBUG=True, app.run(debug=True), Express error handlers sending err.stack.

    line 65
  4. Very specific:

    Check management surfaces: Spring Actuator exposure.include=*, unauthenticated admin/metrics.

    line 66
  5. Very specific:

    Prefer environment-forced safe defaults (DEBUG=False in prod) over hope that operators remember.

    line 68
  6. Distinctive:

    Test settings modules excluded from production images

    line 82

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 axguard hits debug.*, suspicious cloud.*, or crypto.* 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:

  1. Harvest stack traces, env hints, or heap dumps from verbose errors / actuators.
  2. Abuse debug/reloader features for code execution.
  3. Bypass weak TLS/crypto defaults or trust-all certificate settings.
  4. Combine with CORS/cloud misconfig for broader access.

Analysis Workflow

  1. Run axguard scan / audit; collect debug.*, review related cloud.* / crypto.*.
  2. Confirm each hit is on a shipped path (Dockerfile, prod compose, CI deploy config, main settings module) — not only .env.example.
  3. Check framework debug: DEBUG=True, app.run(debug=True), Express error handlers sending err.stack.
  4. Check management surfaces: Spring Actuator exposure.include=*, unauthenticated admin/metrics.
  5. Review security-relevant defaults: permissive CORS (→ cloud-security), verify=False, hardcoded IVs/keys (→ secrets-detection / crypto rules).
  6. Prefer environment-forced safe defaults (DEBUG=False in 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 with DEBUG=true and documented local-only use
  • Error handlers that log stacks server-side and return generic client bodies
  • Actuator limited to health/info behind 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

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.