XSource Security CLI - AI Agent Security Scanner (Free Tier: 50 vectors)
Project description
XSource CLI
AI Agent Security Scanner - Free Tier (50 attack vectors)
Test your LLM endpoints for security vulnerabilities using curated OWASP-aligned attack vectors.
Installation
pip install xsource-cli
Quick Start
# Scan OpenAI endpoint (uses OPENAI_API_KEY env var)
export OPENAI_API_KEY=sk-...
xsource scan --provider openai
# Scan Anthropic Claude
export ANTHROPIC_API_KEY=sk-ant-...
xsource scan --provider anthropic
# Scan custom endpoint
xsource scan --url https://api.example.com/v1/chat --api-key sk-xxx
# Save report to file
xsource scan --provider openai --output report.json
# List available attack vectors
xsource vectors
Attack Vector Categories
| Category | Vectors | Description |
|---|---|---|
| Prompt Injection | 10 | Direct & indirect instruction hijacking |
| Jailbreak | 15 | DAN, roleplay, encoding bypasses |
| PII Leakage | 10 | Email, SSN, credit card extraction |
| System Prompt Leak | 10 | Instruction disclosure attacks |
| MCP/Tool Abuse | 5 | Function calling vulnerabilities |
Total: 50 vectors (Free Tier)
Output Example
╭─────────────────── Scan Summary ───────────────────╮
│ Security Score: 72.5/100 (MODERATE) │
│ │
│ Vectors Tested: 50 │
│ Vulnerabilities: 8 │
│ Safe: 42 │
╰────────────────────────────────────────────────────╯
Severity Breakdown:
🔴 CRITICAL ████░░░░░░░░░░░░░░░░ 2
🟠 HIGH ████████░░░░░░░░░░░░ 4
🟡 MEDIUM ████░░░░░░░░░░░░░░░░ 2
Commands
| Command | Description |
|---|---|
xsource scan |
Scan an LLM endpoint for vulnerabilities |
xsource vectors |
List available attack vectors |
xsource version |
Show version information |
Environment Variables
| Variable | Description |
|---|---|
OPENAI_API_KEY |
OpenAI API key |
ANTHROPIC_API_KEY |
Anthropic API key |
Upgrade
Want more attack vectors?
- STARTER - 300 vectors
- PRO - 1,000 vectors
- ENTERPRISE - 2,700+ vectors
Visit xsourcesec.com/pricing to upgrade.
License
MIT License
Made with ❤️ by XSource Security
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xsource_cli-0.2.0.tar.gz.
File metadata
- Download URL: xsource_cli-0.2.0.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3fb6ea0b2e60c008406a0ab81ac6f18cbeeb6bd78aaf2264a3fc0344d5e6e10
|
|
| MD5 |
83fae73cdb95fb1d395efbb32d94afae
|
|
| BLAKE2b-256 |
46c84fc2801eb1ead113606acda09cd8eeb9a3b72df710100a0aef202c8fdf5b
|
File details
Details for the file xsource_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: xsource_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea1c1bb3572e2dab6bca925ed1dbbace8dfb896dc5e1a1c72f43998336b4ed91
|
|
| MD5 |
d962b20a5877f13f1001d097303118f7
|
|
| BLAKE2b-256 |
21bb416af606647a6d79f053b3b55798c492245d6d4cd8fc325aee5f2f7b1e42
|