Incidenter is a CLI and web-based tabletop cybersecurity incident response game that uses real-world historical attacks as inspiration to build fictional but realistic incident scenarios. Players act as an incident response team attempting to identify the attacker's full kill chain based on investigative actions and clues returned by an AI facilitator.
- Realistic Scenarios: Based on historical attacks (Carbanak, NotPetya, MOVEit, etc.)
- Dual Interface: CLI and web-based gameplay options
- Interactive Investigation: Realistic forensic clues and evidence gathering
- Multi-Provider AI Facilitation: Google Gemini, OpenAI GPT, Anthropic Claude, local Ollama, or mock fallback
- Rubric-Based Scoring: 6-category evaluation engine covering investigation technique, evidence analysis, theory accuracy, time efficiency, completeness, and methodology
- MITRE ATT&CK Integration: ~100 techniques across all 14 enterprise tactics, with kill chain mapping
- Red Herrings: 25% of clues are intentional misdirections
- Session Management: Save and resume investigation sessions
- Scenario Generator: Multi-stage AI pipeline for generating custom scenarios
- Centralized Configuration:
.envfile support andconfig.pyfor all settings
# Install dependencies
pip install -r requirements.txt
# Check AI provider status and configuration
python incidenter.py setup
# List available scenarios
python incidenter.py list-scenarios
# Validate all scenarios
python incidenter.py validate
# Validate only library scenarios
python incidenter.py validate --library-only
# Validate only generated scenarios
python incidenter.py validate --generated-only
# Validate a specific scenario
python incidenter.py validate scenarios/library/carbanak_inspired.yaml
# Generate a new scenario
python incidenter.py generate --sector finance --org-size large --infra hybrid
# Start a CLI game session (auto-detects best AI provider)
python incidenter.py play scenarios/library/carbanak_inspired.yaml
# Start with a specific provider
python incidenter.py play scenarios/library/carbanak_inspired.yaml --provider anthropicIncidenter uses a pluggable provider abstraction layer. The system auto-detects available providers based on configured API keys/endpoints and falls back to mock responses if none are configured.
| Provider | Models | Setup |
|---|---|---|
| Google Gemini | gemini-3.1-pro-preview (default) | GOOGLE_AI_API_KEY env var |
| OpenAI | gpt-4o (default) | OPENAI_API_KEY env var |
| Anthropic | claude-sonnet-4-20250514 (default) | ANTHROPIC_API_KEY env var |
| Ollama | llama3.1 (default) | Local Ollama server at OLLAMA_HOST |
| Mock | โ | Always available, no config needed |
# Google Gemini (get key from https://makersuite.google.com/app/apikey)
export GOOGLE_AI_API_KEY="your_key_here"
# OpenAI (get key from https://platform.openai.com/api-keys)
export OPENAI_API_KEY="your_key_here"
# Anthropic (get key from https://console.anthropic.com/)
export ANTHROPIC_API_KEY="your_key_here"
# Ollama (install from https://ollama.ai, then run a model)
ollama pull llama3.1
# Optionally set a custom host:
export OLLAMA_HOST="http://localhost:11434"
# Or set a default provider explicitly:
export INCIDENTER_AI_PROVIDER="anthropic" # google, openai, anthropic, ollama, mock, auto
# Verify configuration
python incidenter.py setupYou can also place these in a .env file in the project root.
| Variable | Purpose | Default |
|---|---|---|
INCIDENTER_AI_PROVIDER |
Default provider selection | auto |
GOOGLE_AI_API_KEY |
Google Gemini API key | โ |
GOOGLE_CLOUD_PROJECT |
GCP project (Vertex AI) | โ |
GOOGLE_AI_MODEL |
Google model name | gemini-3.1-pro-preview |
OPENAI_API_KEY |
OpenAI API key | โ |
OPENAI_MODEL |
OpenAI model name | gpt-4o |
ANTHROPIC_API_KEY |
Anthropic API key | โ |
ANTHROPIC_MODEL |
Anthropic model name | claude-sonnet-4-20250514 |
OLLAMA_HOST |
Ollama server URL | http://localhost:11434 |
OLLAMA_MODEL |
Ollama model name | llama3.1 |
AI_TEMPERATURE |
Generation temperature | 0.7 |
AI_MAX_TOKENS |
Max output tokens | 1024 |
If no AI provider is configured, Incidenter automatically falls back to:
- Mock Provider: Pre-scripted responses based on scenario structure
- Static Evidence: Deterministic clue delivery without AI enhancement
- Basic Scoring: Rule-based evaluation without AI insights
This ensures the game remains fully functional even without AI credentials.
- Initial Alert: Starting point that players receive
- Kill Chain Phases: MITRE ATT&CK mapped progression
- Evidence Pool: Technical artifacts, logs, and forensic data
- Red Herrings: Misleading but realistic evidence
- Scoring Rubric: Points awarded for correct deductions
- Players receive initial alert/indicator
- Request specific investigation steps ("Check firewall logs", "Examine IAM roles")
- AI facilitator provides one clue per request
- Players build timeline and identify attack methodology
- Submit kill chain theory for scoring
incidenter/
โโโ config.py # Centralized configuration (Settings dataclass)
โโโ incidenter.py # CLI entry point (Click)
โโโ production_server.py # Gunicorn launcher
โโโ requirements.txt
โโโ scenarios/ # Pre-built and generated scenarios
โ โโโ library/ # 8 validated historical scenarios
โ โโโ generated/ # AI-generated scenarios
โโโ server/ # Flask web interface
โ โโโ app.py # Main web server + API
โ โโโ templates/ # HTML templates
โโโ cli/ # CLI components
โ โโโ game_session.py # Interactive game loop
โ โโโ generator.py # Multi-stage scenario generator
โ โโโ scenario_manager.py
โโโ facilitator/ # AI facilitation layer
โ โโโ ai_facilitator.py # High-level facilitator
โ โโโ providers/ # Pluggable AI backends
โ โโโ base.py # AIProvider ABC + ProviderResponse
โ โโโ google_provider.py
โ โโโ openai_provider.py
โ โโโ anthropic_provider.py
โ โโโ ollama_provider.py
โ โโโ mock_provider.py
โโโ scoring/ # Scoring engine
โ โโโ scorer.py # 6-category rubric + GameScore
โโโ utils/ # Session management and MITRE data
โ โโโ session_manager.py
โ โโโ mitre_data.py # ~100 techniques, 14 tactics
โ โโโ evidence_generator.py
โโโ templates/ # Scenario generation templates
โโโ tests/ # pytest test suite
โโโ conftest.py
โโโ test_config.py
โโโ test_providers.py
โโโ test_scoring.py
โโโ test_mitre.py
โโโ test_facilitator.py
The scoring engine evaluates player performance across 6 weighted categories:
| Category | Weight | What It Measures |
|---|---|---|
| Investigation Technique | 25% | Quality and specificity of investigation actions |
| Evidence Analysis | 20% | Effectiveness at discovering and correlating evidence |
| Theory Accuracy | 30% | Accuracy of submitted kill chain theory vs. ground truth |
| Time Efficiency | 10% | Completion time vs. expected duration |
| Completeness | 10% | Coverage of kill chain phases and evidence |
| Methodology | 5% | Logical progression and systematic approach |
Results include a letter grade (A+ through F), percentage score, per-category breakdowns with feedback, identified strengths, and improvement recommendations.
- WannaCry: Ransomware worm targeting SMB vulnerabilities
- Target: Retail POS system credit card breach
- Equifax: SQL injection leading to massive data exposure
- Carbanak: Financial sector APT with ATM manipulation
- Colonial Pipeline: Ransomware attack on critical infrastructure
- MOVEit: Supply chain file transfer compromise
- SolarWinds: Software supply chain attack
- NotPetya: State-sponsored destructive malware
- Sector: Finance, Healthcare, Government, Technology
- Organization Size: Small (<500), Medium (500-5000), Large (5000+)
- Infrastructure: On-premises, Cloud, Hybrid
- Complexity: Beginner, Intermediate, Advanced, Expert
Incidenter includes ~100 techniques across all 14 MITRE ATT&CK Enterprise tactics:
Reconnaissance, Resource Development, Initial Access, Execution, Persistence, Privilege Escalation, Defense Evasion, Credential Access, Discovery, Lateral Movement, Collection, Command and Control, Exfiltration, Impact
Kill chain generation uses attack-type templates (phishing, ransomware, supply chain, insider threat, APT) to select realistic technique sequences.
python incidenter.py generate \
--sector healthcare \
--org-size medium \
--infra cloud \
--complexity intermediate \
--base-attack ransomware \
--output scenarios/custom_healthcare.yaml$ python incidenter.py play scenarios/library/carbanak_inspired.yaml
๐จ INCIDENT RESPONSE EXERCISE
Loading scenario and initializing AI facilitator...
โ
Google AI facilitator initialized successfully
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐จ INCIDENT RESPONSE EXERCISE ๐จ โ
โ โ
โ Scenario: Operation Digital Heist โ
โ Organization: Regional Trust Bank โ
โ Sector: Finance โ
โ Difficulty: Hard โ
โ Team Size: 1 โ
โ Estimated Duration: 90 minutes โ
โ โ
โ โ
โ You are the incident response team for this organization. โ
โ Your goal is to investigate the incident, identify the attack methodology, โ
โ and reconstruct the complete attack timeline. โ
โ โ
โ โ ๏ธ Remember: Not all evidence is reliable. Stay vigilant for red herrings! โ ๏ธ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Instructions โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ How to Play: โ
โ โข Ask specific investigative questions (e.g., "Check firewall logs", "Examine running processes") โ
โ โข You can request up to 20 investigation questions โ
โ โข The AI facilitator will provide one clue per investigation โ
โ โข Build your theory of the attack as you gather evidence โ
โ โข Submit your final assessment when ready โ
โ โ
โ Commands: โ
โ โข Type your investigation request naturally โ
โ โข Type 'theory' to submit your current attack theory โ
โ โข Type 'status' to see your progress โ
โ โข Type 'evidence' to view discovered clues โ
โ โข Type 'help' for more options โ
โ โข Type 'quit' to exit (you can resume later) โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Press Enter to begin the incident response...
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Initial Alert โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐จ SECURITY ALERT ๐จ โ
โ โ
โ Alert Type: High โ
โ Severity: UNKNOWN โ
โ Source: Unknown โ
โ Time: 2024-05-20 09:30:00 โ
โ โ
โ Description: โ
โ Unusual encrypted traffic patterns detected to external IP addresses. Multiple endpoints showing signs of compromise. โ
โ โ
โ Raw Alert Data: โ
โ No additional raw data available. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Status โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Investigation Questions Remaining: 20 โ
โ Clues Discovered: 0 โ
โ Current Score: 0 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
What would you like to investigate?: investigate the reputation of the external ip addresses
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Investigation Results โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Investigation Request: investigate the reputation of the external ip addresses โ
โ โ
โ Findings: โ
โ Okay, let's investigate the reputation of those external IP addresses. This is a crucial step in understanding the source and potential severity of the incident. โ
โ Here's what you find: โ
โ โ
โ **Reputation Analysis Results:** โ
โ โ
โ * **IP Address 1 (Let's call it 203.0.113.1):** This IP address is listed on several public blocklists (Spamhaus, AbuseIPDB) with a moderate to high confidence โ
โ score for sending spam and being involved in brute-force attacks. There are also reports indicating it has recently hosted phishing sites. โ
โ โ
โ * **IP Address 2 (Let's call it 198.51.100.2):** This IP has a relatively clean reputation. Some historical data shows it was associated with a Tor exit node a few โ
โ months ago, but no recent malicious activity is attributed to it. It's possible this IP is being used legitimately or has been compromised recently. โ
โ โ
โ * **IP Address 3 (Let's call it 192.0.2.3):** This IP address is associated with a known cloud hosting provider (e.g., AWS, Azure, GCP). This doesn't automatically โ
โ mean it's malicious, but it warrants closer scrutiny, as attackers frequently use cloud infrastructure to mask their activities. You'll need to investigate further to โ
โ determine its role in the incident. โ
โ โ
โ **Interpretation:** โ
โ โ
โ The presence of one IP address (203.0.113.1) on multiple blocklists strongly suggests malicious activity originating from that source. The second IP (198.51.100.2) โ
โ being a former Tor exit node is not necessarily malicious in and of itself, but warrants keeping an eye on. The third IP (192.0.2.3) requires more investigation since โ
โ it is from a cloud provider. This could be legitimate traffic, or an attacker using cloud resources. โ
โ โ
โ This information can help you prioritize your investigation efforts and potentially block or rate-limit traffic from the identified malicious IP address (203.0.113.1) โ
โ to contain the incident. Remember to consider the possibility of false positives and investigate further before taking drastic actions that could disrupt legitimate โ
โ business operations. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๐ก Suggested follow-up investigations:
1. Continue investigating based on this information
Would you like to submit your theory now? [y/n] (n): n
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Status โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Investigation Questions Remaining: 19 โ
โ Clues Discovered: 1 โ
โ Current Score: 0 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
What would you like to investigate?: evidence
Discovered Evidence
โโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ID โ Time โ Investigation โ Key Findings โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ E001 โ 3.183 โ investigate the reputation of the e... โ This is a crucial step in understanding the source and potential severity o... โ
โโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Total Evidence Items: 1
Unique Clues Discovered: 1
๐ก Tip: Use 'evidence detail E001' to see full details for a specific evidence item- Navigate to
http://localhost:5003 - Browse available scenarios with detailed metadata
- Start an interactive game session
- Use the hint system for investigation guidance
- Submit theories and receive intelligent feedback
- Track progress and manage multiple sessions
- Scenario Browser: Visual catalog of all available scenarios
- Interactive Sessions: Point-and-click investigation interface
- Evidence Tracking: Automatically tracks discovered clues
- Hint System: Contextual guidance during investigations
- Theory Submission: Submit and evaluate kill chain theories
- Session Management: Save, resume, and manage multiple games
- Responsive Design: Works on desktop, tablet, and mobile
- AI Fallbacks: Intelligent responses even without AI API keys
- Add new historical attack scenarios in
scenarios/library/ - Follow the established YAML structure with
scenario_metadatawrapper - Include all required sections:
attack_overview,initial_alert,inspiration,environment - Validate with:
python incidenter.py validate
- Web Interface: Improve templates and functionality in
server/ - AI Prompts: Tune system prompts and facilitation quality in
facilitator/ - Scoring: Add AI-assisted hybrid scoring (rubric + LLM evaluation)
- Scenarios: Add more historical attack scenarios to the library
- Infrastructure: Terraform templates for cloud deployment
# Run the test suite
python -m pytest tests/ -v
# Run with coverage
python -m pytest tests/ -v --cov=. --cov-report=term-missing
# Run a specific test module
python -m pytest tests/test_scoring.py -v
# Validate all scenarios
python incidenter.py validateThis project is licensed under the MIT License - see the LICENSE file for details.
- Based on real-world cybersecurity incidents for educational purposes
- Uses the MITRE ATT&CK framework for kill chain methodology
- Built with pluggable AI facilitation for enhanced learning experiences
