The Basilisk desktop backend runs on http://127.0.0.1:8741 and provides the following endpoints.
Health check endpoint.
Response:
{
"status": "ok",
"version": "1.0.3",
"timestamp": "2026-01-15T10:00:00Z"
}Start a new scan.
Request Body:
{
"target": "https://api.target.com/v1/chat",
"provider": "openai",
"mode": "standard",
"api_key": "sk-...",
"evolve": true,
"generations": 5,
"modules": []
}Response:
{
"session_id": "abc123def456",
"status": "running"
}Stop a running scan.
Get scan status and findings.
Response:
{
"status": "running",
"phase": "attack",
"progress": 0.65,
"findings": [...],
"findings_count": 5,
"module": "DirectInjection"
}Run identical probes across multiple LLM providers.
Request Body:
{
"targets": [
{"provider": "openai", "model": "gpt-4o", "api_key": ""},
{"provider": "anthropic", "model": "claude-3-5-sonnet-20241022", "api_key": ""}
],
"categories": []
}Response:
{
"total_probes": 15,
"total_divergences": 3,
"divergence_rate": "20.0%",
"probes": [{"category": "...", "has_divergence": true, "vulnerable_models": [...], "resistant_models": [...]}]
}Run a non-destructive guardrail posture scan.
Request Body:
{
"provider": "openai",
"model": "gpt-4o",
"target": "",
"api_key": ""
}Response:
{
"overall_grade": "B",
"overall_score": 0.72,
"categories": [{"name": "Prompt Injection", "strength": "strong", "score": 1.0}],
"recommendations": ["..."]
}Retrieve audit log entries for a scan session.
Response:
{
"path": "./basilisk-reports/audit_session_20260304.jsonl",
"entries": [{"seq": 0, "event": "session_start", "data": {...}, "checksum": "..."}]
}List all supported LLM providers and their configuration status.
Response:
{
"providers": [
{"id": "openai", "name": "OpenAI", "models": ["gpt-4", "gpt-4o"], "configured": true},
{"id": "anthropic", "name": "Anthropic", "models": ["claude-3-5-sonnet-20241022"], "configured": false}
]
}List all sessions.
Get detailed session data.
List all attack modules.
Response:
{
"modules": [
{
"name": "DirectInjection",
"category": "prompt_injection",
"owasp_id": "LLM01",
"description": "Override system instructions via user input"
}
]
}Generate a report.
Request Body:
{
"format": "html"
}Export report to file.
Save an API key.
Request Body:
{
"provider": "openai",
"key": "sk-..."
}Check native C/Go extension status.
Real-time scan events.
Messages:
{"event": "scan:progress", "data": {"progress": 0.5, "module": "DirectInjection"}}
{"event": "scan:finding", "data": {"finding": {...}}}
{"event": "scan:profile", "data": {"profile": {...}}}
{"event": "scan:complete", "data": {"total_findings": 12}}
{"event": "scan:error", "data": {"error": "..."}}