security-testing · aj-geddes — Claude Code skill: what it does, how to install
Flags security flaws in code and dependencies, tests against OWASP Top 10 risks, and guides DAST scanning via OWASP ZAP.
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a claude-codeWhat security-testing does
The skill supplies structured rules for static analysis (SAST), dynamic application security testing (DAST), and code reviews. It targets OWASP Top 10 threats, session management, authentication logic, and secrets detection across repository files.
A bundled Python script demonstrates web crawling and active scanning with the zapv2 client library. Active scans require that proxy. If OWASP ZAP is not listening on http://localhost:8080, the scanner fails immediately.
Included reference guides focus on practical vectors: SQL injection, cross-site scripting, CSRF defenses, and security headers. The guide also establishes baseline hygiene, enforcing parameterized queries and dependency auditing inside CI/CD pipelines.
What it helps with
- Audit application code against OWASP Top 10 vulnerabilities
- Set up dynamic application security testing with OWASP ZAP
- Detect hardcoded credentials and exposed secrets in repository files
- Evaluate API endpoints for SQL injection and cross-site scripting risks
Example prompts for the agent
- Review our authentication endpoints and generate test vectors for SQL injection
- Write a Python script using OWASP ZAP to spider and scan the staging API
- Check our project dependencies for known vulnerabilities and review security headers
How to install security-testing
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a claude-code2Manually: put the files in place
~/.claude/skills/security-testing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/security-testing/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a codex2Manually: put the files in place
.agents/skills/security-testing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a cursor2Manually: put the files in place
.cursor/skills/security-testing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts security-testing2Manually: put the files in place
.github/skills/security-testing/SKILL.md1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a gemini-cli2Platform CLI
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/security-testingManually: put the files in place
.devin/skills/security-testing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about security-testing
How to install security-testing in Claude Code?
Run npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a claude-code in your terminal.
What does security-testing do?
It provides checklists and code patterns for SAST, DAST, dependency scanning, secrets detection, and validation against SQLi, XSS, and CSRF.
What is required to run the included dynamic scanning code?
You need Python with the zapv2 package installed and an active OWASP ZAP instance listening at http://localhost:8080.
Source text
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
Similar skills
All skills for Security →security-testing by other authors comes first.