Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aj-geddes/useful-ai-prompts --skill security-testing -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/security-testing/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/security-testing/

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.

From the same set143

Time Series Analysis A skill that walks your agent through time series work: decomposition, stationarity checks, ARIMA and forecasts in Python. Useful for sales or traffic data. CX Codex +1 605installs refactor-legacy-code Guides systematic legacy code refactoring without breaking features. Built for paying down technical debt and replacing deprecated patterns. CX Codex +1 603installs performance-testing A skill that walks your agent through designing load tests and benchmarks: response times, throughput, resource use. CX Codex +1 603installs competitor-analysis A skill that walks the agent through competitor research: direct and indirect players, a comparison matrix, SWOT, and a findings report. Useful before pricing or positioning calls. CX Codex +1 603installs frontend-accessibility This skill adds WCAG guidelines to your coding workflow. It instructs agents to write semantic HTML, configure ARIA attributes, and support keyboard navigation. CX Codex +1 599installs design-patterns-implementation Guides the agent toward the right pattern for an architectural problem: Singleton, Factory, Observer, Strategy and more. Useful during refactoring or code review. CX Codex +1 595installs unit-testing-framework A skill that gives the agent rules for writing unit tests: Arrange-Act-Assert structure, mocks, edge cases. Useful when a function or class needs coverage. CX Codex +1 593installs database-schema-design Designs relational database schemas with normalization, constraints, and table relationships. Built for modeling data in PostgreSQL and MySQL. CX Codex +1 591installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor