penetration-testing – skill Lập trình cho agent AI
Thực hiện kiểm thử xâm nhập cơ bản và đánh giá bảo mật.
Cài skill penetration-testing bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/penetration-testing-38c0b.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /penetration-testing – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/penetration-testing-38c0b.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $penetration-testing – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/penetration-testing-38c0b.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /penetration-testing – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/penetration-testing-38c0b.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /penetration-testing – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
> ⚠️ AUTHORIZED USE ONLY
> This skill is for educational purposes or authorized security assessments only.
> You must have explicit, written permission from the system owner before using this tool.
> Misuse of this tool is illegal and strictly prohibited.
> Mandatory confirmation gate
> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
> 1. Ask the user to state the exact target URL, IP, account, or resource.
> 2. Ask the user to confirm written authorization and the permitted scope.
> 3. Show the exact command(s) and explain their expected effect.
> 4. Wait for explicit confirmation in the current conversation.
>
> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
Penetration Testing
Validate security controls through authorized testing.
Phases
pentest_phases:
1_reconnaissance:
- Passive information gathering
- DNS enumeration
- Network mapping
2_scanning:
- Port scanning
- Service identification
- Vulnerability scanning
3_exploitation:
- Attempt exploitation
- Verify vulnerabilities
- Document findings
4_post_exploitation:
- Privilege escalation
- Lateral movement
- Data access
5_reporting:
- Document findings
- Risk assessment
- Remediation recommendationsReconnaissance
# DNS enumeration
dig example.com ANY
host -l example.com
# Subdomain discovery
subfinder -d example.com
# WHOIS
whois example.comScanning
# Port scan
nmap -sV -sC -p- target.com
# Web scanning
nikto -h https://target.com
dirb https://target.com
# Vulnerability scan
nmap --script vuln target.comWeb Testing
# SQL injection test
sqlmap -u "http://target.com/page?id=1"
# XSS testing
# Use Burp Suite or manual testing
# Directory traversal
curl "http://target.com/file?path=../../../etc/passwd"Rules of Engagement
scope:
in_scope:
- target.com
- api.target.com
out_of_scope:
- production-db.target.com
- third-party services
testing_window: "Weekdays 2-6 AM UTC"
emergency_contact: "[email protected]"Best Practices
- Always get written authorization
- Define clear scope
- Document everything
- Report critical findings immediately
- Safe exploitation techniques only
Related Skills
- dast-scanning (
dast-scanning) - Automated testing - vulnerability-scanning (
vulnerability-scanning) - Vulnerability discovery
When to Use
- You have explicit, written authorization to assess the target in scope, and the task matches this skill's active assessment workflow.
Limitations
- Apply guidance only within authorized scope; test destructive steps in non-production first.
- Docs-only import: upstream scripts and templates not bundled.
Example
# Read-only first: inventory before any active step.
command -v nmap
nmap --help> Adapted from [BagelHole/DevOps-Security-Agent-Skills](https://github.com/BagelHole/DevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.
Skill liên quan
- performance-engineer – Chẩn đoán nút thắt hiệu năng bằng profiling, trace, kiểm thử tải và observability; xác…
- performance-management – Sổ đánh giá hiệu suất: loại đánh giá, kỳ đánh giá, nhân viên và người đánh giá, điểm…
- performance-optimizer – Xác định và sửa nút thắt hiệu năng trong mã nguồn, cơ sở dữ liệu và API. Đo trước và sau…
- performance-testing-review-ai-review – Rà soát các thay đổi mã nhạy cảm về hiệu năng với mốc chuẩn tái lập được, chỉ số khối…
- performance-testing-review-multi-agent-review – Rà soát một diff mã đã xác định từ góc nhìn đúng đắn, phân quyền và hiệu năng liên quan…
- permission-manager – Quản lý quyền của opencode: rà soát danh sách luôn cho phép, đề xuất lệnh chỉ đọc an…
- phase-gated-debugging – Dùng khi gỡ lỗi bất kỳ lỗi nào. Áp dụng quy trình 5 pha, chặn chỉnh sửa code cho đến khi…
- php – Hướng dẫn super-code theo từng ngôn ngữ dành cho php.