Skip to content

Deny guardduty:UpdateDetector in deny-disable-security-services SCP - #14

Merged
DustyStudy merged 1 commit into
mainfrom
fix/scp-deny-guardduty-update-detector
Sep 18, 2026
Merged

DustyStudy merged 1 commit into
mainfrom
fix/scp-deny-guardduty-update-detector

Conversation

@DustyStudy

@DustyStudy DustyStudy commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

guardduty:UpdateDetector can set a detector's Enable flag to false, disabling GuardDuty without using any of the calls the DenyDisableGuardDuty statement already denied. Adds it to all three copies of the policy:

  • policies/scp-guardrails/deny-disable-security-services.json
  • cloudformation/scp-guardrails/template.yaml
  • terraform/scp-guardrails/main.tf

Follow-up to the item left open in #13.

Trade-off

The same call is used for legitimate detector changes (finding publishing frequency, feature toggles), and CloudFormation issues it when an AWS::GuardDuty::Detector is updated. That includes the detector in this repo's member-baseline StackSet: creating it is unaffected, but later updates to it would be denied in any account this SCP covers. Exempt the StackSet execution role from the SCP, or change detector settings before attaching it. Documented in policies/scp-guardrails/README.md.

Verification

cfn-lint, terraform fmt/validate and JSON parsing pass locally. CI runs the full suite.

UpdateDetector can set Enable=false, disabling GuardDuty without any of
the previously denied calls. Added to the JSON, CloudFormation and
Terraform copies, and documented that it also blocks legitimate detector
changes (including CloudFormation updates of AWS::GuardDuty::Detector,
as used by the member-baseline StackSet).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@DustyStudy
DustyStudy merged commit 0e0334c into main Sep 18, 2026
3 checks passed
@DustyStudy
DustyStudy deleted the fix/scp-deny-guardduty-update-detector branch September 18, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant