Skip to content
Automate Security Fit walkthrough
Back to the blog

February 13, 2026 / Automate Security

How to Automate Threat Detection in AWS Environments

A practical AWS detection workflow covering account scope, GuardDuty, Security Hub CSPM, EventBridge routing, controlled response, and validation.

How to Automate Threat Detection in AWS Environments

Start with coverage and ownership

An alerting workflow is useful only when it covers the accounts, Regions, and workloads the team believes it covers. List production and nonproduction accounts, the Regions each account may use, and an owner for each. Decide who can acknowledge a finding, investigate it, and authorize a containment action. For a multi-account environment, AWS documents a security tooling account and delegated administration pattern; it also recommends enabling GuardDuty across existing and future organization accounts and relevant Regions. Review those choices against your own account structure before applying them. AWS Security Reference Architecture

Keep detection, investigation, and response as separate decisions. A finding does not by itself prove a compromise, and a response that deletes or isolates a resource can disrupt a legitimate workload.

For AWS Organizations, designate a GuardDuty delegated administrator in the intended Regions and inspect organization settings for both the foundational detector and optional protection plans. AWS offers auto-enable choices for all member accounts, only new accounts, or none. Choosing “new” does not establish coverage for existing accounts; an opt-in Region also needs the right organization configuration. Check the actual enabled status account by account after the change. GuardDuty organization management · Protection-plan auto-enable options

Enable the signals you actually need

Amazon GuardDuty analyzes supported AWS data sources to produce threat findings. Its foundational sources include AWS CloudTrail management events, VPC Flow Logs, and DNS logs; GuardDuty acquires the data it needs directly, so you do not need to create a VPC Flow Logs subscription solely for GuardDuty. Additional protection plans depend on the workload and may need separate configuration. Check the current plan and Region coverage before assuming an S3, Kubernetes, database, or runtime signal is present. Amazon GuardDuty overview

Maintain your own audit and investigation logs as well. A CloudTrail trail or event data store serves a different purpose from GuardDuty detection: it helps retain a record of activity for review. AWS Config can record configuration changes and evaluate resources against rules, which helps identify drift but is not a substitute for threat detection. Set retention and access to fit the organization's requirements. AWS CloudTrail concepts · AWS Config concepts

Centralize findings without losing their context

If the team uses AWS Security Hub CSPM, enable and verify its integration with GuardDuty in each intended account and Region. GuardDuty findings are sent in AWS Security Finding Format, with fields such as source, affected resource, status, and severity. A central queue should retain the original account, Region, finding ID, first and last observed times, and link back to the provider record. GuardDuty and Security Hub CSPM integration

Security Hub CSPM can aggregate findings from linked Regions into a home Region, but that aggregation does not turn on Security Hub CSPM in accounts or Regions where it is disabled. Verify source coverage before assuming a clean central console means no findings elsewhere. If posture controls are in scope, check AWS Config recording too: Security Hub CSPM uses Config rules for most of those checks. Cross-Region aggregation · AWS Config prerequisite

For a finding that needs more context, Amazon Detective can provide an investigation view reached from a GuardDuty or Security Hub CSPM finding. It helps an analyst explore relationships; it does not establish that every related event is malicious. Detective investigation navigation

Define ownership before making a single queue. A finding for a development account and one for a production identity may need different responders and escalation paths. Use severity as one input alongside asset criticality, exposure, evidence, and whether the activity is expected.

Route findings to a human workflow first

Amazon EventBridge can match GuardDuty findings and send them to a target such as a Lambda function or a notification path. Begin with a narrow rule for a finding type and account that has a named responder. Have the target create or update a ticket with the finding ID, account, resource, timestamp, and a link to the finding. Deduplicate updates so repeated observations do not create a new ticket every time. Processing GuardDuty findings with EventBridge

AWS documents this event pattern for findings from one member account, with the account number replaced by the real detail.accountId in the finding. Apply additional conditions only after checking the event shape for your chosen finding type:

{
  "source": ["aws.guardduty"],
  "detail-type": ["GuardDuty Finding"],
  "detail": { "accountId": ["123456789012"] }
}

In a delegated administrator account, EventBridge rules can receive applicable findings from member accounts. Record whether the rule operates in a member account, administrator account, or Security Hub CSPM home Region so an investigation does not create duplicate tickets. Match on stable source fields, keep the full finding ID in the ticket, and verify that updates to an existing finding update the same case. GuardDuty EventBridge event schema and multi-account guidance

Give delivery its own failure path. EventBridge can send failed target invocations to a dead-letter queue; monitor that queue and the failed-invocation metric, then define who retries or repairs a delivery problem. Otherwise a correctly detected finding can disappear between the rule and the human responder. EventBridge dead-letter queues

Only after that path works should the team consider an automated containment action. Define the exact finding type, resource class, preconditions, approver, action, evidence to preserve, rollback procedure, and exception route. A Lambda function or Step Functions workflow can carry out a preapproved action, but it needs scoped permissions and a failure path. The AWS Security Pillar's least-privilege guidance applies to these automation identities as well as to people.

An example progression is notify → request approval → act on a specific resource → verify → close or escalate. At the approval step, show the source finding, affected account, expected customer impact, and proposed action. AWS Systems Manager Automation has an aws:approve step that can pause a runbook for designated approvers; AWS notes that this action does not support multi-account and Region automations, so do not assume it solves a cross-account approval design. A ticket or other authorization workflow may be needed before invoking a narrowly scoped runbook in the member account.

Test delivery and revisit the rules

Use GuardDuty sample findings to check that a chosen finding type reaches the intended rule and ticket destination. Then confirm a human receives the notification, the ticket links to the source finding, duplicate updates behave as expected, and a failed target invocation is visible. A sample finding may be treated differently by downstream services, so test those integrations under their own documented procedure.

Review missed account or Region coverage, findings without owners, ticket volume by rule, repeated false alarms, and time to acknowledgment. Tune a rule based on observed cases while retaining a record of what it excluded. The practical goal is a detection path the team can explain and operate, not a promise that automation will find every threat.

Frequently asked questions

Which findings should be automatically remediated?

Start with actions whose target can be identified unambiguously, impact is understood, and rollback has been tested. Many findings are better routed for investigation first. A finding's severity alone does not prove that an action is safe; account, resource, workload owner, and current activity matter.

How does response work across multiple AWS accounts?

A delegated administrator can receive member findings, but the responder's workflow still needs permission and a clear target in the member account. Design the central rule, approval, and member-account role together. Test a finding from more than one account and Region, including an account added after setup. Do not give the central function broad write access merely to simplify a demo.

How do we reduce false positives without creating a blind spot?

Track which finding type and account produce repeat cases, compare them with real investigation outcomes, and change only the narrowest matching condition. Keep a record of excluded events and a review date. After tuning, generate representative test findings and verify that an urgent case still reaches a responder.

Get launch and security updates Get updates

Choose the launch news or practical security notes you want.

Choose one or both. You can unsubscribe at any time. Privacy details.

Your email choices are saved.

We’ll send only the updates you selected.