import React, { useState } from 'react'; import { Terminal, LogIn, ShieldAlert, Database, ArrowDown, CheckCircle2, XCircle, AlertTriangle, Server } from 'lucide-react'; export default function App() { const [selectedAnswer, setSelectedAnswer] = useState(null); const [isSubmitted, setIsSubmitted] = useState(false); const options = [ { id: 'monitor', text: 'Monitor the attacker to gather more intel' }, { id: 'contain', text: 'Contain the system' }, { id: 'eradicate', text: 'Delete the compromised user account' }, { id: 'recover', text: 'Restore the database from backup' } ]; const handleSubmit = () => { if (selectedAnswer) { setIsSubmitted(true); } }; const resetSimulation = () => { setSelectedAnswer(null); setIsSubmitted(false); }; return (
{/* Header */}

Critical Incident Detected

SOC Alert ID: #ERR-8992-B • Severity: CRITICAL

{/* Timeline Panel */}

Attack Timeline

{/* Vertical Line */}
{/* Step 1 */}
02:14:05 UTC

Suspicious Login

Initial access achieved via compromised VPN credentials from an unknown IP address.

{/* Step 2 */}
02:22:18 UTC

Privilege Escalation

Attacker exploited CVE-2023-XXXX to elevate privileges to SYSTEM level on internal server.

{/* Step 3 */}
02:28:45 UTC

Data Exfiltration

Large outbound traffic spike detected. Customer database records are actively being compressed and sent to an external drop server.

{/* Action Panel */}

Incident Response

Based on the ongoing attack timeline, what is the first action you must take?

{options.map((option) => ( ))}
{!isSubmitted ? ( ) : (
{selectedAnswer === 'contain' ? (
Correct Response

Excellent. When an active breach (especially exfiltration) is detected, the immediate priority in the PICERL methodology is Containment. Isolating the affected system from the network stops the bleeding before you move on to eradication and recovery.

) : (
Incorrect Action

While investigating or recovering are important later steps, data is actively leaving your network right now. The very first action must be to Contain the system (isolate it from the network) to stop the exfiltration immediately.

)}
)}
); }