dcg

AWS SES

email.ses

Protects against destructive AWS Simple Email Service operations like identity deletion, template deletion, and configuration set removal.

  • 10blocking rules
  • 25safe patterns
  • 2Critical
  • 6High
  • 2Medium
~/.config/dcg/config.toml
[packs]
enabled = ["email.ses"]

Evaluated when a command contains ses, sesv2.

Blocking rules

Each rule ID is email.ses:<name>. Use it in allowlists and [policy.rules].

  1. ses-delete-receipt-rule-set

    Critical

    aws ses delete-receipt-rule-set removes a receipt rule set.

    Explanation
    Deleting a receipt rule set stops all email receiving configured by that set. Incoming emails may bounce or be lost. This affects all receipt rules in the set. Safer alternatives: - aws ses describe-receipt-rule-set: Review rules first - Create replacement rule set before deletion - Test with a non-active rule set
  2. sesv2-delete-dedicated-ip-pool

    Critical

    aws sesv2 delete-dedicated-ip-pool removes a dedicated IP pool.

    Explanation
    Deleting a dedicated IP pool releases the IPs back to the shared pool. Email reputation built on these IPs is lost. Configuration sets using this pool will fall back to shared IPs. Safer alternatives: - Migrate configuration sets to a new pool first - Document IP addresses and reputation metrics - Contact AWS support if IPs need to be preserved
  3. ses-delete-configuration-set

    High

    aws ses delete-configuration-set removes a configuration set.

    Explanation
    Deleting a configuration set removes tracking and event destinations. Applications using this set will lose metrics, bounce handling, and complaint processing. Safer alternatives: - aws ses describe-configuration-set: Review configuration - Migrate applications to a new configuration set first - Document event destinations before deletion
  4. ses-delete-identity

    High

    aws ses delete-identity removes a verified email identity.

    Explanation
    Deleting a verified identity prevents sending from that address or domain. Applications using this identity will fail to send emails. Re-verification requires DNS changes and propagation time. Safer alternatives: - aws ses list-identities: Review identities first - Check which applications use this identity - Create new identity before deleting old one
  5. ses-delete-receipt-rule

    High

    aws ses delete-receipt-rule removes a receipt rule.

    Explanation
    Deleting a receipt rule changes how incoming emails are processed. Actions like S3 storage, Lambda triggers, or SNS notifications will stop for matching emails. Safer alternatives: - aws ses describe-receipt-rule: Review rule configuration - Disable the rule before deleting - Ensure no critical workflows depend on this rule
  6. sesv2-delete-configuration-set

    High

    aws sesv2 delete-configuration-set removes a configuration set.

    Explanation
    Deleting a configuration set removes all event destinations, tracking options, and delivery settings. Applications using this set lose visibility into email delivery. Safer alternatives: - aws sesv2 get-configuration-set: Export configuration - Migrate to new configuration set first - Document all event destinations
  7. sesv2-delete-contact-list

    High

    aws sesv2 delete-contact-list removes a contact list.

    Explanation
    Deleting a contact list permanently removes all contacts and their preferences. Subscription management and list-based sending will fail. This cannot be undone. Safer alternatives: - Export contact list data before deletion - Check for active campaigns using this list - Use list segmentation instead of deletion
  8. sesv2-delete-email-identity

    High

    aws sesv2 delete-email-identity removes a verified email identity.

    Explanation
    Deleting a verified identity prevents sending from that address or domain. DKIM and SPF records become orphaned. Applications will fail until a new identity is verified. Safer alternatives: - aws sesv2 get-email-identity: Review identity configuration - Verify replacement identity before deletion - Update applications to use new identity first
  9. ses-delete-template

    Medium

    aws ses delete-template removes an email template.

    Explanation
    Deleting a template breaks any applications that reference it. Emails using this template will fail to send until the template is recreated. Safer alternatives: - aws ses get-template: Export template before deletion - Verify no active campaigns use this template - Create replacement template before deleting
  10. sesv2-delete-email-template

    Medium

    aws sesv2 delete-email-template removes an email template.

    Explanation
    Deleting a template breaks any send operations referencing it. Bulk email sends and transactional emails using this template will fail. Safer alternatives: - aws sesv2 get-email-template: Export template content - Check for active campaigns using this template - Version templates rather than deleting

Safe patterns

Checked first. A command that matches one is never blocked by this pack.

  • ses-list-identities
  • ses-list-templates
  • ses-list-configuration-sets
  • ses-list-receipt-rules
  • ses-list-receipt-rule-sets
  • ses-get-identity-verification-attributes
  • ses-get-identity-dkim-attributes
  • ses-get-identity-notification-attributes
  • ses-get-template
  • ses-describe-configuration-set
  • ses-describe-receipt-rule
  • ses-describe-receipt-rule-set
  • ses-get-send-quota
  • ses-get-send-statistics
  • sesv2-list-email-identities
  • sesv2-list-email-templates
  • sesv2-list-configuration-sets
  • sesv2-list-contact-lists
  • sesv2-list-dedicated-ip-pools
  • sesv2-get-email-identity
  • sesv2-get-email-template
  • sesv2-get-configuration-set
  • sesv2-get-contact-list
  • sesv2-get-dedicated-ip-pool
  • sesv2-get-account