Command Palette

Search for a command to run...

Назад к скиллам
скилл № 86014

misconfig

This skill should be used when the user asks to "check for misconfigurations", "analyze security headers", "find misconfigured settings", "check CORS policy"…

БесплатноБез исполняемых скриптов
florianbuetowот florianbuetow★ 22 звезды на GitHub

Установить misconfig в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Security Misconfiguration Analysis

Analyze application and infrastructure configuration for security misconfigurations that could expose the system to attack. Covers missing security headers, debug modes left enabled, overly permissive CORS, default credentials, verbose error handling, unnecessary features, and directory listing.

Supported Flags

Read ../../shared/schemas/flags.md for full flag documentation. This skill supports all cross-cutting flags.

Key flags for this skill:

Flag Effect
--scope <value> Target scope (default: changed). Config-heavy scopes like path: and full are common.
--depth <value> Analysis depth (default: standard). deep traces config inheritance chains.
--severity <value> Minimum severity to report (default: all).
--format <value> Output format: text, json, sarif, md.
--fix Generate remediation patches for each finding.
--explain Add OWASP context and learning material to each finding.

Framework Context

OWASP Top 10 2021 -- A05: Security Misconfiguration

Security misconfiguration is the most commonly seen issue. This is commonly a result of insecure default configurations, incomplete or ad hoc configurations, open cloud storage, misconfigured HTTP headers, unnecessary HTTP methods, permissive CORS, and verbose error messages containing sensitive information.

CWE Mappings:

  • CWE-16: Configuration
  • CWE-2: Environment
  • CWE-388: Error Handling
  • CWE-497: Exposure of System Data to an Unauthorized Control Sphere
  • CWE-611: Improper Restriction of XML External Entity Reference
  • CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
  • CWE-756: Missing Custom Error Page
  • CWE-942: Permissive Cross-domain Policy with Untrusted Domains

STRIDE Mapping: All categories -- misconfigurations can enable spoofing, tampering, information disclosure, denial of service, and elevation of privilege.

Detection Patterns

Read references/detection-patterns.md before running analysis. It contains Grep regex patterns, language-specific examples, scanner coverage, and false positive guidance for each detection category.

Workflow

Step 1 -- Determine Scope

  1. Parse --scope flag (default: changed).
  2. Resolve to a concrete file list.
  3. Filter to configuration-relevant files:
    • Application config: *.yaml, *.yml, *.toml, *.ini, *.cfg, *.conf, *.json, *.properties, *.env, *.env.*
    • Server config: nginx.conf, httpd.conf, apache2.conf, Caddyfile, traefik.yml
    • Framework config: settings.py, config/*.rb, application.properties, next.config.*, nuxt.config.*
    • IaC: *.tf, *.hcl, Dockerfile, docker-compose*.yml, *.k8s.yml, k8s/*.yaml
    • CI/CD: .github/workflows/*.yml, .gitlab-ci.yml, Jenkinsfile, .circleci/config.yml
    • Source files that set headers or configure middleware
  4. Also include source files that import/configure security middleware or set HTTP headers.

Step 2 -- Check for Scanners

Detect available scanners in priority order:

Scanner Detect Best For
checkov which checkov IaC misconfigurations (Terraform, K8s, Docker)
tfsec which tfsec Terraform-specific security
kics which kics Multi-IaC scanning
trivy which trivy Filesystem misconfigs, Dockerfiles, K8s
semgrep which semgrep Code-level misconfiguration patterns

If no scanners are found, proceed with Claude analysis only and note this in output.

Step 3 -- Run Available Scanners

For each detected scanner, run against the scoped files:

  • checkov: checkov -d <target> -o json --quiet
  • tfsec: tfsec <target> --format json
  • kics: kics scan -p <target> --type json
  • trivy: trivy fs --format json --scanners misconfig <target>
  • semgrep: semgrep scan --config auto --json --quiet <target>

Normalize scanner output to the findings schema per ../../shared/schemas/scanners.md.

Step 4 -- Claude Analysis

Using Grep and Read, search for patterns from references/detection-patterns.md. For each match:

  1. Read surrounding context (10-20 lines) to determine if the pattern is a true finding.
  2. Check for compensating controls (e.g., a reverse proxy may set headers upstream).
  3. Determine if the configuration is for production or development.
  4. Assign severity based on the criteria in detection-patterns.md.
  5. Avoid duplicating scanner findings -- deduplicate by file and line.

Step 5 -- Report Findings

Output findings using the schema from ../../shared/schemas/findings.md.

Use the MSCFG prefix for finding IDs (e.g., MSCFG-001, MSCFG-002).

What to Look For

  1. Debug mode enabled in production -- DEBUG=True, NODE_ENV=development, `FLASK_DEB
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/detection-patterns.md

FAQ

Что делает скилл misconfig?

This skill should be used when the user asks to "check for misconfigurations", "analyze security headers", "find misconfigured settings", "check CORS policy", "find debug mode", "audit server configuration", or mentions "misconfiguration" in a security context. Maps to OWASP Top 10 2021 A05: Security Misconfiguration.

Как установить скилл misconfig?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл misconfig запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить misconfig с