security-testing by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill security-testing安全测试旨在识别应用程序中的漏洞、弱点和威胁,以确保数据保护、防止未经授权的访问并维护系统完整性。它结合了自动化扫描(SAST、DAST)与手动渗透测试和代码审查。
最小工作示例:
# security_scan.py
from zapv2 import ZAPv2
import time
class SecurityScanner:
def __init__(self, target_url, api_key=None):
self.zap = ZAPv2(apikey=api_key, proxies={
'http': 'http://localhost:8080',
'https': 'http://localhost:8080'
})
self.target = target_url
def scan(self):
"""运行完整的安全扫描。"""
print(f"Scanning {self.target}...")
# 爬取应用程序
print("Spidering...")
scan_id = self.zap.spider.scan(self.target)
while int(self.zap.spider.status(scan_id)) < 100:
time.sleep(2)
print(f"Spider progress: {self.zap.spider.status(scan_id)}%")
# 主动扫描
print("Running active scan...")
// ... (完整实现请参阅参考指南)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/ 目录下的详细实现:
每周安装数
179
代码仓库
GitHub 星标数
126
首次出现
Jan 21, 2026
安全审计
安装于
opencode154
gemini-cli148
codex143
cursor138
claude-code136
github-copilot126
Security testing identifies vulnerabilities, weaknesses, and threats in applications to ensure data protection, prevent unauthorized access, and maintain system integrity. It combines automated scanning (SAST, DAST) with manual penetration testing and code review.
Minimal working example:
# security_scan.py
from zapv2 import ZAPv2
import time
class SecurityScanner:
def __init__(self, target_url, api_key=None):
self.zap = ZAPv2(apikey=api_key, proxies={
'http': 'http://localhost:8080',
'https': 'http://localhost:8080'
})
self.target = target_url
def scan(self):
"""Run full security scan."""
print(f"Scanning {self.target}...")
# Spider the application
print("Spidering...")
scan_id = self.zap.spider.scan(self.target)
while int(self.zap.spider.status(scan_id)) < 100:
time.sleep(2)
print(f"Spider progress: {self.zap.spider.status(scan_id)}%")
# Active scan
print("Running active scan...")
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| OWASP ZAP (DAST) | OWASP ZAP (DAST) |
| SQL Injection Testing | SQL Injection Testing |
| XSS Testing | XSS Testing |
| Authentication & Authorization Testing | Authentication & Authorization Testing |
| CSRF Protection Testing | CSRF Protection Testing |
| Dependency Vulnerability Scanning | Dependency Vulnerability Scanning |
| Security Headers Testing |
Weekly Installs
179
Repository
GitHub Stars
126
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode154
gemini-cli148
codex143
cursor138
claude-code136
github-copilot126
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
31,600 周安装
| Security Headers Testing |
| Secrets Detection | Secrets Detection |