security-testing · aj-geddes — скилл для Claude Code: что делает и как установить
Находит уязвимости в коде и зависимостях, проверяет защиту от SQL-инъекций, XSS и CSRF, а также настраивает DAST-сканирование через OWASP ZAP.
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a claude-codeЧто делает security-testing
Скилл содержит инструкции и сценарии для поиска уязвимостей из OWASP Top 10, проверки аутентификации, заголовков безопасности и поиска секретов в кодовой базе. Он объединяет статический анализ кода (SAST) и динамическое тестирование работающего приложения (DAST).
В комплект входят примеры на Python с библиотекой zapv2 для краулинга и активного тестирования веб-сервисов. Без запущенного локального прокси OWASP ZAP на http://localhost:8080 этот сканер работать не будет.
Материалы скилла ориентированы на автоматизацию проверок в CI/CD и валидацию входных данных через параметризованные запросы. Отдельные справочники посвящены тестированию защиты от CSRF, поиску утечек токенов и аудиту безопасности API.
Какие задачи решает
- Проверить приложение на уязвимости из OWASP Top 10
- Настроить динамическое DAST-сканирование сайта через OWASP ZAP
- Найти оставленные в репозитории пароли и API-ключи
- Протестировать эндпоинты на подверженность SQL-инъекциям и XSS
Примеры запросов агенту
- Проверь роуты аутентификации на уязвимости и подготовь тесты на SQL-инъекции
- Напиши скрипт для динамического сканирования сайта через OWASP ZAP на Python
- Просканируй зависимости проекта на известные уязвимости и проверь заголовки безопасности
Как установить security-testing
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a claude-code2Вручную: положить файлы
~/.claude/skills/security-testing/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/security-testing/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a codex2Вручную: положить файлы
.agents/skills/security-testing/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a cursor2Вручную: положить файлы
.cursor/skills/security-testing/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts security-testing2Вручную: положить файлы
.github/skills/security-testing/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/security-testingВручную: положить файлы
.devin/skills/security-testing/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о security-testing
Как установить security-testing в Claude Code?
Выполните команду npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a claude-code в терминале вашего проекта.
Что делает скилл security-testing?
Он даёт модели сценарии для проведения SAST и DAST, проверки зависимостей, поиска токенов в коде и тестирования защиты от атак вроде XSS или CSRF.
Что нужно для запуска скрипта из примера?
Понадобятся интерпретатор Python с установленным пакетом zapv2 и запущенный сервис OWASP ZAP с прокси на http://localhost:8080.
Исходный текст
SKILL.md · MIT
---
name: security-testing
description: >
Identify security vulnerabilities through SAST, DAST, penetration testing, and
dependency scanning. Use for security test, vulnerability scanning, OWASP, SQL
injection, XSS, CSRF, and penetration testing.
---
# Security Testing
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
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.
## When to Use
- Testing for OWASP Top 10 vulnerabilities
- Scanning dependencies for known vulnerabilities
- Testing authentication and authorization
- Validating input sanitization
- Testing API security
- Checking for sensitive data exposure
- Validating security headers
- Testing session management
## Quick Start
Minimal working example:
```python
# 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)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [OWASP ZAP (DAST)](references/owasp-zap-dast.md) | OWASP ZAP (DAST) |
| [SQL Injection Testing](references/sql-injection-testing.md) | SQL Injection Testing |
| [XSS Testing](references/xss-testing.md) | XSS Testing |
| [Authentication & Authorization Testing](references/authentication-authorization-testing.md) | Authentication & Authorization Testing |
| [CSRF Protection Testing](references/csrf-protection-testing.md) | CSRF Protection Testing |
| [Dependency Vulnerability Scanning](references/dependency-vulnerability-scanning.md) | Dependency Vulnerability Scanning |
| [Security Headers Testing](references/security-headers-testing.md) | Security Headers Testing |
| [Secrets Detection](references/secrets-detection.md) | Secrets Detection |
## Best Practices
### ✅ DO
- Run security scans in CI/CD
- Test with real attack vectors
- Scan dependencies regularly
- Use security headers
- Implement rate limiting
- Validate and sanitize all input
- Use parameterized queries
- Test authentication/authorization thoroughly
### ❌ DON'T
- Store secrets in code
- Trust user input
- Expose detailed error messages
- Skip dependency updates
- Use default credentials
- Ignore security warnings
- Test only happy paths
- Commit sensitive data
© aj-geddes · MIT · aj-geddes/useful-ai-prompts
Похожие скиллы
Всё по теме «Безопасность» →Сначала — security-testing от других авторов.