This prompt is designed for security architects and platform engineers who need to evaluate whether a system design can support effective incident response. Use it during architecture review gates, before a new service enters production, or when an existing system undergoes a significant redesign. The prompt forces the model to reason across the full incident lifecycle: detection, containment, eradication, recovery, and post-incident learning. It assumes you have a written system design document, architecture diagram, or detailed component description as input. The output is a structured gap analysis that identifies architectural blockers, missing telemetry, insufficient isolation boundaries, and forensic blind spots. This is not a generic security questionnaire. It is a design-level review that catches threats invisible in code review alone.
Prompt
Incident Response Plan Architecture Review Prompt

When to Use This Prompt
Defines the ideal user, required inputs, and architectural review gates where this incident response design review prompt delivers the most value.
The ideal input is a system design document that describes component boundaries, data flows, authentication mechanisms, deployment topology, logging and monitoring strategy, and any existing security controls. If your design document is sparse, the prompt will still produce useful output, but the gaps it identifies will be broader and less actionable. For best results, include details about how the system detects anomalies, how components are isolated, what forensic evidence is preserved, and how operators would execute containment and recovery procedures. The prompt works with both greenfield designs and brownfield modernization efforts, but it is most effective when the design is stable enough to review but not yet locked into implementation.
Do not use this prompt as a substitute for a formal threat model or a penetration test. It does not replace runtime security validation, red-team exercises, or compliance audits. It is a design-time review tool that surfaces architectural risks before they become production incidents. Avoid using it on systems that are already in production without also feeding in current incident history and postmortem findings, otherwise the model will lack the ground truth needed to assess real-world gaps. If your organization has specific incident response SLAs, regulatory requirements, or internal runbook standards, include those as constraints in the prompt to get a calibrated assessment rather than a generic one.
After running the prompt, expect a structured report that maps architectural components to incident response capabilities. Each gap should include a severity rating, a description of the missing capability, and a recommended remediation. Use this output as input to your architecture decision process, not as a final verdict. The next step is to review the findings with the engineering team, prioritize the gaps based on your risk appetite, and update the design document before implementation begins. For high-risk systems, pair this prompt with the Threat Modeling Architecture Prompt Template and the Defense-in-Depth Architecture Review Prompt to get overlapping coverage across security domains.
Use Case Fit
Where this prompt works and where it does not. Use these cards to decide if the Incident Response Plan Architecture Review Prompt fits your current review context.
Good Fit: Pre-Deployment Architecture Review
Use when: you have a complete system design document, data flow diagram, or architecture decision record for a service that will go to production. The prompt excels at finding gaps in detection, containment, and forensic readiness before code ships. Guardrail: provide explicit IR requirements or a compliance standard (e.g., SOC 2, ISO 27001) as [CONTEXT] so the model evaluates against a concrete baseline rather than generic best practices.
Bad Fit: Live Incident Response
Avoid when: you are in an active incident and need real-time triage or remediation steps. This prompt is designed for design-time architectural review, not runtime incident command. Guardrail: for active incidents, use an operational runbook prompt or on-call handoff workflow instead. This prompt lacks the time-sensitivity and live-system awareness needed during an outage.
Required Inputs: Architecture Artifacts
What to watch: the prompt cannot reason about gaps without concrete design material. Vague descriptions produce vague findings. Guardrail: supply at minimum a system boundary diagram description, data flow summary, and existing logging/monitoring approach as [INPUT]. Better results come from including authentication flows, network segmentation, and data classification labels.
Operational Risk: Over-Reliance on Model Judgment
What to watch: the model may flag architectural patterns as gaps when they are intentional trade-offs, or miss novel attack paths outside its training distribution. Guardrail: treat every finding as a hypothesis requiring human verification. Require a security architect to sign off on the gap analysis before it becomes a remediation backlog. Never auto-approve architectural changes from model output alone.
Bad Fit: Undocumented Legacy Systems
Avoid when: the system lacks current architecture documentation and the review would require the model to infer design from incomplete clues. The prompt cannot interview engineers or inspect running infrastructure. Guardrail: invest in architecture documentation or a discovery exercise first. Without reliable design inputs, the gap analysis will be speculative and potentially misleading.
Good Fit: Compliance Evidence Generation
Use when: you need structured evidence that incident response requirements were reviewed during design, suitable for audit trails or governance submissions. Guardrail: pair the prompt output with a human-signed review record. The model can produce the analysis structure, but accountability for architectural decisions must remain with named engineers.
Copy-Ready Prompt Template
A reusable prompt template for reviewing incident response architecture in system designs, ready to paste and adapt.
This prompt template is designed to be copied directly into your AI tool of choice. Replace the square-bracket placeholders with your specific system design document, incident response requirements, and output format preferences. The prompt is structured to produce a gap analysis that identifies architectural blockers to detection, containment, eradication, and recovery capabilities. It is self-contained and can be used independently of the rest of this playbook, though the evaluation harness and failure mode sections will help you validate the output before acting on it.
codeYou are a senior security architect reviewing a system design for incident response readiness. Your task is to produce a structured gap analysis that identifies architectural blockers to effective detection, containment, eradication, and recovery. ## SYSTEM DESIGN [SYSTEM_DESIGN] ## INCIDENT RESPONSE REQUIREMENTS [IR_REQUIREMENTS] ## REVIEW SCOPE - Detection capabilities: logging, monitoring, alerting, anomaly detection - Containment capabilities: isolation mechanisms, segmentation, kill switches, rate limiting - Eradication capabilities: root cause removal, patch deployment, configuration rollback - Recovery capabilities: backup restoration, state reconstruction, service resumption - Forensic readiness: audit trails, evidence preservation, chain of custody support ## CONSTRAINTS [CONSTRAINTS] ## OUTPUT FORMAT Produce a JSON object with the following structure: { "summary": "One-paragraph executive summary of overall IR readiness", "gaps": [ { "id": "GAP-001", "category": "detection|containment|eradication|recovery|forensics", "severity": "critical|high|medium|low", "description": "What is missing or insufficient", "architectural_blocker": "Why this cannot be fixed with operational changes alone", "recommendation": "Specific architectural change needed", "effort_estimate": "small|medium|large|xlarge" } ], "existing_controls": [ { "control": "Description of existing capability", "category": "detection|containment|eradication|recovery|forensics", "effectiveness": "adequate|partial|unproven" } ], "critical_path_gaps": ["GAP-IDs that block IR execution regardless of other controls"], "compliance_notes": ["Relevant regulatory or standard gaps identified"] } ## INSTRUCTIONS 1. Analyze the system design against each IR capability category. 2. Identify gaps that require architectural changes, not just process or operational fixes. 3. For each gap, explain why it is an architectural blocker. 4. Prioritize gaps by severity: critical gaps make incident response impossible; high gaps significantly impair it. 5. Flag any single points of failure in the IR chain. 6. If the system design lacks sufficient detail to assess a category, note it as an unknown risk rather than assuming adequacy. 7. Do not invent controls that are not described in the design document.
To adapt this prompt, replace [SYSTEM_DESIGN] with your architecture document, diagram descriptions, or design notes. The [IR_REQUIREMENTS] placeholder should contain your organization's incident response policy, compliance requirements, or specific threat scenarios you are designing against. Use [CONSTRAINTS] to specify any limitations such as budget, technology stack restrictions, or regulatory boundaries that shape what recommendations are feasible. If your review scope differs from the five categories listed, adjust them before running the prompt. The output schema is designed to be machine-readable for integration into security review pipelines, but you can modify it to match your internal reporting format. For high-risk systems, always have a human security architect review the AI-generated gap analysis before accepting it as a final assessment.
Prompt Variables
Required inputs for the Incident Response Plan Architecture Review Prompt. Each placeholder must be populated with concrete, testable data before execution. Validation checks prevent common injection points and ensure architectural completeness.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[SYSTEM_DESIGN_DOC] | Full text of the system architecture document, including data flow diagrams, component inventories, and trust boundaries | Architecture Decision Record v2.3 with attached C4 container diagram and network segmentation table | Must exceed 500 tokens. Reject if empty or contains only diagram references without textual descriptions. Parse check for section headers: 'Components', 'Data Flows', 'Trust Boundaries' |
[INCIDENT_RESPONSE_REQUIREMENTS] | Organizational IR policy, regulatory requirements, and SLAs that the architecture must satisfy | NIST SP 800-61 aligned IR policy with 15-minute detection SLA and 4-hour containment SLA for PII systems | Must contain at least one measurable SLA. Validate presence of detection, containment, eradication, and recovery phase requirements. Reject if only references external URLs without inline text |
[THREAT_MODEL] | Existing threat model output identifying relevant threats, attack vectors, and trust-boundary crossings | STRIDE model output covering external API gateway, internal service mesh, and database tier with 23 identified threats | Must reference specific system components from [SYSTEM_DESIGN_DOC]. Validate cross-references exist. Null allowed if threat model is being generated in parallel; triggers broader analysis scope |
[COMPLIANCE_STANDARDS] | List of applicable compliance frameworks and their IR-specific clauses | PCI DSS 4.0 Requirement 12.10, SOC 2 CC7.3-CC7.5, GDPR Articles 33-34 | Each entry must include specific clause or requirement ID. Reject generic entries like 'SOC 2' without section references. Null allowed for non-regulated systems; triggers note in output |
[CURRENT_INCIDENT_CAPABILITIES] | Description of existing detection tooling, logging coverage, alerting pipelines, and runbook maturity | Splunk for centralized logging, PagerDuty for alerting, manual runbooks in Confluence, no automated containment for database tier | Must enumerate at least detection, alerting, and containment capabilities separately. Validate each capability has a maturity indicator. Used to calculate gap severity in output |
[FORENSIC_READINESS_REQUIREMENTS] | Specific forensic evidence preservation needs including log retention periods, chain-of-custody requirements, and evidence types | 90-day hot log retention, 1-year cold storage, immutable audit logs for payment service, memory dumps required for container workloads | Must specify retention periods with units. Validate at least one immutability or tamper-detection requirement. Null allowed; triggers default forensic readiness recommendations |
[ARCHITECTURE_CONSTRAINTS] | Non-negotiable constraints that limit IR design choices such as air-gapped segments, latency budgets, or vendor lock-in | Database tier cannot be restarted during business hours, legacy mainframe has no API for automated isolation, max 50ms added latency for IR controls on payment path | Each constraint must include the affected component name from [SYSTEM_DESIGN_DOC]. Validate component references exist. Reject constraints without measurable impact description |
Implementation Harness Notes
How to wire the Incident Response Plan Architecture Review Prompt into a security review workflow with validation, retries, and human approval gates.
This prompt is designed to operate as a structured analysis step inside a larger security architecture review pipeline, not as a standalone chatbot interaction. The harness should treat the model output as a draft gap analysis that requires deterministic validation, forensic readiness checks, and human sign-off before it becomes part of an incident response (IR) readiness report. The primary integration points are: a document ingestion stage that extracts the system design and IR plan sections, the prompt execution stage, a post-processing validator, and a review queue for a security architect.
Input assembly should pull three distinct document sections into the prompt's placeholders: [SYSTEM_DESIGN] (architecture diagrams, service topology, data flow descriptions), [IR_PLAN] (detection, containment, eradication, and recovery procedures), and [COMPLIANCE_STANDARDS] (e.g., NIST SP 800-61, ISO 27035, SOC 2 CC7). If the IR plan is missing a required phase, the prompt will flag it, but the harness should also run a pre-flight completeness check that verifies each IR phase heading exists in the source document before invoking the model. This prevents the model from hallucinating the presence of a containment section that was never written. For RAG-based systems, retrieve the relevant architecture and IR plan chunks using metadata filters that separate design docs from procedural docs, and inject them into the prompt with clear [SOURCE: ...] demarcation.
Output validation is the most critical harness component because this prompt operates in a high-risk domain where missed gaps can extend incident duration. After the model returns its gap analysis, run a structured schema validator that checks for: (1) every IR phase (detection, containment, eradication, recovery, post-incident) has at least one finding or an explicit NO_GAP marker, (2) each finding includes a non-empty architectural_blocker field, (3) severity ratings are constrained to the enum [CRITICAL, HIGH, MEDIUM, LOW], and (4) no finding references a system component not present in the source [SYSTEM_DESIGN]. If validation fails, retry with the error message appended as a [CORRECTION_REQUEST] in a follow-up prompt, up to a maximum of two retries. After two failures, escalate to the human review queue with the raw output and validation errors attached.
Forensic readiness and isolation checks should be implemented as deterministic post-processing rules, not left to the model alone. After the model produces its gap analysis, the harness should cross-reference each finding against a checklist: Does the system design include immutable audit logging for the affected component? Are there documented quarantine mechanisms (network segmentation, credential revocation, deployment freeze) that can isolate the component during containment? If the model's output claims a gap exists but the system design already documents these controls, flag the finding for human review as a potential false positive. This dual-layer approach—model analysis plus deterministic verification—reduces the risk of both missed gaps and incorrect gap claims.
Model choice and latency considerations favor models with strong reasoning capabilities and long context windows, such as Claude 3.5 Sonnet or GPT-4o, because the prompt requires cross-referencing two potentially large documents and producing structured analysis. For teams running this review on every architecture change, consider caching the IR plan analysis and only re-running the prompt when the system design or IR plan sections change. Human approval is mandatory for all CRITICAL and HIGH severity findings before they enter any remediation tracker. The review queue should present the finding, the source evidence from both documents, and the model's reasoning in a side-by-side view that lets the security architect confirm, modify, or dismiss each gap. Never auto-commit gap analysis findings to a compliance record or ticketing system without human review.
Expected Output Contract
Fields, format, and validation rules for the gap analysis response. Use this contract to parse, validate, and store the model output before surfacing it to a reviewer or downstream system.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
gap_id | string (kebab-case) | Must match pattern ^GAP-[A-Z]{2,4}-\d{3}$. Must be unique within the response array. | |
gap_title | string (max 120 chars) | Must be a concise, actionable summary. Reject if empty or contains only generic phrases like 'Missing control'. | |
category | enum string | Must be one of: Detection, Containment, Eradication, Recovery, Forensic_Readiness, Isolation, Communication. Reject on unknown value. | |
severity | enum string | Must be one of: Critical, High, Medium, Low. Critical severity requires a populated [BLOCKER_DETAIL] field. | |
affected_component | string or null | Must reference a named component from the [SYSTEM_DESIGN] input. If null, validation must confirm the gap is cross-cutting and log a warning. | |
finding_summary | string (max 500 chars) | Must contain at least one specific architectural observation. Reject if it only restates a general best practice without linking to the design. | |
evidence_reference | string (max 300 chars) or null | If not null, must contain a direct quote or section reference from [SYSTEM_DESIGN]. Reject if the reference cannot be found via substring match in the source. | |
recommended_action | string (max 500 chars) | Must include a concrete, implementable step. Reject if it contains only vague advice like 'Improve monitoring' without a specific mechanism. | |
requires_human_review | boolean | Must be true if severity is Critical or if the finding involves a regulatory control. Enforce this rule in post-processing. |
Common Failure Modes
Incident response plan reviews fail in predictable ways. These are the most common failure modes when using an LLM to analyze architectural readiness for detection, containment, eradication, and recovery.
Vague Detection Gap Claims
What to watch: The model identifies a 'detection gap' without specifying which telemetry source is missing, what signal would trigger the alert, or where in the data flow the blind spot exists. Generic statements like 'improve monitoring' are not actionable. Guardrail: Require the output to map every gap to a specific telemetry source, log stream, or metric. Add a validator that rejects gap statements without a named data source.
Containment Without Isolation Evidence
What to watch: The review claims containment capabilities exist but does not verify that the proposed isolation mechanism actually segments the compromised component from the rest of the system. Network policies, IAM boundaries, or process isolation may be described but not tested against lateral movement paths. Guardrail: Prompt the model to trace a specific compromise scenario through the architecture and flag any point where the blast radius is not provably contained by a configured control.
Forensic Readiness Assumed, Not Verified
What to watch: The model accepts documentation claims about logging and audit trails without checking retention periods, log integrity protections, or whether the logged fields are sufficient to reconstruct an attack timeline. Guardrail: Include a checklist in the prompt that requires explicit verification of log immutability, retention duration, and field completeness for each critical data flow. Flag any component where forensic evidence would be lost after a restart or rotation.
Eradication Steps Skip Root Cause Removal
What to watch: The review describes eradication procedures that focus on symptom cleanup—restarting services, rotating credentials, patching the immediate vulnerability—without confirming that the underlying misconfiguration, unpatched dependency, or architectural weakness is addressed. Guardrail: Require the output to link each eradication step to a specific root cause finding. Add an eval check that fails if eradication actions do not reference a corresponding architectural defect.
Recovery Without State Validation
What to watch: The review accepts recovery procedures that restore services but does not verify that data integrity checks, backup validation, or canary testing are part of the recovery workflow. A system can appear recovered while serving corrupted data. Guardrail: Prompt the model to identify the state validation checkpoints required before declaring recovery complete. Require explicit mention of data integrity verification, backup restoration testing, and traffic shadowing or canary deployment steps.
Plan Assumes Single Incident Scope
What to watch: The review evaluates the incident response plan against a single, isolated failure scenario and misses compounding failures—multiple services compromised simultaneously, a compromised responder credential, or an attack that targets the incident response tooling itself. Guardrail: Include a multi-failure scenario in the evaluation prompt. Require the model to assess whether the response plan degrades safely when the incident response infrastructure, secrets store, or communication channels are also affected.
Evaluation Rubric
Criteria for testing the quality of an incident response plan architecture review before shipping the prompt to production. Each criterion maps to a pass standard, a failure signal, and a test method that can be automated or run manually.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Gap coverage completeness | Output identifies at least one gap per IR phase (detection, containment, eradication, recovery) or explicitly states no gap found with rationale | Output omits an entire IR phase without justification or returns only generic statements with no architectural specifics | Automated phase-keyword check (detection, containment, eradication, recovery) against output; manual review of gap specificity |
Architectural blocker identification | Each identified gap includes a concrete architectural component (e.g., missing log aggregation, shared blast radius, manual failover) that blocks IR capability | Gaps are described as process or team issues without linking to system design (e.g., 'team needs training' without architectural root cause) | LLM-as-judge check: does each gap cite a system component, service boundary, or infrastructure element? |
Forensic readiness assessment | Output evaluates whether the architecture supports post-incident forensics: log integrity, immutable storage, audit trail completeness, and evidence chain of custody | Output ignores forensic requirements entirely or assumes logging exists without checking retention, tamper protection, or coverage | Keyword and assertion check for log integrity, retention, immutability, audit trail; manual spot-check for architectural specificity |
Isolation capability evaluation | Output assesses whether the architecture can isolate compromised components (network segmentation, service mesh, container boundaries, blast-radius containment) | Output treats isolation as a binary 'yes/no' without analyzing segmentation granularity, lateral movement paths, or shared dependencies | Check for segmentation terms (VPC, subnet, namespace, pod, security group) and blast-radius language; manual review of lateral movement analysis |
Recovery path feasibility | Output validates that recovery procedures are architecturally possible: state reconstruction, backup integrity, rollback paths, and data consistency after restoration | Output assumes recovery works without checking backup freshness, restore testing, state corruption risks, or cross-service consistency | Assertion check for backup, restore, rollback, state reconstruction terms; manual review of consistency and feasibility analysis |
Prioritization quality | Output ranks gaps by severity with clear criteria (e.g., blast radius, exploitability, data sensitivity, recovery time impact) | Output lists gaps in arbitrary order with no severity rationale or uses only generic 'high/medium/low' without architectural justification | Check for explicit severity criteria or impact rationale per gap; LLM-as-judge comparison of ranking consistency against incident scenarios |
Actionability of recommendations | Each recommendation includes a specific architectural change (e.g., 'add read-replica in separate VPC', 'enforce mTLS between service A and B') rather than vague guidance | Recommendations are generic (e.g., 'improve monitoring', 'add encryption') without specifying what, where, or how in the architecture | Manual review: can an engineer implement the recommendation without asking follow-up questions? Automated check for component/service names in recommendations |
False positive control | Output does not flag architectural patterns that are actually IR-compatible as gaps (e.g., flagging eventual consistency as a recovery gap when the system design explicitly accepts it) | Output flags standard architectural trade-offs as security gaps without acknowledging documented design rationale or accepted risk | Adversarial test with known-good IR-ready designs; check that output does not over-flag; manual review of false-positive rate |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a single architecture document and manual review. Drop strict output schema requirements and focus on narrative gap analysis. Accept plain-text output instead of structured JSON.
Prompt modification
Remove the [OUTPUT_SCHEMA] block and replace with: List the top 5-10 gaps you find, grouped by incident response phase.
Watch for
- Missing forensic readiness checks when the prompt isn't forced to examine logging architecture
- Overly broad findings without specific architectural component references
- No severity differentiation between gaps

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us