Reconstruct an incident from preserved evidence
A finding refers to an IAM policy change at 09:11. The application first rejected requests at 09:15. Which record should anchor the timeline?
Reconstruct an incident from preserved evidence
Preserve evidence, correlate events, verify scope, restore a clean workload and trace the initiating event.
Work through the decision
A finding refers to an IAM policy change at 09:11. The application first rejected requests at 09:15. Which record should anchor the timeline?
Check your reasoning
Preserve the original CloudTrail event and application records in a controlled evidence location. Join on identity, resource and event time, track delivery time separately, and test whether the policy change affected the failing request. Temporal order suggests a hypothesis and does not alone prove cause.
Interpret the evidence
- Evidence manifest
- Record source identifiers, capture times, custody and hashes of preserved artifacts so later analysis can be verified.
- Event-time correlation
- Align occurrence times and stable event or request identifiers. Distinguish delayed delivery from a later action.
- Scope validation
- Check which identities, accounts, Regions and resources share the indicator before choosing a containment boundary.
- Controlled recovery
- Restore from a trusted source, validate behavior and monitor before reconnecting the workload to normal service.
Practice the guide skills
- Create an evidence manifest for an audit record and a snapshot. Specify original identifiers, acquisition time, checksum where applicable, storage and authorized custodians. Watch 46:17
- Correlate a simulated finding, a CloudTrail event and application evidence by stable identifier and time. Retain the original arrival order separately. Watch 46:53
- Check account, Region, role session and affected resources before extending the containment boundary. Explicitly record which assets remain unconfirmed. Watch 49:21
- Sequence preservation, narrowly scoped containment, replacement from trusted artifacts and a monitored return to service according to urgency and business impact. Watch 52:02
- Write a causal claim supported by two records, identify an alternative explanation and propose one observation that would distinguish the two. Watch 52:34
Official objectives for this lesson
Separate causal evidence from timing
A fictional application recovers at 09:20 after a permission change is reversed.
09:11 role policy removes WriteReport
09:15 service session for that role receives AccessDenied on WriteReport
09:19 approved policy revision reinstates the action on the required resource
09:20 validated report write succeeds
The identity, action and resource link the configuration change to the failing request more strongly than event order alone. Preserve the observed policy versions and success evidence. Investigate concurrent changes before treating this as the only cause.
Lab · rebuild the timeline from delayed evidence
Download nothing and use Python 3 locally. A synthetic event export arrived in several batches. Identify the first permission change, decide how many distinct events occurred in the selected request, and keep a different request outside the timeline.
from datetime import datetime
# Event ID, case correlation ID, event time UTC, delivery time UTC, observation.
records = [
("e3", "case-7", "09:15:12", "09:15:20", "application denial"),
("e2", "case-7", "09:12:30", "09:17:05", "configuration reload"),
("e1", "case-7", "09:11:04", "09:18:01", "role policy changed"),
("e3", "case-7", "09:15:12", "09:19:00", "application denial"),
("e4", "case-9", "09:09:10", "09:09:20", "unrelated deployment"),
]
seen = {}
for event_id, case_id, event_time, delivered, action in records:
if case_id == "case-7":
seen.setdefault(event_id, (event_time, action))
for event_id, (time, action) in sorted(seen.items(), key=lambda item: item[1][0]):
print(time, event_id, action)
times = sorted(time for time, _ in seen.values())
first, last = times[0], times[-1]
elapsed = datetime.strptime(last, "%H:%M:%S") - datetime.strptime(first, "%H:%M:%S")
print("distinct events:", len(seen))
print("first-to-last seconds:", int(elapsed.total_seconds()))
Check the result
09:11:04 e1 role policy changed 09:12:30 e2 configuration reload 09:15:12 e3 application denial distinct events: 3 first-to-last seconds: 248
Add an earlier delivery of e2 with the same event time. The timeline and elapsed time stay the same. Add a distinct event to case-9 and explain why it remains outside this view. The order supports investigation of the role change. Proving causation also requires matching the changed permission to the specific denied request.
Related lesson · Reconstruct a failed change
Reconstruct an incident from preserved evidence quiz
Answer 3 questions. Check each answer for an explanation.
Worked example · Reconstruct an incident from preserved evidence