Skip to content

About

noun: One who creates incidents.

Resources

Stars

10 stars

Watchers

1 watching

Forks

Latest commit

ย 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Incidenter

Incidenter - Tabletop Cybersecurity Incident Simulator

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.

Features

  • 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: .env file support and config.py for all settings

Quick Start

CLI Interface

# 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 anthropic

AI Providers

Incidenter 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.

Supported Providers

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

Provider Setup

# 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 setup

You can also place these in a .env file in the project root.

Environment Variables

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

Fallback Behavior

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.

CLI Game Structure

Scenario Components

  • 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

Investigation Flow

  1. Players receive initial alert/indicator
  2. Request specific investigation steps ("Check firewall logs", "Examine IAM roles")
  3. AI facilitator provides one clue per request
  4. Players build timeline and identify attack methodology
  5. Submit kill chain theory for scoring

Directory Structure

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

Scoring System

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.

Scenario Categories

Pre-built Historical Scenarios

  • 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

Customizable Parameters

  • Sector: Finance, Healthcare, Government, Technology
  • Organization Size: Small (<500), Medium (500-5000), Large (5000+)
  • Infrastructure: On-premises, Cloud, Hybrid
  • Complexity: Beginner, Intermediate, Advanced, Expert

MITRE ATT&CK Coverage

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.

Usage Examples

Generate Custom Scenario

python incidenter.py generate \
  --sector healthcare \
  --org-size medium \
  --infra cloud \
  --complexity intermediate \
  --base-attack ransomware \
  --output scenarios/custom_healthcare.yaml

Interactive Gameplay

CLI Interface

$ 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

Web Interface

  1. Navigate to http://localhost:5003
  2. Browse available scenarios with detailed metadata
  3. Start an interactive game session
  4. Use the hint system for investigation guidance
  5. Submit theories and receive intelligent feedback
  6. Track progress and manage multiple sessions

Web Interface Features

  • 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

Contributing

Adding New Scenarios

  1. Add new historical attack scenarios in scenarios/library/
  2. Follow the established YAML structure with scenario_metadata wrapper
  3. Include all required sections: attack_overview, initial_alert, inspiration, environment
  4. Validate with: python incidenter.py validate

Development Areas

  1. Web Interface: Improve templates and functionality in server/
  2. AI Prompts: Tune system prompts and facilitation quality in facilitator/
  3. Scoring: Add AI-assisted hybrid scoring (rubric + LLM evaluation)
  4. Scenarios: Add more historical attack scenarios to the library
  5. Infrastructure: Terraform templates for cloud deployment

Testing

# 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 validate

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • 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

About

noun: One who creates incidents.

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages