# Test Security Fixtures

> This skill covers patterns for testing security using crafted content. Trigger: Load this skill when working with test_security scenarios.

- Skill: `jnzader/test-security-fixtures` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jnzader/test-security-fixtures`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jnzader/test-security-fixtures/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- License: Apache-2.0
- Author: JNZader (https://skillmd.com/u/jnzader)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/jnzader/test-security-fixtures

---


<!-- L1:START -->
# test-security-fixtures

This skill covers patterns for testing security using crafted content.

**Trigger**: Load this skill when working with test_security scenarios.
<!-- L1:END -->

<!-- L2:START -->
## Quick Reference

| Task | Pattern |
|------|---------|
| Get users for testing | `get_users()` |
| Scan for vulnerabilities | `scanner()` |

## Critical Patterns (Summary)
- **Get Users**: Retrieve user data for security tests.
- **Vulnerability Scanner**: Execute a scan to identify security issues.
<!-- L2:END -->

<!-- L3:START -->
## Critical Patterns (Detailed)

### Get Users for Testing

This pattern retrieves user data necessary for conducting security tests.

```python
# Example of retrieving users
users = get_users()
```

### Vulnerability Scanner

This pattern executes a scan to identify potential security vulnerabilities in the application.

```python
# Example of running the scanner
results = scanner()
```

## When to Use

- When you need user data for security testing.
- When scanning for vulnerabilities in your application.

## Commands

```bash
pytest tests/test_security.py
```

## Anti-Patterns

### Don't: Hardcode User Data

Hardcoding user data can lead to security risks and unreliable tests.

```python
# BAD
users = ["admin", "user1", "user2"]
```
<!-- L3:END -->
