Course contentsShow
← Security
Lesson 2635 of 3,05250. Secure Architecture and DesignFree lesson

Compromise Recording and Auditability

Explore building systems that detect, log, and alert on security violations to enable incident response and forensics.

Compromise Recording and Auditability

What You'll Learn

You'll learn how to architect systems that systematically detect, log, and alert on security violations to enable effective incident response and forensic investigation.

The Core Concept

Compromise Recording is the design principle that assumes breaches will happen—so your system must create an unforgeable trail of evidence when they do. Think of it like a bank's security cameras: they don't prevent all robberies, but they record everything so investigators can piece together what happened, when, and by whom.

Auditability means building systems where every security-relevant action creates a tamper-evident log entry. When an attacker gains unauthorized access, modifies data, or escalates privileges, your architecture should capture:

  • Who (authenticated identity or source)
  • What (action attempted/completed)
  • When (precise timestamp)
  • Where (system component, IP address)
  • Outcome (success, failure, error code)

Why This Matters

Without compromise recording, you're flying blind during incidents. Was data exfiltrated? When did the breach start? Which accounts are compromised? Forensic investigators need this trail to contain the damage, preserve evidence for legal proceedings, and prevent recurrence.

Design Implications

Build logging at the architecture level, not as an afterthought:

  • Centralized log aggregation prevents attackers from erasing local evidence
  • Immutable append-only logs ensure attackers can't cover their tracks
  • Real-time alerting on suspicious patterns (failed auth attempts, privilege escalations)
  • Separate security/audit logging from operational logs—different retention, access controls
  • Time synchronization across all systems for accurate correlation

This principle pairs with Work Factor: make the cost of attacking without detection prohibitively high.

Key Takeaway: Design systems assuming compromise will occur; comprehensive, tamper-proof audit logs transform detection from guesswork into forensic certainty, enabling rapid incident response and accountability.