Skip to main content

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? Visit xsourcesec.com/pricing

Tier Vectors Features
Free CLI 50 Unlimited local scans
Starter 150 Cloud dashboard, reports
Pro 750 Multi-pass testing, API access
Enterprise 1,500 Full vector library, priority support

API: https://api.xsourcesec.com

License

MIT License


Made with ❤️ by XSource Security

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xsource_cli-0.3.0.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xsource_cli-0.3.0-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file xsource_cli-0.3.0.tar.gz.

File metadata

  • Download URL: xsource_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for xsource_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b488c7b392f30b097e47f6399e43a9655b39e8659711131903fc54297c335dfa
MD5 77e03063acd3af1f77468f1d95fc4119
BLAKE2b-256 39b20a59f509673d8bf5293e00339fb426e4d98acfa4de576f7c7bd2982509e9

See more details on using hashes here.

File details

Details for the file xsource_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: xsource_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for xsource_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28673b677ea04157c8b0ac0cb2da8fe2c20a459cfabcf07c30ed0023bf312a8e
MD5 387cd7c320a5c01dd59d29119f89024d
BLAKE2b-256 a96371facc3e54f5fa85cf4b1cc6795b9184a63b3004141e38ea32c7fab83777

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page