The adorable AI agent that knocks things off your API tables
Quick Start โข Features โข How It Works โข Installation โข Contributing โข Contributors
|
Chaos Kitten is an agentic AI security testing tool that acts like a mischievous catโit explores your API, understands the business logic, and systematically tries to "break" things before malicious actors do. Unlike traditional fuzzers (ZAP, Burp) that spray random payloads, Chaos Kitten reasons about your API structure and crafts intelligent attacks. |
|
AI-powered "vibe coding" tools (Claude, Cursor, Windsurf) generate backend APIs at incredible speed, but they often skip critical security measures:
|
Missing Auth No authentication on critical endpoints |
No Validation Input fields accept anything |
SQL Injection Queries built with string concatenation |
Logic Flaws IDOR, privilege escalation |
Real Story: While building Bondhu (Digital Twin for mental wellness), we discovered our AI vibe coded frontend had ZERO authentication on critical endpoints. Anyone could exploit this to access user data.
Chaos Kitten finds these issues before attackers do. ๐
|
|
# Install
pip install chaos-kitten
# Initialize config
chaos-kitten init
# Run against your API
chaos-kitten scan --config chaos-kitten.yaml๐ฑ Chaos Kitten v1.0.0
๐ Parsing OpenAPI spec...
๐ฏ Found 12 endpoints
๐ง Planning attack strategies...
๐พ Testing /api/login
โ ๏ธ I knocked this vase over! (SQL Injection found)
๐พ Testing /api/users/{id}
โ ๏ธ I played with this string! (IDOR vulnerability)
๐ Report saved to ./reports/chaos-kitten-2026-01-20.html
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฑ Chaos Kitten โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โ
โ โ ๐ง Brain โโโโโโโโโโโโโ ๐พ Paws โ โ
โ โ Orchestrator โ โ Executor โ โ
โ โ โ โ โ โ
โ โ โข OpenAPI โ โ โข httpx โ โ
โ โ โข LLM Agent โ โ โข Playwright โ โ
โ โ โข Planner โ โ โข Async โ โ
โ โโโโโโโโโฌโโโโโโโโโ โโโโโโโโโฌโโโโโโโโโ โ
โ โ โ โ
โ โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโผโโโโโโโโโโ โ
โ โ ๐งถ Toy Box โ โ
โ โ Attack Profiles โ โ
โ โ โ โ
โ โ โข SQL Injection โ โ
โ โ โข XSS Payloads โ โ
โ โ โข IDOR Tests โ โ
โ โโโโโโโโโโโฌโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโผโโโโโโโโโโ โ
โ โ ๐ฆ Litterbox โ โ
โ โ Reporter โ โ
โ โ โ โ
โ โ โข HTML Reports โ โ
โ โ โข PoC Scripts โ โ
โ โ โข Remediation โ โ
โ โโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
pip install chaos-kittengit clone https://github.com/mdhaarishussain/chaos-kitten.git
cd chaos-kitten
pip install -e .pip install -e ".[dev]"Create a chaos-kitten.yaml file:
target:
base_url: "http://localhost:3000"
openapi_spec: "./openapi.json"
auth:
type: "bearer"
token: "${API_TOKEN}"
agent:
llm_provider: "anthropic"
model: "claude-3-5-sonnet-20241022"
temperature: 0.7
executor:
concurrent_requests: 5
timeout: 30
rate_limit: 10
retry:
max_retries: 3 # Max attempts for rate-limited (429) requests
base_backoff: 1.0 # Initial wait time in seconds
max_backoff: 60.0 # Maximum wait time
jitter: true # Add randomization to backoff
safety:
allowed_domains:
- "localhost"
- "*.test.com"
destructive_mode: false๐ See chaos-kitten.yaml for all configuration options.
chaos-kitten scan --target http://localhost:3000chaos-kitten scan --spec openapi.json --target http://localhost:3000# .github/workflows/security-test.yml
name: ๐ฑ Chaos Kitten Security Scan
on: [pull_request]
jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Chaos Kitten
run: |
pip install chaos-kitten
chaos-kitten scan --fail-on-criticalWe love contributions! Chaos Kitten is designed to be beginner-friendly.
|
No coding required!
|
Basic Python
|
Core Features
|
See CONTRIBUTING.md and docs/contributing_guide.md for details.
โ๏ธ LEGAL NOTICE
Chaos Kitten is intended for testing YOUR OWN applications or systems where you have explicit permission. Unauthorized access to computer systems is illegal. Users are responsible for compliance with applicable laws. The developers assume no liability for misuse.
| Feature | Description |
|---|---|
| โ Allowlist-Only | Won't scan domains not in allowed_domains |
| โ Rate Limiting | Respects server resources |
| โ Non-Destructive | Prevents DROP/DELETE by default |
| โ Audit Logging | All actions logged |
|
|
|
Aperture 3.0 by Resourcio Community
MIT License - see LICENSE for details.
Thanks to all the amazing people who have contributed to Chaos Kitten! ๐ฑ
Want to contribute? Check out our Contributing Guide and join the fun!
Chaos Kitten
"Breaking your code before hackers do"
Made with ๐ by the Chaos Kitten Team
A project under the Last Neuron Umbrella
(By the makers of Bondhu)