Source profileQuality 96/100

brucesongs/kali-claw/skills/security-misconfiguration/SKILL.md

security-misconfiguration

Security misconfiguration detection (OWASP A02:2025) covering default credentials, unnecessary services, verbose errors, missing security headers, and directory listing exposures across deployed systems.

Source repository stars
67
Declared platforms
2
Static risk flags
1
Last source update
2026-08-19
Source checked
2026-08-28

Decision brief

What it does: where it fits

Supplementary Files: - payloads.md — byclassotherorganization attackpayloadandtestingcommand(HTTP Header、TLS/SSL、defaultcredentials、directorylist、CORS、Cookie etc.) - test-cases.md — structureizetestinguseexample,with severelevelotherandverifyStep(HTTP Security、TLS/SSL、Default Co…

Best for

    Not for

    • A frequent oversight in security misconfiguration audits is checking only the application layer while ignoring infrastructure defaults — database servers, message queues, and container orchestration platforms often ship…

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeDeclaredSource recordInstall path and trigger
    CursorDeclaredSource recordInstall path and trigger
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/brucesongs/kali-claw --skill "skills/security-misconfiguration"
    Safe inspection promptEditorial

    Inspect the Agent Skill "security-misconfiguration" from https://github.com/brucesongs/kali-claw/blob/a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e/skills/security-misconfiguration/SKILL.md at commit a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Step 1: Nikto Web Scan

      use Nikto performautomated Web configurationScan,Detectdefaultfile、dangerousconfigurationandoverwhen component。

      use Nikto performautomated Web configurationScan,Detectdefaultfile、dangerousconfigurationandoverwhen component。
    2. 02

      Step 2: HTTP security Header check

      obtainandreview HTTP response Header,verifycriticalsecurity Header iswhetherexistsandconfigurationcorrect。

      obtainandreview HTTP response Header,verifycriticalsecurity Header iswhetherexistsandconfigurationcorrect。
    3. 03

      Step 3: defaultcredentialsbrute force

      use Hydra forloginformanddatabaseserviceperformdefaultcredentialstesting。

      use Hydra forloginformanddatabaseserviceperformdefaultcredentialstesting。
    4. 04

      Step 4: Verbose Error exploit

      throughsendmalformedrequest、superlengthparameter、illegal HTTP methodtriggerdetailed errorinformation。

      throughsendmalformedrequest、superlengthparameter、illegal HTTP methodtriggerdetailed errorinformation。
    5. 05

      Step 5: directorylistandsensitivefilediscovery

      Detectdirectorylistenablesituation,discoveryversioncontrolfileandenvironmentconfigurationfileleakage。

      Detectdirectorylistenablesituation,discoveryversioncontrolfileandenvironmentconfigurationfileleakage。See payloads.md for detailed payloads, and test-cases.md for complete test checklist。

    Permission review

    Static risk signals and limitations

    Network access

    medium · line 257

    The documentation includes network, browsing, or remote request actions.

    nikto -h "https://$TARGET" -o "$REPORT_DIR/nikto.html" -Format htm

    Network access

    medium · line 263

    The documentation includes network, browsing, or remote request actions.

    curl -sI "https://$TARGET" | grep -iE "strict-transport|content-security|x-frame|x-content-type" \

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score96/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars67SourceRepository attention, not individual Skill quality
    Compatibility2 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    brucesongs/kali-claw
    Skill path
    skills/security-misconfiguration/SKILL.md
    Commit
    a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e
    License
    MIT
    Collected
    2026-08-28
    Default branch
    main
    View the original SKILL.md

    Skill: security configurationerrorDetect / Security Misconfiguration Detection

    Supplementary Files:

    • payloads.md — byclassotherorganization attackpayloadandtestingcommand(HTTP Header、TLS/SSL、defaultcredentials、directorylist、CORS、Cookie etc.)
    • test-cases.md — structureizetestinguseexample,with severelevelotherandverifyStep(HTTP Security、TLS/SSL、Default Config、Information Disclosure、CORS/Cookie)

    Summary

    Security Misconfiguration skill domain covering defense operations.

    Tools: Nmap, Nikto, testssl.sh, Burp Suite, WhatWeb

    Domain: defense

    OWASP: A02:2025-Misconfiguration

    Description

    Security misconfiguration detection (OWASP A02:2025) covering default credentials, unnecessary services, verbose errors, missing security headers, and directory listing exposures across deployed systems. Misconfigurations are the most common and easily overlooked vulnerability class — not a tool flaw but a deployment and maintenance failure that degrades overall security posture.

    coreDetect domain:

    • Default Credentials: Default credentials not modified (admin/admin, root/root, test/test)
    • Unnecessary Services: productionenvironmentlegacydebugport、managementinterface、exampleapplication
    • Verbose Errors: stacktrackingleakagefilepath、databasetype、frameworkversion、SQL statement
    • Missing Security Headers: missing X-Frame-Options、CSP、HSTS、X-Content-Type-Options etc.criticalprotectionhead
    • Directory Listing: Web serverallowslistdirectorycontent,exposurebackupfile、configurationfile、databasedump

    Use Cases / Use Cases

    1. Web applicationpenetration testing - fortargetperformcomprehensive configurationsecurity audit,discoveryexposure managementinterface、defaultinstallpage、sensitivefile
    2. Basic infrastructure security assessment - Detect redundant services, open ports, default configuration
    3. TLS/SSL security audit - assessmentcertificateconfiguration、protocolversion、passwordsetpiecestrongdegree
    4. cloudresourceconfigurationreview - check S3 Bucket publicaccess、IAM policyoveratlenient、security grouprulenotwhen
    5. Compliance check - Verify configuration against CIS Benchmark, OWASP ASVS standards

    Core Tools / Core Tools

    ToolPurposeCommand Example
    NmapserviceEnumerate、versionDetect、scriptScannmap -sV -sC --script=default,vuln target
    NiktoWeb serverconfigurationvulnerability scanningnikto -h http://target -o report.html -Format htm
    testssl.shTLS/SSL configurationcomprehensive Detecttestssl.sh --full --quiet target:443
    Burp SuiteHTTP Header analysis、responsecheck、Scanner moduleProxy intercept -> check Response Headers -> Scanner maindynamicScan
    WhatWebWeb techniquefingerprinting、frameworkversionDetectwhatweb -v http://target

    Auxiliary tools: curl (manual header check), Gobuster (directory/file brute-force discovery), Dirsearch (directory enumeration), Hydra (default credential brute force), ScoutSuite (cloud configuration audit).


    Methodology / Methodology

    Attack Chain / Attack Chain

    [1] Service Enumeration      [2] Default Credential Testing   [3] Header Analysis
        - nmap 版本探测              - 默认用户名/密码字典             - 检查安全 Header
        - whatweb 指纹识别            - Hydra/medusa 爆破              - CSP 策略审计
        - 端口与服务映射              - 管理接口默认凭证               - Cookie 属性检查
             |                           |                              |
             v                           v                              v
    [4] Error Page Probing       [5] Config File Discovery
        - 触发详细错误响应            - 目录列表检测
        - 路径遍历探测                - 备份文件发现
        - 堆栈跟踪分析                - 版本控制文件暴露
        - 框架版本识别                - .env / .git / .svn 泄露
    

    Defense Perspective

    Defense MeasureDescriptionPriority
    Server Hardening Guidefollow CIS Benchmark / DISA STIG foroperationsystem、inintervalpieceperformhardeningCRITICAL
    Automated Config Scanningwill Nikto、testssl.sh、ScoutSuite integrationto CI/CD pipeline,eachtimedeploymentautomated DetectHIGH
    Security Headersdeploymentcomplete security Header collection(HSTS、CSP、X-Frame-Options、X-Content-Type-Options)HIGH
    Remove Default Installsdeletedefaultpage、exampleapplication、testingaccount、admin backenddefaultentry pointCRITICAL
    Error Handling Policyproductionenvironmentunifiederrorpage,prohibitstacktrackingandinternalinformationleakageHIGH
    Least Privilege Servicesdisablenotnecessary serviceandport,followleast privilegeoriginalthenHIGH

    Practical Steps / Practical Steps

    Step 1: Nikto Web Scan

    use Nikto performautomated Web configurationScan,Detectdefaultfile、dangerousconfigurationandoverwhen component。

    Step 2: HTTP security Header check

    obtainandreview HTTP response Header,verifycriticalsecurity Header iswhetherexistsandconfigurationcorrect。

    Step 3: defaultcredentialsbrute force

    use Hydra forloginformanddatabaseserviceperformdefaultcredentialstesting。

    Step 4: Verbose Error exploit

    throughsendmalformedrequest、superlengthparameter、illegal HTTP methodtriggerdetailed errorinformation。

    Step 5: directorylistandsensitivefilediscovery

    Detectdirectorylistenablesituation,discoveryversioncontrolfileandenvironmentconfigurationfileleakage。

    See payloads.md for detailed payloads, and test-cases.md for complete test checklist。


    Defense Evasion Techniques

    Misconfiguration Exploitation Stealth

    • Use legitimate features: Many misconfigs are legitimate features (e.g., public S3 for static hosting).
    • Off-hours abuse: Exploit during low-traffic hours; less monitoring attention.
    • Distribute exploitation: Spread across many accounts/sessions.

    Detection Bypass

    • CSPM rule exemptions: Apply exemption tag (CSPM-Exempt: true); respected by some CSPM tools.
    • Use existing compliant resources: Don't create new public bucket; abuse existing misconfigured one.
    • Cross-account resource sharing: Share resource to attacker account via legitimate mechanism.

    Automation and Scripting

    Automated misconfiguration scanning should be integrated into CI/CD pipelines to catch regressions before deployment. Shell scripts wrapping Nikto, testssl.sh, and curl header checks can produce machine-readable JSON reports that trigger failures on missing security headers or weak TLS configurations. Nuclei templates provide a continuously updated library of misconfiguration detection patterns, enabling efficient batch scanning across large inventories of targets.

    Common Pitfalls

    A frequent oversight in security misconfiguration audits is checking only the application layer while ignoring infrastructure defaults — database servers, message queues, and container orchestration platforms often ship with permissive defaults that go unmodified in production. Another common mistake is treating security headers as a one-time configuration task; framework upgrades and CDN changes can silently remove or weaken previously configured headers. Regular automated validation prevents these regressions.

    Detection Methods

    Effective misconfiguration detection combines active probing with passive analysis. Active methods include sending deliberately malformed requests to trigger verbose error pages, enumerating default installation paths (/admin/, /phpmyadmin/, /server-status/), and testing default credential lists against discovered login forms. Passive methods analyze HTTP response headers for missing or weak security configurations, inspect TLS certificate chains for expired or weak intermediates, and review DNS records for unnecessary information disclosure.


    Hacker Laws / Hacker Laws

    1. Obscurity Is Not Security -- hiding management endpoints, using non-standard ports, not exposing version numbers cannot block attackers. Real security comes from correct configuration and effective access control, not relying on attackers being unable to find the target. Any exposed service on the network will be discovered by automated scanning tools.

    2. Minimize Attack Surface -- every open port, running service, installed component is potential attack surface. Delete unnecessary functions, disable unused ports, uninstall sample applications -- the smaller the attack surface, the lower the security risk. Core of security configuration is continuously reducing attack surface.

    3. Defense in Depth -- cannot rely on only one layer of configuration. HSTS prevents downgrade, CSP limits script execution, X-Frame-Options blocks clickjacking, WAF provides additional filtering -- each layer backs up the others. When one layer is misconfigured, other layers still provide protection.


    Learning Resources / Learning Resources

    Skill supplementary files: payloads.md, test-cases.md Related Skills: skills/logging-monitoring/SKILL.md, skills/container-security/SKILL.md

    internalmaterial (this workspace):

    • guides/security_misconfiguration_complete_guide.md -- security configurationerrorcompleteguide(directoryEnumerate、informationleakage、cloud storageconfiguration、automated ScanTool)

    External Resources:


    Misconfiguration Categories

    Understanding misconfiguration types helps prioritize testing. Each category has distinct detection methods and remediation strategies.

    CategoryOWASP ReferenceDetection ComplexityExploit Impact
    Default CredentialsA02:2025Low (automated)Critical (full system access)
    Unnecessary ServicesA02:2025Low (port scanning)High (attack surface expansion)
    Verbose Error MessagesA04:2021Low (manual probing)Medium (information disclosure)
    Missing Security HeadersA02:2025Low (curl/nmap)Medium (XSS/clickjacking enablement)
    Directory ListingA02:2025Low (curl/ffuf)High (source code, config exposure)
    TLS/SSL WeaknessesA02:2025Medium (testssl.sh)High (MITM, credential interception)
    Cloud Storage ExposureA02:2025Medium (cloud tools)Critical (data breach)
    CORS MisconfigurationA02:2025Medium (manual testing)High (cross-origin data theft)
    Cookie MisconfigurationA02:2025Low (curl)Medium (session hijacking)
    Debug Mode EnabledA02:2025Low (ffuf/nuclei)Critical (RCE, secrets exposure)

    Testing priority: Start with default credentials and debug endpoints (highest ROI), then move to headers and TLS, then cloud storage and CORS.


    Hardening Checklist

    Use this checklist to verify that a system is properly hardened against common misconfigurations. Each item maps to a specific remediation action.

    Network Layer

    • All unnecessary ports closed (only 80, 443 for web servers)
    • Management interfaces (SSH, RDP, databases) restricted to internal IPs
    • Firewall rules follow default-deny policy
    • No services running on non-standard ports (scan all 65535 ports to verify)
    • ICMP responses disabled where not needed

    Application Layer

    • Debug mode disabled in production (APP_DEBUG=false, DEBUG=False, display_errors=Off)
    • Default pages removed (Apache test page, Nginx default, Tomcat welcome)
    • Default credentials changed on all services
    • Directory listing disabled globally
    • Custom error pages configured (no stack traces)
    • Admin panels require authentication and IP restriction

    HTTP Security Headers

    • Strict-Transport-Security (HSTS) with includeSubDomains and preload
    • Content-Security-Policy with strict default-src and script-src
    • X-Content-Type-Options: nosniff
    • X-Frame-Options: DENY or SAMEORIGIN
    • Referrer-Policy: strict-origin-when-cross-origin
    • Permissions-Policy restricting camera, microphone, geolocation

    TLS/SSL

    • TLS 1.2 minimum; TLS 1.0 and 1.0 disabled
    • Strong cipher suites only (no RC4, no DES, no 3DES)
    • Certificate valid and not expired
    • HSTS header present and configured
    • Certificate chain complete (no missing intermediates)

    File and Data Protection

    • .git, .svn, .env files not accessible via web
    • Backup files (.bak, .old, .sql) not in web root
    • Sensitive directories (/admin, /backup, /config) access-controlled
    • Upload directories do not allow script execution
    • No sensitive data in client-accessible JavaScript files

    Configuration Auditing Tools

    Automated configuration auditing catches misconfigurations at scale. Integrate these tools into CI/CD pipelines and regular security reviews.

    ToolScopeOutput FormatCI/CD Integration
    NiktoWeb server configurationHTML, CSV, XMLYes (exit codes)
    testssl.shTLS/SSL configurationJSON, CSV, HTMLYes
    NucleiBroad misconfiguration templatesJSON, SARIFYes
    ScoutSuiteCloud configuration auditHTML reportLimited
    ProwlerAWS CIS complianceJSON, CSV, HTMLYes
    LynisOS hardening auditPlain text reportYes
    OpenSCAPOS compliance (DISA STIG, CIS)HTML, XCCDFYes
    CheckovInfrastructure-as-Code scanningJSON, SARIFYes (native)
    tfsecTerraform security scanningJSON, SARIFYes (native)

    Automation pipeline example:

    #!/bin/bash
    # config-audit.sh — Run automated configuration audit
    TARGET="$1"
    REPORT_DIR="reports/$(date +%Y%m%d)"
    
    mkdir -p "$REPORT_DIR"
    
    # Web server audit
    nikto -h "https://$TARGET" -o "$REPORT_DIR/nikto.html" -Format htm
    
    # TLS audit
    testssl.sh --json-pretty "$TARGET:443" > "$REPORT_DIR/tls.json"
    
    # Header audit (custom script)
    curl -sI "https://$TARGET" | grep -iE "strict-transport|content-security|x-frame|x-content-type" \
      > "$REPORT_DIR/headers.txt"
    
    # Nuclei misconfiguration templates
    nuclei -u "https://$TARGET" -t misconfiguration/ -o "$REPORT_DIR/nuclei.txt"
    
    echo "[+] Audit complete. Reports in $REPORT_DIR/"
    

    Baseline Comparison

    Configuration drift occurs when deployed systems deviate from the approved security baseline. Regular baseline comparison catches unauthorized changes and configuration regressions.

    Baseline comparison workflow:

    1. Create baseline: After hardening a system, capture a snapshot of all security-relevant configurations
    2. Store securely: Save the baseline in version control or a secure document store
    3. Schedule comparisons: Run weekly or after every deployment
    4. Alert on drift: Any deviation from the baseline triggers an investigation
    #!/bin/bash
    # Baseline creation script
    BASELINE_DIR="/opt/security-baselines/$(hostname)/$(date +%Y%m%d)"
    mkdir -p "$BASELINE_DIR"
    
    # Capture security-relevant configurations
    cp /etc/apache2/apache2.conf "$BASELINE_DIR/" 2>/dev/null
    cp /etc/nginx/nginx.conf "$BASELINE_DIR/" 2>/dev/null
    cp /etc/ssh/sshd_config "$BASELINE_DIR/" 2>/dev/null
    cp /etc/mysql/my.cnf "$BASELINE_DIR/" 2>/dev/null
    
    # Capture security headers
    curl -sI "https://$(hostname)" > "$BASELINE_DIR/security_headers.txt"
    
    # Capture open ports
    nmap -sT -O "$(hostname)" > "$BASELINE_DIR/open_ports.txt"
    
    # Capture TLS configuration
    testssl.sh --quiet "$(hostname):443" > "$BASELINE_DIR/tls_config.txt"
    
    # Capture installed packages
    dpkg -l > "$BASELINE_DIR/packages.txt" 2>/dev/null
    rpm -qa > "$BASELINE_DIR/packages.txt" 2>/dev/null
    
    echo "[+] Baseline saved to $BASELINE_DIR"
    echo "[+] Run baseline-diff.sh to compare against this baseline"
    
    #!/bin/bash
    # Baseline comparison script
    CURRENT="/tmp/current_baseline"
    BASELINE="/opt/security-baselines/$(hostname)/latest"
    
    # Create current snapshot (same commands as baseline creation)
    # ... (same capture commands)
    
    # Compare
    echo "=== Security Header Changes ==="
    diff "$BASELINE/security_headers.txt" "$CURRENT/security_headers.txt"
    
    echo "=== Open Port Changes ==="
    diff "$BASELINE/open_ports.txt" "$CURRENT/open_ports.txt"
    
    echo "=== Package Changes ==="
    diff "$BASELINE/packages.txt" "$CURRENT/packages.txt"
    

    Frequently asked questions

    What to verify before installation and use

    What does the security-misconfiguration source document cover?

    Supplementary Files: - payloads.md — byclassotherorganization attackpayloadandtestingcommand(HTTP Header、TLS/SSL、defaultcredentials、directorylist、CORS、Cookie etc.) - test-cases.md — structureizetestinguseexample,with severelevelotherandverifyStep(HTTP Security、TLS/SSL、Default Co…

    How do I install security-misconfiguration?

    The source record exposes this install command: npx skills add https://github.com/brucesongs/kali-claw --skill "skills/security-misconfiguration". Inspect the command and pinned source before running it.

    Which Agent platforms does the source record declare?

    The pinned source record declares support for: claude code, cursor.

    Which permission-related actions were detected?

    Static rules flagged network in the source; the page lists the matching lines and excerpts.

    Alternatives

    Compare before choosing