🔒 Security & Compliance

CloudTrail Security Alerting Stack

CloudWatch metric filters and alarms on CloudTrail for root login, console login without MFA, IAM policy changes, and security group modifications. SNS notifications included.

CloudTrail Security Alerting Stack

CloudTrail records everything, but without alerting you are searching logs after the fact. This stack installs CloudWatch metric filters on your CloudTrail log group and triggers SNS alarms the moment a high-risk event occurs.

Alerts Included

AlertWhy It Matters
Root account loginRoot should never be used for daily operations
Console sign-in without MFACredential compromise indicator
IAM policy changesPrivilege escalation vector
IAM root access key usageRoot keys should not exist
CloudTrail config changesAttacker covering tracks
S3 bucket policy changesData exfiltration setup
Security group modificationsFirewall rule weakening
Network ACL changesLateral movement enablement
VPC Gateway / route table changesTraffic interception
AWS Config service changesCompliance tampering

Notification Options

All alarms publish to a central SNS topic. The stack includes pre-wired subscriptions for email (direct SES), Slack (via Lambda webhook forwarder), and PagerDuty (via SNS HTTPS endpoint). Enable any or all via CloudFormation parameters.

What You Get

  • cloudtrail-alerting.yaml — CloudFormation template with all 10 metric filters and alarms
  • slack-forwarder/ — Lambda that reformats SNS payloads into Slack Block Kit messages
  • test-alerts.sh — triggers synthetic CloudTrail events to verify end-to-end alert delivery
  • README.md — parameter reference and tuning guide for noisy alerts

Requirements

An existing CloudTrail trail publishing to a CloudWatch Logs log group. Compatible with the AWS Account Security Bootstrap product deployed in the same account.

$12.00
  • Instant download after purchase
  • Link valid for 48 hours
  • Up to 3 downloads per license
  • Secure, private delivery
Payments secured by Stripe