Skip to main content

Cyberstrike is now open source! AI-powered penetration testing for security professionals. Star on GitHub

Configuration

Cyberstrike uses a simple JSON configuration file to customize its behavior.

Configuration File

Create a cyberstrike.json file in your project directory:

cyberstrike.json
{
"$schema": "https://cyberstrike.io/schema.json",
"provider": "anthropic",
"model": "claude-sonnet-4-20250514",
"agent": "web-application",
"tools": ["nmap", "nuclei", "subfinder"]
}

Environment Variables

Set your API keys as environment variables:

Anthropic

Terminal window
export ANTHROPIC_API_KEY="sk-ant-..."

OpenAI

Terminal window
export OPENAI_API_KEY="sk-..."

Google

Terminal window
export GOOGLE_API_KEY="..."

Configuration Options

OptionTypeDefaultDescription
providerstring"anthropic"AI provider to use
modelstring"claude-sonnet-4-20250514"Model identifier
agentstring"web-application"Default agent type
toolsarray[]Enabled security tools
timeoutnumber300Command timeout in seconds
verbosebooleanfalseEnable verbose logging

Agent-Specific Configuration

Each agent can have its own configuration:

cyberstrike.json
{
"agents": {
"web-application": {
"tools": ["nuclei", "nikto", "sqlmap"],
"scope": ["*.example.com"]
},
"network-pentest": {
"tools": ["nmap", "masscan"],
"ports": "1-65535"
}
}
}

Tool Configuration

Configure individual tools:

cyberstrike.json
{
"tools": {
"nmap": {
"args": "-sV -sC",
"timeout": 600
},
"nuclei": {
"templates": ["cves", "vulnerabilities"],
"severity": ["critical", "high"]
}
}
}

Caution

Never commit API keys to version control. Use environment variables or a .env file (added to .gitignore).