DEV Community

Bala Paranj
Bala Paranj

Posted on

After the Breach, Your Team Asks 'What Happened?' They Should Be Asking Three Different Questions.

✓ Human-authored analysis; AI used for formatting and proofreading.

After a breach, the team asks: What happened?

They trace the timeline. Find the misconfiguration. Identify the attacker's path. Write the post-mortem. Implement the fix. Close the incident.

Six months later, a different misconfiguration produces a different breach through a different path. New timeline, post-mortem and a fix. The pattern repeats.

The team is asking one question "what caused this?" when the breach has three distinct structures. Each structure requires a different question. Each question produces a different response. Address one and the cycle continues. Address all three and the cycle breaks.

Three maps, three questions

Map Question What it surfaces
Causes What PRODUCED the breach? Active conditions — the trigger, the exploit, the path
Effects What FOLLOWED the breach? Consequences — data exposure, blast radius, regulatory impact
Hazards What made the breach POSSIBLE? Latent conditions — structural vulnerabilities that existed BEFORE any attacker arrived

The three are not the same thing:

A cause is active. The attacker exploited an overpermissive IAM role. The misconfiguration was deployed via console bypass.

An effect is downstream. Data was exposed. The blast radius expanded to three accounts. The regulatory notification deadline started.

A hazard is latent. The IAM role had been overpermissive for nine months. Nobody noticed because no tool evaluates permission ACCUMULATION over time. The hazard existed in peacetime with no attacker needed.

Most post-incident reviews focus on causes. Some track effects. Almost none map hazards. The hazards are where the cycle breaks.

The Causes Map

What produces cloud breaches, across three scales:

Super-system causes

This is the ecosystem.

Attackers evolved faster than security governance. Attackers iterate at machine speed on automated infrastructure. Defenders iterate at human speed on governance processes. The velocity gap between attacker and defender is the super-system cause.

System causes

This is the platform.

Security tools reason locally and episodically. Systems change globally and continuously. Tools sample state at intervals. Between samples, unsafe state propagates unchecked. The tools' temporal granularity is coarser than the system's change rate.

Sub-system causes

These are the components.

Breaches originate in small, valid-looking details. An individual token, permission, or configuration looks legitimate in isolation. Only when combined with others does the unsafe pattern emerge. Each piece passes inspection. The combination breaches.

The root cause across all three scales

Security systems validate actions, not states. Attackers exploit valid actions that lead to invalid states.

Standard security validation: "Was this action authorized?" The answer is yes. The API call was valid, the credentials were current, the permission was granted.

The attacker's exploit: take ONLY authorized actions that, combined, produce an unauthorized STATE. Each action passes validation. The cumulative state fails.

The validation gap is structural. Systems that validate actions cannot catch state divergence. The actions are all legal. The state they produce is not legal. Action-level validation does not close this gap.

The Effects Map

What follows once causes unfold:

Sub-system effects (immediate)

Nothing breaks technically. APIs return normal responses. Operations complete successfully. Logs show no errors. The breach doesn't look like a breach at the technical level. It's in the meaning of what's happening.

This is why detection tools fail. They look for technical anomalies. The breach produces no technical anomalies only semantic ones. The attacker used valid APIs to produce valid responses that happen to mean "all your data is being exfiltrated."

System effects (mid-term)

Controls react AFTER damage propagates. Lateral movement happens. Blast radius expands. By the time the unsafe state is detected, consequences are already in motion. The emergency changes required to stop the bleeding become secondary problems such as broken workflows, revoked access that takes down legitimate services.

Super-system effects (long-term)

Effects appear FAR from the original cause. The misconfiguration happened nine months ago. The regulatory fine arrives next quarter. The customer trust damage unfolds over years. The team fixing the EFFECT (the fine) is not the team responsible for the cause (the misconfiguration). The organization fragments the analysis across its hierarchy.

The effect pattern

Small local causes → large global effects → delayed recognition.

Individual misconfigurations produce organization-wide consequences with months between cause and effect. Post-incident fixes feel disconnected because the team experiencing the effect rarely sees the cause. The disconnection is structural, not procedural.

The Hazards Map

What makes the system inherently dangerous is latent conditions that exist even when no attacker is present:

Sub-system hazards

Hazard Why it's dangerous Active failure signal
Privilege creep Access quietly grows over time; no one revokes unused permissions None — accumulation is silent
Long trust chains One compromise cascades through chained delegations None — chains look normal until activated
Configuration drift Intent and reality diverge after deployment None — drift is invisible between scans
Toxic combinations Individual configs are safe; the combination creates an attack path None — each piece passes inspection

Each hazard is a standing risk. The system doesn't fail today. It's poised to fail when the right trigger arrives. The hazards accumulate in peacetime. They activate in wartime.

System hazards

Hazard Why it's dangerous
Tool silos No tool reasons across the full surface; gaps between tools are invisible
Human-in-the-loop security Adds latency the attacker exploits; human attention is the bottleneck
Automation without constraints Amplifies whatever it processes — including unsafe inputs — at machine speed

System-level hazards are architectural. They're features of the system as designed. Eliminating them requires re-architecting.

The hazards-vs-causes distinction

This distinction changes everything about where to invest:

Property Causes Hazards
When they matter During an active breach (wartime) Always — even in peacetime
When they can be addressed During or after the incident ANYTIME — before any attacker arrives
What addresses them Detection, response, recovery Preventive design, architectural change
What happens if you fix them This specific incident is resolved The CLASS of incidents becomes impossible

Hazards can be addressed in peacetime. Reduce privilege creep now. Shorten trust chains now. Correct config drift now. Eliminate toxic combinations now. No attacker needed. No incident required. The structural conditions that ENABLE breaches are addressable as routine maintenance.

Causes can only be addressed in wartime, when the attacker is active, the breach is unfolding, the clock is ticking. This is where most security investment goes. The hazards get neglected because they don't trigger incidents DIRECTLY. But they're where the structural improvement happens.

The breach lifecycle and why it repeats

Reading across the three maps reveals a self-perpetuating cycle:

Hazards exist (latent — privilege creep, drift, trust chains)
    ↓
Causes activate (attacker exploits the hazards)
    ↓
Effects unfold (data exposed, blast radius expands)
    ↓
Recognition happens (delayed — months after the cause)
    ↓
Recovery begins (emergency response, post-mortem)
    ↓
Hazards REMAIN (structural conditions persist — recovery addressed the incident, not the architecture)
    ↓
[Cycle repeats with the next attacker]
Enter fullscreen mode Exit fullscreen mode

Recovery addresses the active incident. It rarely addresses the underlying hazards. Privileges get re-tightened for the affected role but privilege creep continues across every OTHER role. The breached configuration gets fixed but drift continues across every OTHER configuration. The specific path gets blocked but the toxic combinations that enabled it persist across every OTHER asset combination.

The cycle repeats because recovery operates at the CAUSES/EFFECTS level while hazards persist at the STRUCTURAL level.

Where every tool category operates

Tool category Lifecycle stage Addresses
Threat intelligence Predicting next causes Causes (future)
SIEM Detecting active causes Causes (present)
CSPM Detecting effects after deployment Effects (present)
Incident response Managing recognition Effects → Recovery
SOAR Automating recovery Recovery
Post-incident review Reviewing after recovery Causes (past)
Risk reasoning engine Preventing latent hazards Hazards (all time)

Every standard tool category operates at the causes, effects, recognition, or recovery stage. NONE operates at the hazards stage. The hazards are the conditions that make breaches possible. These are the gaps in the toolchain.

The gap explains why fifteen years of investment in causes-and-effects tools hasn't reduced breach rates. The tools address each INCIDENT. The hazards regenerate the next incident. The cycle continues because the structural layer is unaddressed.

Breaking the cycle at the hazards level

The cycle breaks when hazards are addressed structurally rather than incident-by-incident:

Hazard Structural response
Privilege creep Catalog controls that fire when IAM permissions accumulate beyond declared bounds
Long trust chains Cross-asset chain controls that evaluate delegation depth
Configuration drift Snapshot-vs-catalog evaluation on every deployment AND periodically post-deploy
Toxic combinations Compound chain controls that evaluate multi-asset patterns — catching combinations that pass individual inspection

Each hazard maps to catalog entries. The catalog grows by adding hazard coverage. The gate prevents deployments that would CREATE or PERPETUATE the hazards. The hazards stop accumulating because the system that produces them is constrained.

The root cause "security systems validate actions, not states" is inverted. The evaluation engine reads states (snapshots), applies state-level invariants (catalog), and produces state-level verdicts. Actions aren't the unit of validation. States are. The cumulative state matters and gets evaluated.

For your post-incident review: three questions

Next time your team reviews a breach, ask all three:

1. What CAUSED this specific incident? (Causes map) Which action, which exploit, which path? This is the question you already ask. Keep asking it. But don't stop here.

2. What EFFECTS propagated, and why did recognition take so long? (Effects map) How far did the blast radius extend? Why was there a gap between cause and recognition? What made the delay structural rather than procedural?

3. What HAZARDS existed BEFORE the attacker arrived? (Hazards map) Which latent conditions made this incident possible? Privilege creep? Drift? Trust chains? Toxic combinations? These conditions existed in PEACETIME. They'll still exist after recovery unless you address them architecturally.

The third question breaks the cycle. The first two produce incident-level fixes. The third produces structural improvement. The incident-level fixes resolve this breach. The structural improvement prevents the CLASS of breaches from recurring.

Most teams ask question 1. Some ask question 2. Almost none ask question 3. The hazards persist. The cycle repeats.


Operating at the hazards level with 3,000+ CEL-predicate controls enumerating latent dangerous conditions (privilege creep, trust chains, drift, toxic combinations), evaluated against air-gapped snapshots of actual cloud state, exporting standardized facts (JSONL, SMT-LIB) for external reasoning engines. Stave, an open-source risk reasoning engine. The cycle breaks at the hazards, not the causes. Try it: bash examples/demo-ai-security/run.sh

Top comments (0)