用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill wstg-conf-01命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类
正在显示 SKILL.md
| name | wstg-conf-01 |
| description | Test Network Infrastructure Configuration |
| category | configuration |
| owasp_id | WSTG-CONF-01 |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["misconfiguration","hardening","server","wstg","conf"] |
| tech_stack | ["apache","nginx","iis","tomcat"] |
| cwe_ids | ["CWE-16"] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
WSTG-CONF-01
Test Network Infrastructure Configuration
This test evaluates the security configuration of network infrastructure components that support the web application. It includes assessing web servers, application servers, database servers, load balancers, and administrative interfaces for misconfigurations, default credentials, and known vulnerabilities. Proper network infrastructure hardening is essential as vulnerabilities in these components can provide attackers with direct access to sensitive systems.
# Port scanning for common services
nmap -sV -sC -p- target.com
# Quick scan of common ports
nmap -sV -p 21,22,23,25,80,110,143,443,445,3306,3389,5432,8080,8443 target.com
nmap -sU -p 53,67,68,69,123,161,500 target.com
# Nessus scan (commercial)
# Configure and run via web interface
# OpenVAS scan (open source)
omp -u admin -w password --xml="<create_target><name>target</name><hosts>target.com</hosts></create_target>"
# Nikto web server scan
nikto -h https://target.com
# Nmap vulnerability scripts
nmap --script vuln target.com
# Common admin paths
for path in admin administrator manager console cpanel plesk webmin phpmyadmin adminer; do
status=$(curl -s -o /dev/null -w "%{http_code}" "https://target.com/$path")
echo "$path: $status"
done
# Common admin ports
nmap -sV -p 8080,8443,9090,10000,2082,2083,2086,2087 target.com
| Service | Username | Password |
|---|---|---|
| Tomcat | admin | admin |
| Tomcat | tomcat | tomcat |
| Jenkins | admin | admin |
| JBoss | admin | admin |
| WebLogic | weblogic | weblogic |
| phpMyAdmin | root | (empty) |
| MongoDB | (none) | (none) |
| Redis | (none) | (none) |
| Elasticsearch | elastic | changeme |
# Test Tomcat default credentials
curl -u admin:admin https://target.com:8080/manager/html
# Test Jenkins
curl -u admin:admin https://target.com:8080/jenkins/
# Hydra brute force (with permission)
hydra -L users.txt -P passwords.txt target.com http-get /admin
# SSL Labs style test
sslyze --regular target.com
# testssl.sh
testssl.sh target.com
# Nmap SSL scripts
nmap --script ssl-enum-ciphers -p 443 target.com
# Check for information disclosure
curl -sI https://target.com | grep -i server
# Check security headers
curl -sI https://target.com | grep -iE 'x-frame|x-content|x-xss|strict-transport|content-security'
# Check for debugging enabled
curl -s https://target.com | grep -iE 'debug|trace|stack'
| Tool | Type | Usage |
|---|---|---|
| Nessus | Commercial | Comprehensive vulnerability scanning |
| OpenVAS | Open Source | Network vulnerability scanning |
| Qualys | Commercial | Cloud-based scanning |
| Nexpose | Commercial | Vulnerability management |
| Tool | Description | Usage |
|---|---|---|
| Nmap | Port/service scanner | nmap -sV -sC target.com |
| Masscan | Fast port scanner | masscan -p1-65535 target.com |
| Zmap | Internet scanner | Large-scale scanning |
| Tool | Description | Usage |
|---|---|---|
| Nikto | Web server scanner | nikto -h target.com |
| Nuclei | Template-based scanner | nuclei -u target.com |
| WPScan | WordPress scanner | wpscan --url target.com |
| Tool | Description | Usage |
|---|---|---|
| testssl.sh | SSL testing | testssl.sh target.com |
| sslyze | SSL analysis | sslyze target.com |
| SSL Labs | Online testing | ssllabs.com |
#!/bin/bash
TARGET=$1
echo "=== INFRASTRUCTURE SECURITY SCAN ==="
# 1. Port Discovery
echo "[+] Port Scanning..."
nmap -sV -sC -oN nmap_results.txt $TARGET
# 2. Vulnerability Scan
echo "[+] Vulnerability Scanning..."
nmap --script vuln -oN vuln_results.txt $TARGET
# 3. SSL/TLS Check
echo "[+] SSL/TLS Analysis..."
testssl.sh $TARGET > ssl_results.txt
# 4. Web Server Scan
echo "[+] Web Server Scanning..."
nikto -h https://$TARGET -o nikto_results.txt
# 5. Admin Interface Discovery
echo "[+] Admin Interface Discovery..."
gobuster dir -u https://$TARGET -w /usr/share/seclists/Discovery/Web-Content/common.txt -o dirs.txt
echo "[+] Scan Complete"
# Install nuclei
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
# Run infrastructure templates
nuclei -u https://target.com -t cves/
nuclei -u https://target.com -t misconfigurations/
nuclei -u https://target.com -t default-logins/
nuclei -u https://target.com -t exposed-panels/
# Disable unnecessary services
systemctl disable telnet
systemctl disable ftp
# Configure firewall (iptables example)
iptables -A INPUT -p tcp --dport 22 -s trusted_ip -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j DROP
# Restrict administrative access
# Allow admin interfaces only from internal network
[Internet]
|
[DMZ - Web Servers]
|
[Internal - App Servers]
|
[Restricted - Database Servers]
|
[Management - Admin Access]
Variable based on findings. Common scenarios:
| Finding | CVSS | Severity |
|---|---|---|
| Default credentials on admin panel | 9.8 | Critical |
| Unpatched critical vulnerability | 9.8 | Critical |
| Exposed database port | 7.5 | High |
| Missing security headers | 5.3 | Medium |
| Version disclosure | 5.3 | Medium |
| CWE ID | Title | Description |
|---|---|---|
| CWE-16 | Configuration | Improper configuration |
| CWE-200 | Information Exposure | Version/config disclosure |
| CWE-287 | Improper Authentication | Default credentials |
| CWE-693 | Protection Mechanism Failure | Missing hardening |
[ ] Port scan completed
[ ] Service versions identified
[ ] Vulnerability scan performed
[ ] Administrative interfaces discovered
[ ] Default credentials tested
[ ] SSL/TLS configuration reviewed
[ ] Security headers checked
[ ] Patch levels assessed
[ ] Network segmentation verified
[ ] Access controls reviewed
[ ] Findings documented
[ ] Risk ratings assigned