跳到正文
Skillpedia
安全29k · #9505

security-pen-testing

它能做什么

这项技能让智能体在攻击者发现之前,检测应用或 API 的安全弱点。适合获得测试许可的开发者和安全人员。

适用场景

  • ✓当你获得许可、可以对网页应用或 API 进行漏洞测试的时候。
  • ✓当你想检查依赖项是否存在已知安全问题时。
  • ✓当你需要为项目出具书面渗透测试报告的时候。

技能链接

https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/security-pen-testing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/security-pen-testing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请对我们的 API 进行一次获得授权的安全测试,检查 OWASP Top 10 问题和有风险的软件包。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会运行漏洞和依赖扫描,检查暴露的密钥,并审查常见的 OWASP Top 10 风险。然后它会撰写一份渗透测试报告。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Security Penetration Testing

Hands-on offensive security testing skill for finding vulnerabilities before attackers do. This is NOT compliance checking (see senior-secops) or security policy writing (see senior-security) — this is about systematic vulnerability discovery through authorized testing.


Table of Contents


Overview

What This Skill Does

This skill provides the methodology, checklists, and automation for offensive security testing — actively probing systems to discover exploitable vulnerabilities. It covers web applications, APIs, infrastructure, and supply chain security.

Distinction from Other Security Skills

Skill Focus Approach
security-pen-testing (this) Finding vulnerabilities Offensive — simulate attacker techniques
senior-secops Security operations Defensive — monitoring, incident response, SIEM
senior-security Security policy Governance — policies, frameworks, risk registers
skill-security-auditor CI/CD gates Automated — pre-merge security checks

Prerequisites

All testing described here assumes written authorization from the system owner. Unauthorized testing is illegal under the CFAA and equivalent laws worldwide. Always obtain a signed scope-of-work or rules-of-engagement document before starting.


OWASP Top 10 Systematic Audit

Use the vulnerability scanner tool for automated checklist generation:

# Generate OWASP checklist for a web application
python scripts/vulnerability_scanner.py --target web --scope full

# Quick API-focused scan
python scripts/vulnerability_scanner.py --target api --scope quick --json

Quick Reference (OWASP Top 10:2025)

# Category Key Tests
A01 Broken Access Control IDOR, vertical escalation, CORS, forced browsing, SSRF (internal IPs, cloud metadata, DNS rebinding)
A02 Security Misconfiguration Default credentials, debug mode, security headers, directory listing
A03 Software Supply Chain Failures Dependency audit (npm/pip/go), EOL checks, known CVEs, build and CI/CD provenance
A04 Cryptographic Failures TLS version, password hashing, hardcoded keys, weak PRNG
A05 Injection SQLi, NoSQLi, command injection, template injection, XSS
A06 Insecure Design Rate limiting, business logic abuse, multi-step flow bypass
A07 Authentication Failures Brute force, session cookie flags, session invalidation, MFA bypass
A08 Software or Data Integrity Failures Unsafe deserialization, SRI checks, unsigned updates
A09 Security Logging and Alerting Failures Auth event logging, sensitive data in logs, alerting thresholds
A10 Mishandling of Exceptional Conditions Fail-open on errors, unhandled exceptions, stack-trace leakage, partial transactions
# Audit dependencies
python scripts/dependency_auditor.py --file package.json --severity high
python scripts/dependency_auditor.py --file requirements.txt --json

See owasp_top_10_checklist.md for detailed test procedures, code patterns to detect, remediation steps, and CVSS scoring guidance for each category.


Static Analysis

Recommended tools: CodeQL (custom queries for project-specific patterns), Semgrep (rule-based scanning with auto-fix), ESLint security plugins (eslint-plugin-security, eslint-plugin-no-unsanitized).

Key patterns to detect: SQL injection via string concatenation, hardcoded JWT secrets, unsafe YAML/pickle deserialization, missing security middleware (e.g., Express without Helmet).

See attack_patterns.md for code patterns and detection payloads across injection types.


Dependency Vulnerability Scanning

Ecosystem commands: npm audit, `pip aud

常见问题

我需要先获得许可吗?

需要。该技能仅用于获得授权的测试,你应当为所测试的系统取得书面批准。

这和合规检查一样吗?

不一样。合规检查由另一项安全运营技能负责。

它会检查依赖项的什么内容?

它会审计你的软件包是否存在已知漏洞。

详情

作者的原始描述

Use for an authorized penetration test, vulnerability scan or OWASP Top 10 check of an app or API. Scans with vulnerability_scanner.py, audits dependencies with dependency_auditor.py and writes the report with pentest_report_generator.py.

repo: alirezarezvani/claude-skills

热度

GitHub 星标
29k
排名
#9505
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能