aws-gd-explicit-delete-detector

Principal holds effective IAM permission to delete GuardDuty detector.

explicit aws emits HasPermission

match (effective permission)

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

emit

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

Narrative

{principal.name} holds effective permission to delete GuardDuty detector {detector.name} (guardduty:DeleteDetector).

Raw rule rules/explicit/aws-guardduty.yaml

id: aws-gd-explicit-delete-detector
emits: HasPermission
description: Principal holds effective IAM permission to delete GuardDuty detector.
match_effective_permission:
  action: guardduty:DeleteDetector
  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:DeleteDetector
  conditions:
  - iam_permission
  narrative: '{principal.name} holds effective permission to delete GuardDuty detector {detector.name}
    (guardduty:DeleteDetector).'
move · open · esc close