Documentation
Learn how to use Rico's four core actions to scan, test, and secure your API endpoints. Each action is designed to work independently or as part of a complete security testing pipeline.
Quick Overview
| Action | Purpose | Command |
|---|---|---|
| Scan | Discover & classify endpoints | rico scan <url> |
| Attack | Run AI-planned security tests | rico attack <url> |
| Report | Generate security reports | rico report <url> |
| Call | Make targeted API requests | rico call <url> |
Actions in Detail
Scan
The Scan action crawls a target API URL and discovers all available endpoints. It analyzes response structures, HTTP methods, authentication requirements, and parameter types. The AI engine then classifies each endpoint to understand its purpose and data sensitivity.
Usage
$ rico scan <target_url> [options]
Options
--depth <n>Maximum crawl depth (default: 3)
--auth <token>Bearer token for authenticated scanning
--output <file>Save results to a JSON file
Example Output
{
"target": "https://api.example.com",
"endpoints": [
{
"path": "/api/v1/users",
"method": "GET",
"classification": "user-data",
"auth_required": true,
"parameters": ["page", "limit"]
},
{
"path": "/api/v1/users/{id}",
"method": "GET",
"classification": "user-data",
"auth_required": true,
"parameters": ["id"]
},
{
"path": "/api/v1/login",
"method": "POST",
"classification": "authentication",
"auth_required": false,
"parameters": ["username", "password"]
}
],
"total_endpoints": 3,
"scan_time": "2.4s"
}