BLACKOUT.exe

Inspiration

When an organization experiences a cybersecurity breach, the security engineer on duty must quickly analyze system logs, identify the intruder, assess the threat, and determine which systems require immediate protection or containment. Every decision carries consequences. Excessively restrictive defensive measures can disrupt legitimate business operations, while delayed responses can expose sensitive customer information. Although traditional cybersecurity training introduces these concepts through presentations and multiple-choice assessments, it rarely captures the urgency, uncertainty, and decision-making pressure of a real security incident.

Inspired by Kiroween, we approached this challenge with a distinctive concept: What if Death himself were the cyberattacker?

BLACKOUT.exe transforms this idea into an immersive cybersecurity horror game in which players assume the role of a lone security operator defending an online store during a night shift. As Death infiltrates the system, suspicious activity appears in security logs, alerts intensify, and two critical indicators come under threat: Souls, representing customer records, and Heartbeat, representing business health.

Players must investigate attacks, execute defensive commands, and make time-sensitive decisions using an interactive security workstation and a functional terminal. Alongside them is Kiro, a ghost-like AI companion who provides contextual guidance and assistance without taking control of their decisions.

You enter expecting a horror game. You leave with a practical understanding of how to respond to a real cybersecurity emergency.

What It Does

  • Authentic Cyberattack Simulation: Every attack featured in BLACKOUT.exe, including reconnaissance scans, password guessing, password spraying, SQL injection, and database extraction, was executed using real cybersecurity tools against our own OWASP Juice Shop instance within an isolated Docker environment. These attacks were recorded and incorporated into the game, allowing players to investigate authentic security logs without triggering live attacks or exposing external systems to risk.

  • Adaptive Threat Behavior: Death operates through a deterministic, rules-based attack director inspired by the AI Director in Left 4 Dead. The system evaluates the player's defensive actions and selects alternative attack strategies based on the remaining vulnerabilities. For example, blocking a malicious IP address may cause Death to return from another source, while rate-limiting authentication attempts may redirect the attack toward SQL injection. Failure to identify a compromised administrator account can allow Death to reappear even after an apparent victory.

  • Realistic Incident Response: Players experience the essential stages of cybersecurity incident response, including investigation, containment, eradication, and recovery. Through an interactive security workstation or Linux-style terminal, they can execute 31 supported commands, including grep, awk, sqlite3, iptables, tar, and sha256sum. Each action carries meaningful operational consequences, requiring players to balance effective security measures with business continuity.

  • Time-Critical Decision-Making: Every security alert challenges players to assess the situation and respond within a limited timeframe. Decision windows vary according to difficulty: 20 seconds on Easy, 12 seconds on Medium, and 10 seconds on Insanity. This creates an increasingly demanding environment that simulates the pressure of responding to active cybersecurity incidents.

  • Comprehensive Post-Incident Evaluation: At the conclusion of each session, players receive an objective performance grade, key incident metrics, and a filterable timeline of their actions. A detailed incident report organizes the findings under standard incident-response headings, while Kiro provides a personalized debrief highlighting successful decisions, critical mistakes, and opportunities for improvement.

  • Multiple Gameplay and Training Modes: BLACKOUT.exe offers gameplay experiences designed for different skill levels. Easy and Medium provide approximately four-minute and three-minute sessions, respectively. Insanity Mode introduces a 15-minute endurance challenge in which Death repeatedly retreats and returns with renewed attacks. A separate five-minute training drill provides guided instruction, helping beginners recognize suspicious requests and identify the appropriate defensive tools.

How We Built It

1. Recording Authentic Cyberattacks

To create a technically credible cybersecurity simulation, we established an isolated Docker environment with no publicly exposed ports, running nginx as a reverse proxy for OWASP Juice Shop v20.4.0.

We executed controlled security tests using tools such as ffuf, Hydra, sqlmap, curl, and Python scripts, capturing the resulting access logs and database changes.

The game incorporates 30 recorded scenarios, including 24 attack variants alongside legitimate customer traffic and data-exfiltration activity.

By recording these interactions and replaying them within the simulation, we ensured that players encounter authentic cybersecurity evidence without initiating attacks against live systems.

2. Developing the Browser-Based Game

BLACKOUT.exe was developed using React 19, Vite, and TypeScript, supported by a headless, seeded, deterministic rules engine. This architecture ensures that identical initial conditions and player decisions produce reproducible gameplay outcomes.

Realistic Database Interaction

We integrated sql.js to run the actual Juice Shop SQLite database directly within the browser. Consequently, terminal queries executed through sqlite3 operate on genuine, seeded customer data rather than simulated text responses.

Time Compression

To recreate the urgency of incident response within a manageable gameplay duration, we implemented a time-compression system in which one real-world second represents 30 seconds of simulated time.

As a result, a three-minute Medium session represents approximately 90 minutes of in-game activity, progressing from 22:00 to 23:30.

Deterministic Performance Evaluation

A rules-based evaluation system assesses players across four essential incident-response phases: Detection, Containment, Eradication, and Recovery.

Each phase receives a grade that is converted into numerical points:

  • A = 4 points
  • B = 3 points
  • C = 2 points
  • D = 1 point
  • F = 0 points

The overall performance score is calculated by averaging the points awarded across all four phases.

Average Score Final Grade
3.5 or above A
2.5 to below 3.5 B
1.5 to below 2.5 C
0.5 to below 1.5 D
Below 0.5 F

The final grade is also constrained by the player's ending, ensuring that performance assessments reflect both the quality of the player's decisions and the actual incident outcome.

Procedurally Rendered Environments

The game's visual experience is developed primarily through code-generated graphics and animations. These include an animated ASCII title curtain, a haunted forest rendered using dynamically updated text characters, a woodland cabin, a 60-second narrated cinematic briefing, a dark cybersecurity office, and an interactive battlefield integrated into the security workstation.

Audio and Voice Integration

The audio system combines sound effects synthesized through the Web Audio API with six CC0-licensed music loops. Kiro's and Death's dialogue is delivered through the browser's Web Speech API, creating an atmospheric and interactive audio experience.

3. Integrating Kiro into Gameplay and Development

Kiro serves two distinct roles within BLACKOUT.exe: an AI-powered gameplay companion and an assistant supporting our development workflow.

In-Game AI Integration

Kiro operates through kiro-cli using the Agent Client Protocol (ACP) and a dedicated custom agent named kiro-game.

The agent interacts with the simulation exclusively through nine read-only Model Context Protocol (MCP) tools, ensuring that it can provide information and guidance without executing gameplay actions on the player's behalf.

Tool usage is restricted to 60 calls per gameplay session and 400 calls per day.

If the agent becomes unavailable or responds too slowly, the game automatically switches to deterministic, rule-generated guidance, allowing gameplay to continue without interruption.

To maintain factual accuracy, Kiro's post-incident debrief is validated against the recorded incident report. If the generated response does not accurately reflect the report's findings, the system replaces it with a verified written template.

AI-Assisted Development Workflow

We adopted Kiro's specification-driven development methodology to implement the game's 31-command terminal.

The corresponding requirements, design specifications, and development tasks are documented in .kiro/specs/shell/, with 27 property-based tests implemented using fast-check.

Our workflow also incorporates steering files, development hooks, and custom agents to support automated testing, maintain Product Requirements Document (PRD) accuracy, and perform project health checks.

Each Kiro-assisted development session is documented in docs/KIRO_USAGE.md, providing a record of AI usage throughout the project.

Deployment and Continuous Integration

BLACKOUT.exe is deployed on Fly.io, while GitHub Actions provides automated quality assurance on pull requests.

The continuous integration pipeline executes approximately 1,800 automated checks, including TypeScript type checking, linting, Vitest unit tests, fast-check property-based tests, and secret detection.

Challenges We Encountered

1. Balancing Authentic Cyberattacks with Playable Pacing

One of our primary challenges was adapting authentic cyberattack recordings into an experience that players could understand and respond to.

During initial testing, a recorded sqlmap-based database extraction compromised all 325 customer records within approximately five seconds, leaving insufficient time for players to investigate the activity.

Rather than introducing artificial attack behavior, we re-recorded the scenario to reflect a more deliberate intrusion pattern, incorporating approximately one minute of reconnaissance before data extraction.

This preserved the authenticity of the security evidence while creating a more balanced and engaging gameplay experience.

2. Preventing the AI Companion from Revealing Hidden Information

Early testing revealed that Kiro could access internal repository files through its built-in search functionality and unintentionally expose the game's underlying rules to players.

To address this, we implemented a dedicated custom agent operating in an isolated directory without unrestricted built-in tools.

The agent now accesses gameplay information exclusively through approved, read-only MCP interfaces.

This design enforces security restrictions through technical capabilities rather than relying solely on instructions, ensuring that Kiro provides assistance without compromising gameplay integrity.

3. Establishing Reliable Development Automation

Implementing reliable development hooks presented additional challenges.

It required five Kiro development sessions to verify hook execution and determine which configuration formats were compatible with different engine versions.

This experience highlighted the importance of validating automation behavior instead of assuming that configuration alone guarantees successful execution.

4. Optimizing Gameplay Duration and Engagement

Our initial incident simulation was too lengthy for first-time players, reducing engagement and making the experience less accessible.

We refined the gameplay by shortening standard sessions to approximately three minutes, reducing the intervals between attacks, allowing Death to execute two attacks simultaneously, and introducing visible countdown timers for time-sensitive decisions.

These improvements maintained the pressure of real incident response while creating a faster, more engaging experience.

5. Resolving Audio Issues in Automated Browser Testing

During automated testing, hidden browser sessions continued playing Kiro's and Death's dialogue despite being launched with the --mute-audio flag.

Further investigation revealed that Windows speech synthesis could bypass the browser's audio-muting mechanism.

After validating the issue through process-level audio measurements, we developed a centralized browser-testing launcher that disables speech synthesis and automatically terminates associated browser processes when testing concludes or fails.

This resolved the unexpected background audio behavior and improved the reliability of our testing environment.

6. Addressing Cross-Platform Compatibility

A file-naming conflict between Coach.tsx and coach.ts passed our Linux-based continuous integration checks but caused build failures on Windows due to differences in file-system case sensitivity.

We resolved the issue and introduced automated validation to identify similar naming conflicts across operating systems, strengthening cross-platform compatibility.

7. Reestablishing Product Direction Through Structured Development

Our initial concept was discontinued on 8 November after we recognized that development had progressed before the product's objectives and requirements had been clearly established.

We subsequently adopted a structured, specification-driven development process.

Every feature was linked to a documented requirement in the PRD, while significant architectural and design decisions were recorded before implementation.

By the end of development, our decision log contained more than 300 documented decisions, improving transparency, traceability, and coordination.

What We Learned

1. Incident Response Requires Strategic Decision-Making

Developing BLACKOUT.exe demonstrated that effective cybersecurity incident response is not simply about following a predefined checklist. It requires evaluating risks, understanding trade-offs, and making informed decisions under pressure.

Several key principles emerged from the development process:

  • Temporary defenses are not permanent solutions: Web Application Firewall rules can provide immediate protection, but addressing the underlying vulnerability requires an appropriate code-level fix.
  • Attackers can adapt: Blocking individual IP addresses may be ineffective when adversaries can change their infrastructure or attack methods.
  • Evidence preservation is essential: Investigative evidence must be secured before potentially destructive remediation actions.
  • Incident response carries regulatory responsibilities: Confirming a reportable data breach can trigger legal and regulatory notification requirements.
  • Security and business continuity must remain balanced: Defensive measures should protect critical systems without unnecessarily disrupting legitimate operations.

Transforming these principles into interactive gameplay helped us understand their practical implications more effectively than studying them through theory alone.

2. Deterministic Simulations Improve Testing and Reliability

Using a seeded, deterministic simulation engine allowed us to reproduce gameplay scenarios and verify the consequences of specific player decisions.

Headless automated playthroughs enabled us to evaluate whether the game consistently reinforced its intended cybersecurity learning objectives.

This demonstrated how reproducibility can improve both software reliability and the educational effectiveness of interactive simulations.

3. AI Safety Should Be Enforced Through Technical Capabilities

Our experience integrating Kiro reinforced the importance of limiting AI systems through explicit technical boundaries.

Rather than relying exclusively on instructions prohibiting certain actions, we restricted Kiro to approved, read-only tools.

This prevented the AI companion from independently executing defensive commands or accessing hidden gameplay information, preserving the player's responsibility for every decision.

4. Specification-Driven Development and Property-Based Testing Improve Software Quality

Formal requirements, structured design specifications, and property-based testing helped identify defects that conventional example-based testing might have overlooked.

The terminal's fast-check properties uncovered issues including a decoder that incorrectly removed byte-order marks and a write operation that corrupted the shared baseline database.

These findings reinforced the value of integrating testing and validation throughout development rather than treating them as final-stage activities.

5. Clear Product Direction Is Essential for Efficient Development

One of our most significant lessons was the importance of establishing a clear product vision before implementing features.

Our initial development approach resulted in unnecessary rework because several components were built before the project's objectives had been fully defined.

By adopting a PRD-driven workflow, documenting architectural decisions, and validating requirements before implementation, we achieved a more coherent design and improved development efficiency.

This experience demonstrated that successful software engineering depends not only on implementation speed but also on thoughtful planning, disciplined decision-making, and continuous validation.


BLACKOUT.exe demonstrates how cybersecurity education can be transformed into an engaging, technically authentic, and interactive learning experience. By combining real attack evidence, adaptive adversarial behavior, AI-assisted guidance, and meaningful gameplay consequences, the project enables players to develop practical incident-response skills while experiencing the suspense and immersion of a horror game.


Project Links & Social Media

🎮 Play BLACKOUT.exe: https://blackout-exe.fly.dev/

🎬 YouTube Demo: https://www.youtube.com/watch?v=7cmiPy8tB1s

💻 GitHub Repository: https://github.com/uzainmalik123/BLACKOUT.exe

💼 LinkedIn Post: https://www.linkedin.com/feed/update/urn:li:activity:7533145131869216769/

📸 Instagram Reel 1: https://www.instagram.com/p/DgXjP6NtUeH/

📸 Instagram Reel 2: https://www.instagram.com/p/DgXimoSNNsN/

📝 Medium Blog: https://medium.com/@hijab.qaiser.chaudary/blackout-exe-turning-cybersecurity-incident-response-into-a-horror-game-with-kiro-2a9a30b1a0b0?sharedUserId=hijab.qaiser.chaudary

Built With

Share this project:

Updates

Submission history