From aj-geddes-useful-ai-prompts-4
Identifies security vulnerabilities via SAST, DAST, penetration testing, and dependency scanning. Useful for OWASP Top 10, SQL injection, XSS, CSRF, auth, and API security testing.
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin aj-geddes-useful-ai-prompts-4This skill uses the workspace's default tool permissions.
- [Overview](#overview)
references/authentication-authorization-testing.mdreferences/csrf-protection-testing.mdreferences/dependency-vulnerability-scanning.mdreferences/owasp-zap-dast.mdreferences/secrets-detection.mdreferences/security-headers-testing.mdreferences/sql-injection-testing.mdreferences/xss-testing.mdscripts/security-checklist.shSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
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 | Security Headers Testing |
| Secrets Detection | Secrets Detection |