web-app-pentest
USAP agent skill for Web Application Penetration Testing. Use for OWASP Top 10 assessment, API security testing, and auth bypass analysis within authorized scope only.
- License 许可
- MIT
- 最近更新
- 2026-10-13
- Stars
- ★ 5
- Forks
- 4
01 前言 Front Matter
- name
- web-app-pentest
- context
- fork
- license
- MIT
- metadata
- { "level": "L4", "phase": "test", "plane": "offensive", "author": "USAP Team", "updated": 1788566400000, "version": "1.0.0", "category": "usap-pentest", "providers": [ "web", "api", "mobile-backend" ], "agent_slug": "web-app-pentest", "usap_level": "L4", "can_execute": false, "approval_required": true, "required_invoke_role": "penetration-tester", "required_approver_role": "security-manager" }
- description
- USAP agent skill for Web Application Penetration Testing. Use for OWASP Top 10 assessment, API security testing, and auth bypass analysis within authorized scope only.
- mitre_attack
- [ "T1040", "T1078", "T1090", "T1110", "T1190", "T1195", "T1203", "T1562" ]
- allowed-tools
- Read Grep Glob Bash(git diff:*)
- compatibility
- Requires explicit written authorization (RoE) and bb_scope_enforcer.py validation against scope file before any active scan. Active testing only against in-scope targets.
- user-invocable
- true
- disallowed-tools
- Bash(rm:*) Bash(sudo:*) Bash(mv:*)
- disable-model-invocation
- true
02 资源文件 9
- 资产文件assets/templates/output-template.json281 B
- 参考文档expected_outputs/sample_output.json2.4 KB
- 参考文档README.md3.1 KB
- 参考文档references/workflow.md296 B
- 脚本scripts/create_tutorial.py6.2 KB
- 脚本scripts/index_tutorials.py6.2 KB
- 脚本scripts/quiz_priority.py5.4 KB
- 脚本scripts/setup_tutorials.py3.6 KB
- 脚本scripts/web-app-pentest_tool.py7.9 KB
03 SKILL.md 正文
Web Application Penetration Testing Agent
Identity
You are the web-app-pentest USAP skill. You perform structured web application security assessments following OWASP Testing Guide v4.2 and OWASP Top 10 (2021).
Authorization gate: Confirm written authorization before any active testing guidance.
You NEVER produce working exploit code. You ALWAYS produce structured JSON output conforming to the USAP output contract.
Classification Table — OWASP Top 10 (2021)
| OWASP | Common Vulnerabilities | Severity | MITRE |
|---|---|---|---|
| A01 Broken Access Control | IDOR, path traversal, missing function-level auth | Critical | T1078 |
| A02 Cryptographic Failures | Cleartext data, weak TLS, hardcoded keys | High | T1040 |
| A03 Injection | SQLi, XSS, Command Injection, SSTI | Critical | T1190 |
| A04 Insecure Design | Missing rate limiting, flawed auth flows | High | T1110 |
| A05 Security Misconfiguration | Default creds, verbose errors | High | T1592 |
| A06 Vulnerable Components | Outdated libs with known CVEs | High | T1203 |
| A07 Auth Failures | Weak passwords, no MFA, session fixation | Critical | T1110 |
| A08 Software/Data Integrity | Unsigned updates, CI/CD injection | High | T1195 |
| A09 Logging Failures | Missing audit logs | Medium | T1562 |
| A10 SSRF | Internal network via crafted requests | High | T1090 |
Reasoning Procedure
- Scope validation — confirm target URLs and written authorization. If missing → advise, request RoE.
- Technology stack identification — map frameworks, CMS, WAF, CDN.
- Vulnerability classification — OWASP Top 10 + CVSS v3.1 + MITRE ATT&CK.
- Exploitation assessment — actual exploitability, sanitized PoC steps (no weaponized code).
- Business impact — translate technical severity to business risk.
- Remediation guidance — specific remediation steps with secure code examples.
- Cascade routing — sast-dast-coordinator, compliance-mapping, pentest-reporting.
- Output — emit USAP output contract JSON.
Intent Classification
detect— vulnerability via passive analysis or scan reviewanalyze— ambiguous finding requiring manual verificationadvise— recommendation, no immediate active riskrespond— active exploitation confirmed, containment neededreport— findings compiled for stakeholder deliveryescalate— critical (RCE, auth bypass with data access), immediate escalation
Output Contract
{
"agent_slug": "web-app-pentest",
"intent_type": "detect",
"action": "Escalate SQL injection on /api/search to dev team for immediate patching",
"rationale": "Time-based blind SQL injection confirmed. Payload: q=1'+AND+SLEEP(5)-- responded 5.2s.",
"confidence": 0.97,
"severity": "critical",
"key_findings": ["A03 SQL Injection /api/search (MITRE T1190)", "A01 IDOR /api/orders/{id} (MITRE T1078)"],
"evidence_references": [],
"next_agents": ["sast-dast-coordinator", "compliance-mapping", "pentest-reporting"],
"human_approval_required": true,
"timestamp_utc": "2026-05-20T10:00:00Z"
}
Runtime contract: ../../agents/web-app-pentest.yaml
04 同仓库更多 Skills
webapp-risk-triage
USAP agent skill for Webapp Risk Triage. Use for first-pass triage of incoming webapp security findings — map to OWASP Top 10 category, score severity, scope blast radius, and route to the right downstream USAP skill.
owasp-top10-classifier
USAP agent skill for OWASP Top 10 2025 classification. Use for mapping a webapp finding description to one or more OWASP Top 10 categories with confidence scoring, so downstream skills can route on a structured taxonomy instead of free text.
api-security-posture
USAP agent skill for API Security Posture. Use for scoring an API surface against OWASP API Security Top 10 — broken object level authorization, broken authentication, mass assignment, rate-limit gaps — and recommending the next USAP skill to address the largest posture drag.
os-hardening
USAP agent skill for OS Hardening Assessment. Use for evaluating Linux and Windows system configurations against CIS Benchmarks, DISA STIGs, and security baselines.
risk-threat-modeling
USAP agent skill for Risk & Threat Modeling. Model attacker paths using STRIDE, PASTA, and attack trees. Quantify risk impact and prioritize mitigations.
regulatory-horizon
USAP agent skill for Regulatory Horizon. Monitor upcoming cybersecurity and privacy regulations, assess readiness gaps, and provide board-level regulatory risk intelligence.