aws-gd-explicit-create-ipset

Principal holds effective IAM permission to create GuardDuty trusted-IP sets.

explicit aws emits HasPermission

match (effective permission)

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

emit

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

Narrative

{principal.name} holds effective permission to create GuardDuty trusted-IP sets on {detector.name}, suppressing network-based findings.

Raw rule rules/explicit/aws-guardduty.yaml

id: aws-gd-explicit-create-ipset
emits: HasPermission
description: Principal holds effective IAM permission to create GuardDuty trusted-IP sets.
match_effective_permission:
  action: guardduty:CreateIPSet
  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:CreateIPSet
  conditions:
  - iam_permission
  narrative: '{principal.name} holds effective permission to create GuardDuty trusted-IP sets on {detector.name},
    suppressing network-based findings.'
move · open · esc close