hkb-forward-guardduty
Fires on: GuardDuty detector and member changes.
Run the common pre-checks first.
Symptoms
An email from hkb security alert: SECURITY EVENT aws.guardduty <call> in account <member>. A detector was deleted or changed, or a member was disassociated or stopped. This is a change to GuardDuty itself, not a finding.
Pre-checks
- Read
errorCode. SCP-03 denies deleting a detector and leaving the administrator account in every member account, so those calls are denied. UpdateDetectorand the member calls (DeleteMembers,DisassociateMembers,StopMonitoringMembers) aren't denied: they are the Security account's administrator calls. One made by the pipeline whilehkb-security-serviceschanges is expected.
Resolution
- Denied: identify the caller.
- Succeeded, unplanned: the account may be unwatched. From the Security account, check its membership (
aws guardduty list-members --profile ro-hkb-security), re-enable the detector or re-add the member, and confirm auto-enable is stillALL.
Post-checks
The member shows Enabled in the Security account's member list, and the control tests' GuardDuty checks pass.
Rollback
Not needed: re-adding a member restores the original state.
Alert details
| Property | Value |
|---|---|
| Runs in | every member account, both Regions, forwarded to the hkb-security-events bus in Security |
From hkb security alert: SECURITY EVENT <src> <what> in account <account>, <region>, at <time> by <who>. |
|
| Source | baseline/hkb-baseline-events.yaml, resource GuardDutyRule |
The event pattern, as deployed:
EventPattern:
source: [aws.guardduty]
detail-type: [AWS API Call via CloudTrail]
detail:
eventSource: [guardduty.amazonaws.com]
eventName: [DeleteDetector, UpdateDetector, DisassociateFromAdministratorAccount, DisassociateFromMasterAccount, DeleteMembers, DisassociateMembers, StopMonitoringMembers]
Page information
- Owner
- Detection and Response
- Status
- current Current: generated from the templates and records in the repository at this build.
- Generated from
site/content/runbooks.md,baseline/hkb-baseline-events.yaml- Linked from
- Runbooks, Member account security events
- Plain markdown
- /wiki/runbooks/members/hkb-forward-guardduty/index.md