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…
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
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Declared | Source record | Install path and trigger |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
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.
npx skills add https://github.com/brucesongs/kali-claw --skill "skills/security-misconfiguration"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
- 01
Step 1: Nikto Web Scan
use Nikto performautomated Web configurationScan,Detectdefaultfile、dangerousconfigurationandoverwhen component。
use Nikto performautomated Web configurationScan,Detectdefaultfile、dangerousconfigurationandoverwhen component。 - 02
Step 2: HTTP security Header check
obtainandreview HTTP response Header,verifycriticalsecurity Header iswhetherexistsandconfigurationcorrect。
obtainandreview HTTP response Header,verifycriticalsecurity Header iswhetherexistsandconfigurationcorrect。 - 03
Step 3: defaultcredentialsbrute force
use Hydra forloginformanddatabaseserviceperformdefaultcredentialstesting。
use Hydra forloginformanddatabaseserviceperformdefaultcredentialstesting。 - 04
Step 4: Verbose Error exploit
throughsendmalformedrequest、superlengthparameter、illegal HTTP methodtriggerdetailed errorinformation。
throughsendmalformedrequest、superlengthparameter、illegal HTTP methodtriggerdetailed errorinformation。 - 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
The documentation includes network, browsing, or remote request actions.
nikto -h "https://$TARGET" -o "$REPORT_DIR/nikto.html" -Format htmNetwork access
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
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 96/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 67 | Source | Repository attention, not individual Skill quality |
| Compatibility | 2 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated 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
- Web applicationpenetration testing - fortargetperformcomprehensive configurationsecurity audit,discoveryexposure managementinterface、defaultinstallpage、sensitivefile
- Basic infrastructure security assessment - Detect redundant services, open ports, default configuration
- TLS/SSL security audit - assessmentcertificateconfiguration、protocolversion、passwordsetpiecestrongdegree
- cloudresourceconfigurationreview - check S3 Bucket publicaccess、IAM policyoveratlenient、security grouprulenotwhen
- Compliance check - Verify configuration against CIS Benchmark, OWASP ASVS standards
Core Tools / Core Tools
| Tool | Purpose | Command Example |
|---|---|---|
| Nmap | serviceEnumerate、versionDetect、scriptScan | nmap -sV -sC --script=default,vuln target |
| Nikto | Web serverconfigurationvulnerability scanning | nikto -h http://target -o report.html -Format htm |
| testssl.sh | TLS/SSL configurationcomprehensive Detect | testssl.sh --full --quiet target:443 |
| Burp Suite | HTTP Header analysis、responsecheck、Scanner module | Proxy intercept -> check Response Headers -> Scanner maindynamicScan |
| WhatWeb | Web techniquefingerprinting、frameworkversionDetect | whatweb -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 Measure | Description | Priority |
|---|---|---|
| Server Hardening Guide | follow CIS Benchmark / DISA STIG foroperationsystem、inintervalpieceperformhardening | CRITICAL |
| Automated Config Scanning | will Nikto、testssl.sh、ScoutSuite integrationto CI/CD pipeline,eachtimedeploymentautomated Detect | HIGH |
| Security Headers | deploymentcomplete security Header collection(HSTS、CSP、X-Frame-Options、X-Content-Type-Options) | HIGH |
| Remove Default Installs | deletedefaultpage、exampleapplication、testingaccount、admin backenddefaultentry point | CRITICAL |
| Error Handling Policy | productionenvironmentunifiederrorpage,prohibitstacktrackingandinternalinformationleakage | HIGH |
| Least Privilege Services | disablenotnecessary serviceandport,followleast privilegeoriginalthen | HIGH |
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
-
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.
-
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.
-
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:
- OWASP Top 10 - A02:2025 Security Misconfiguration
- OWASP Secure Headers Project
- CIS Benchmarks -- OS and middleware hardening baseline
- Mozilla SSL Configuration Generator -- TLS bestpracticeconfigurationgeneratetool
- SecurityHeaders.com -- online HTTP security Header Detect
- HackTricks - Pentesting Methodology
Misconfiguration Categories
Understanding misconfiguration types helps prioritize testing. Each category has distinct detection methods and remediation strategies.
| Category | OWASP Reference | Detection Complexity | Exploit Impact |
|---|---|---|---|
| Default Credentials | A02:2025 | Low (automated) | Critical (full system access) |
| Unnecessary Services | A02:2025 | Low (port scanning) | High (attack surface expansion) |
| Verbose Error Messages | A04:2021 | Low (manual probing) | Medium (information disclosure) |
| Missing Security Headers | A02:2025 | Low (curl/nmap) | Medium (XSS/clickjacking enablement) |
| Directory Listing | A02:2025 | Low (curl/ffuf) | High (source code, config exposure) |
| TLS/SSL Weaknesses | A02:2025 | Medium (testssl.sh) | High (MITM, credential interception) |
| Cloud Storage Exposure | A02:2025 | Medium (cloud tools) | Critical (data breach) |
| CORS Misconfiguration | A02:2025 | Medium (manual testing) | High (cross-origin data theft) |
| Cookie Misconfiguration | A02:2025 | Low (curl) | Medium (session hijacking) |
| Debug Mode Enabled | A02:2025 | Low (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) withincludeSubDomainsandpreload -
Content-Security-Policywith strictdefault-srcandscript-src -
X-Content-Type-Options: nosniff -
X-Frame-Options: DENYorSAMEORIGIN -
Referrer-Policy: strict-origin-when-cross-origin -
Permissions-Policyrestricting 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,.envfiles 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.
| Tool | Scope | Output Format | CI/CD Integration |
|---|---|---|---|
| Nikto | Web server configuration | HTML, CSV, XML | Yes (exit codes) |
| testssl.sh | TLS/SSL configuration | JSON, CSV, HTML | Yes |
| Nuclei | Broad misconfiguration templates | JSON, SARIF | Yes |
| ScoutSuite | Cloud configuration audit | HTML report | Limited |
| Prowler | AWS CIS compliance | JSON, CSV, HTML | Yes |
| Lynis | OS hardening audit | Plain text report | Yes |
| OpenSCAP | OS compliance (DISA STIG, CIS) | HTML, XCCDF | Yes |
| Checkov | Infrastructure-as-Code scanning | JSON, SARIF | Yes (native) |
| tfsec | Terraform security scanning | JSON, SARIF | Yes (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:
- Create baseline: After hardening a system, capture a snapshot of all security-relevant configurations
- Store securely: Save the baseline in version control or a secure document store
- Schedule comparisons: Run weekly or after every deployment
- 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
brucesongs/kali-claw
insecure-design
Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.
brucesongs/kali-claw
binary-reverse
Binary reverse engineering covers the complete chain from static analysis, dynamic debugging, to vulnerability discovery, exploit development, and malware analysis.
PramodDutta/qaskills
RAG Regression Testing
Gate RAG pipelines in CI with versioned golden eval sets, per-metric thresholds, baseline drift detection, and a build that fails when retrieval or answer quality regresses.
PramodDutta/qaskills
State Machine Test Generator
Generate comprehensive test cases from state machine models covering all states, transitions, guard conditions, and invalid transition attempts for workflow-heavy features