Security misconfiguration

From thejefflarson/soundcheck · View interactive version

Security misconfiguration is an AI agent skill from the GitHub repository thejefflarson/soundcheck. Detects insecure defaults, overly permissive CORS, exposed debug endpoints, and missing security headers. Use when writing server configuration, setting environment variables, configuring CORS policies, enabling debug modes, setting up default credentials, or deploying application infrastructure. Al

How to use this skill

Skill file

Security Misconfiguration Security Check (A02:2025)

What this checks

Protects against insecure defaults, overly permissive policies, and missing hardening

that expose the application to cross-origin attacks, credential stuffing, and

information disclosure via error pages or debug endpoints.

Vulnerable patterns

Fix immediately

Flag the vulnerable code, explain the risk, and suggest a fix establishing these

properties. Translate to the language and framework of the audited file — use that

stack's documented middleware or configuration helpers; do not import recipes from a

different stack.

  1. CORS that allows credentials uses an explicit origin allowlist. Never a wildcard, never a reflected Origin header. Browsers block wildcard-plus-credentials in spec, but misconfigured middleware still ships it.
  2. Debug and verbose-error flags default to off in production. Their values are sourced from environment or config, not hardcoded on. A production-only assertion that fails loudly when debug is left enabled catches misconfigured deploys.
  3. Every HTTP server registers a security-headers layer before routes. Baseline: Strict-Transport-Security, X-Content-Type-Options: nosniff, and a framing or CSP control. An upstream proxy may own these instead — but only if that ownership is documented at the call site.
  4. Host and origin validation uses an explicit allowlist, never a wildcard or an empty default. Trusted-origin and CSRF-trusted-origin lists are attacker-reachable when unset.

Verification

Confirm the following properties hold (language-agnostic):

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.