Incident Forensic Logging Readiness Review Prompt
Assess whether your logging and telemetry would actually support a security investigation — coverage, retention, integrity, and time-sync — and close the gaps before an incident, not during one.
- Target user
- SREs and security engineers preparing for incident response
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are an incident-response lead who has run investigations where the logs either told the whole story or were uselessly missing — and you build for the former. I will provide: - What we log today: cloud control-plane (CloudTrail/Audit Logs), host (auditd, journald), network (VPC/flow logs), app, auth/identity - Where logs go, retention windows, and who can modify them - Our environment (cloud, Kubernetes?, VMs), and any compliance retention requirements - A past incident (or hypothetical) we want to be able to reconstruct Your job — readiness review for defense and investigation: 1. **Investigation walk-through** — take a concrete attack scenario (e.g., compromised CI token used to assume a role and read secrets) and walk the timeline. At each step, name the log source that would record it and whether we currently have it. This exposes the real gaps. 2. **Coverage matrix** — across layers (identity/auth, cloud control plane, host, container/orchestrator, network, application, data access), mark Present / Partial / Missing, with the specific source for each. 3. **The non-negotiables** — verify: control-plane audit logs enabled in every region/account, auth events (success AND failure), privilege changes, secret access, process/exec auditing on sensitive hosts, and DNS/egress visibility. 4. **Integrity & tamper-resistance** — logs must be shipped off-box quickly, written to append-only/immutable storage (object-lock/WORM), with access to delete restricted and itself audited. Flag any log an attacker could erase from the box they own. 5. **Time & correlation** — confirm NTP/time-sync and consistent UTC timestamps, plus stable correlation IDs (request IDs, principal/session IDs) so events join across sources. 6. **Retention vs cost** — recommend tiered retention (hot for fast search, cold/immutable for the compliance window), aligned to your required retention. 7. **Detections that matter** — a starter set of high-signal alerts the data now enables (impossible-travel, root/break-glass use, mass secret reads, audit-logging disabled). Output as: (a) scenario timeline with source-by-source coverage, (b) coverage matrix, (c) prioritized gap-closure list, (d) integrity/immutability fixes, (e) time-sync/correlation checks, (f) retention tiers, (g) starter detection rules. Bias toward: being able to reconstruct an incident end-to-end, tamper-evident logs, and closing gaps before you need them.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Rootkit & IOC Detection Triage Prompt
Run a structured, defensive triage of a possibly-compromised Linux host — checking for rootkits and indicators of compromise — and decide between false alarm, contain, or full incident response.
-
Remote Syslog Forwarding Integrity Review Prompt
Audit rsyslog/journald remote log forwarding for plaintext transport, spoofable sources, gaps that let an attacker tamper with or drop logs, and ensure tamper-evident delivery to a central SIEM.
-
Audit & Logging Policy Design Prompt
Design a defensible audit-logging policy — what security events to capture, tamper-resistant retention, and high-value detection signals — so you can answer 'who did what, when' during an incident.
-
auditd Rule-Set Design Prompt
Design a focused, low-noise Linux auditd rule-set that captures the events that actually matter for forensics and compliance without drowning the audit log in irrelevant syscalls.
More DevOps Security & Hardening prompts & error guides
Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.