aws-gd-explicit-create-filter

Principal holds effective IAM permission to create GuardDuty filters.

explicit aws emits HasPermission

match (effective permission)

{ "action": "guardduty:CreateFilter", "resource_arn_pattern": "arn:aws:guardduty:*:*:detector/*", "resource_type": "AWS::GuardDuty::Detector" }

emit

source typeIdentity
target typeSecurityService
source<principal>
target<detector>
permissionsguardduty:CreateFilter
conditionsiam_permission

Narrative

{principal.name} holds effective permission to create GuardDuty filters on {detector.name}, enabling finding suppression.

Raw rule rules/explicit/aws-guardduty.yaml

id: aws-gd-explicit-create-filter
emits: HasPermission
description: Principal holds effective IAM permission to create GuardDuty filters.
match_effective_permission:
  action: guardduty:CreateFilter
  resource_type: AWS::GuardDuty::Detector
  resource_arn_pattern: arn:aws:guardduty:*:*:detector/*
emit:
  source_type: Identity
  target_type: SecurityService
  source: <principal>
  target: <detector>
  permissions:
  - guardduty:CreateFilter
  conditions:
  - iam_permission
  narrative: '{principal.name} holds effective permission to create GuardDuty filters on {detector.name},
    enabling finding suppression.'
move · open · esc close