Initiate remediation for non-compliant resources
Framework question: How do you detect and investigate security events?
- Risk if not established
- Medium
- Framework verified
- 23 Oct 2026
AWS Well-Architected Framework — SEC04-BP04 Initiate remediation for non-compliant resources
Executive summary
Why this practice matters
When detection finds a resource that breaks your configuration standards, define the fix as code and decide whether it runs automatically or on a person's say-so. Programmatic remediation is faster and more consistent than manual fixes, but only if it is tested, uses limited permissions and stays under human oversight. Treat it as one part of incident response, not a substitute for it.
Business impact
- Cuts the time that misconfigured resources stay exposed.
- Applies fixes consistently, reducing human error.
- Handles alert volumes that manual teams cannot.
- Keeps automation safe and accountable through testing, oversight and records.
Assign
Accountable and responsible roles
Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.
| Responsibility | Accountability type | Typical roles |
|---|---|---|
Define and build remediations Write remediations as code, test them and decide whether each runs manually or automatically. Typical roles: Security Engineer, DevOps Engineer, Security Engineer, DevOps Engineer | responsible | Security EngineerDevOps EngineerSecurity Engineer, DevOps Engineer |
Operate and review outcomes Work the findings that need judgement, monitor remediation actions and review outcomes. Typical roles: Security Operations / Incident Response, Cloud / Platform Engineer, Security Operations Lead, Cloud Platform Engineer | responsible | Security Operations / Incident ResponseCloud / Platform EngineerSecurity Operations Lead, Cloud Platform Engineer |
Agree changes to owned resources Resource owners agree which fixes may run automatically on their resources and are told when they do. Typical roles: Service Owner, Software Engineer, Service Owner, Software Engineer | consulted | Service OwnerSoftware EngineerService Owner, Software Engineer |
Assessment
Assessment and evidence state
States describe how far the practice has moved from intent to something continuously validated.
- 0
Not Assessed
Remediation arrangements have not been reviewed.
Indicators
- No review of remediation arrangements has taken place.
- 1
Not Implemented
Fixes are manual, inconsistent and depend on someone noticing.
Indicators
- Non-compliant resources are fixed ad hoc, if noticed.
- No defined remediations exist.
- 2
Partially Implemented
Some fixes are defined, but testing, permissions or oversight are weak.
Indicators
- Some remediations are scripted but untested or unowned.
- Few automatic remediations have oversight.
- 3
Implemented
Non-compliant resources are fixed through defined, tested remediations with oversight and records.
Indicators
- Common non-compliance types have tested, code-defined remediations.
- Remediation identities are least-privilege and outcomes are logged.
- 4
Continuously Validated
Remediations are reviewed and re-tested continuously against effectiveness and risk.
Indicators
- Outcomes feed regular improvement.
- Automatic remediations are re-tested when standards or tools change.
Assessment dimensions
Remediation definition
Practice-specificAd hoc · Some scripted · Code-defined for common cases
Testing and oversight
Practice-specificNone · Partial · Tested with override
Remediation permissions
Practice-specificBroad · Partly scoped · Least privilege
Outcome review
Practice-specificNone · Occasional · Regular
Caution
Automation is not the same as assurance. The evidence should show that remediations were tested, limited in what they can change, overseen by people, and that their outcomes are reviewed.
Standard
What you should be able to demonstrate
Statements a reviewer should be able to confirm from evidence, not from intent.
- Resource configuration standards are defined, with a remediation for each common type of non-compliance.
- Remediations are written as code and can be started manually or automatically.
- Automatic remediations are tested first, use least-privilege identities and can be stopped or reversed.
- Resource owners and the security team are told when a remediation runs.
- Actions and outcomes are logged and reviewed to improve the remediations.
Trade-offs to hold in view
- Automatic remediation is fast but can disrupt services if it fires wrongly, so start with low-risk fixes and keep oversight.
- Manual initiation keeps human judgement but is slower and does not scale.
- Pre-built remediation libraries save effort but need review and adaptation to your standards and environment.
Assess
Questions to ask
Each question exposes the difference between an intention and an operating practice.
- discovery
Which common misconfigurations are fixed by hand today, and which could be fixed by a defined remediation?
Finds where consistent, programmatic fixes would help most.
Usually asked by: Security Engineer, Security Operations / Incident Response
- challenge
What would happen if an automatic remediation fired in error, and how would we stop it?
Automation without a way to stop it is a risk in its own right.
Usually asked by: Security Engineer, Cloud / Platform Engineer
- evidence
What shows our remediations are tested, limited in what they can change, and effective?
Remediation needs testing, scoping and outcome records to be trusted.
Usually asked by: Security Operations / Incident Response, DevOps Engineer
- executive
How quickly are non-compliant resources put right, and who is accountable for automation that changes production?
Frames remediation as exposure time and accountability for leadership.
Usually asked by: Security Leader, Technology Executive
Evidence
Required and expected evidence
Reusable evidence definitions held once in the evidence library and referenced by every practice that relies on them. Each links to what good evidence looks like and to worked examples.
Security Remediation Rules & Outcome Register
A register of the configuration standards resources must meet, the detections that flag non-compliance and the programmatic remediation defined for each, with how each is triggered, how it is controlled and what happened when it ran.
Use the Security Remediation Rules & Outcome Register as primary evidence of the rules, remediations, triggers, oversight and outcomes.
Minimum expected content
- Configuration standards or control objectives the rules enforce
- Detection source for each rule
- Remediation for each rule, and whether it is defined as code
- Whether each remediation is manual or automatic, and why
- Trigger mechanism for each remediation
- Identity and permissions used to remediate, scoped to least privilege
- Testing and approval record before a remediation is enabled automatically
- Oversight arrangements: notifications, human override and rollback
- Log of actions taken and outcomes, and how they are reviewed
- Situations needing human judgement with no automated remediation, and who handles them
Anti-patterns
- Automation enabled without testing
- Fully automatic remediation with no way for people to step in
- Remediation identities with broad permissions
- Remediation treated as the whole response rather than one part of incident response
- No record of what automation changed
- Resource owners not told about changes
Review: Review outcomes continuously, and review the rules and remediations when standards, tools or workloads change and at least annually.
Security Control Objectives & Control Mapping
A mapping from security control objectives to the risks, compliance obligations, implemented controls, owners and validation evidence that demonstrate how each objective is achieved.
Use the Security Control Objectives & Control Mapping to show the standards the remediations enforce.
Minimum expected content
- Stable control-objective identifier and outcome statement
- Source threat, risk, compliance or governance requirement
- Applicable workload/system/data scope
- Preventive, detective and responsive controls implementing the objective
- Control owner and operating responsibility
- Implementation mechanism or platform guardrail
- Validation/test method and cadence
- Current effectiveness or conformance status
- Point-in-time and/or period evidence source
- Known gaps, exceptions or compensating controls
- Remediation owner/status where applicable
- Last reviewed date and change/review trigger
Anti-patterns
- A list of security products is treated as a set of control objectives
- Controls are mapped to compliance citations but not to the security outcome they achieve
- Configuration presence is treated as proof of effectiveness
- Evidence is collected only immediately before audit
- One control owner is assumed to validate their own control without appropriate review
- Threat-model findings do not alter control objectives or priorities
Review: Review when threat models, compliance obligations, architecture or controls change, and at the cadence required to validate control effectiveness.
Security Alert Correlation & Handling Model
A model of how security alerts are brought together, correlated and enriched: the alert sources, how identities, actions and resources are mapped across them, the enrichment data used, how criticality is adjusted, and who handles each alert type and with what runbook.
Use the Security Alert Correlation & Handling Model to show how non-compliance alerts reach the remediation process.
Minimum expected content
- Alert sources in scope, including cloud security services, log analysis, billing alarms, third-party feeds and reports from people
- How each source represents identity, action and resource, and the mappings used to link them
- Where alerts are captured and how they reach the investigating team
- Correlation approach (tooling, custom pipelines or both) and the rules or queries in use
- Enrichment sources such as account metadata, ownership, asset criticality and threat intelligence
- How initial alert criticality is reviewed and adjusted using context
- Owner, escalation route and target timescale for each alert type
- A runbook or playbook entry for each alert or finding type, stating what to check and who acts
- Alert sources with no correlation or runbook, and the plan to close the gap
- Date of the last review and rule tuning
Anti-patterns
- Different teams investigate each system's alerts in isolation
- Alerts gathered centrally but correlated by hand
- Relying only on the detection tool's own severity rating
- Alerts sent to a team that cannot act on them
- Alert types with no runbook or playbook
- Alert rules never reviewed or tuned
Review: Tune rules continuously and review the model when alert sources, tools or teams change, and at least annually.
Diagnosis
Common evidence gaps
Untested automation
Remediations are switched on without testing, risking disruption to legitimate services.
No human override
Automatic fixes run with no way for people to step in or reverse them.
Broad remediation permissions
The identity that fixes resources can change far more than it needs to.
No record of what changed
Actions and outcomes are not logged or reviewed, so effectiveness and side effects are unknown.
Implementation
Implementation guidance
Define standards and consolidate alerts
State the configuration standards resources must meet, and route non-compliance alerts from detection services to one central place for prioritisation.
Write remediations as code
Define standard responses, such as removing a disallowed network rule and notifying the owner, as functions or automation documents under version control.
Choose how each is started
Start remediations manually or automatically through the detection service or event rules, and use automatic initiation only where the fix is well understood and safe.
Limit permissions and add oversight
Run remediations with least-privilege identities, notify owners and the security team, and keep a way for people to stop or reverse automation.
Review outcomes
Log actions and record outcomes against findings, then review them to improve the remediations. Pre-built remediation libraries can be a starting point.
Measure
Measurements
- Percentage of common misconfiguration types with a defined remediation.
- Time from detection to remediation.
- Percentage of automatic remediations tested before being enabled.
- Number of remediation actions that failed or were reversed.
Related
Outcomes and practices
Business outcomes
Practices