On November 28, 2025, Sysdig watched an attacker take test credentials from a public S3 bucket and have their own code running in the victim's Lambda function eight minutes later. Admin access followed in under ten.

That is fast, but it is not unusual. Unit 42 leaked keys to public GitHub on purpose and saw them used within five minutes. Clutch Security measured 6.6 minutes on average.

Industry observers note that most of us have no security team. This post is the setup I would do in an afternoon instead:. (Related: Industry News: Train a Sentence Embedding Model with 1B...)

Sources indicate that prices are for US East (N. Virginia), read on November 26, 2026.

CloudTrail delivers within about 5 minutes of an API call on average, and AWS says that time is not guaranteed. So this pipeline tells you at roughly minute five. Keep that number in mind for the last section. (Related: My Journey to a serverless transformers pipeline on Goo...)

All five commands are read-only.

CloudTrail's free 90-day event history already holds a lot. This is one account's console sign-ins, with the names changed. Two rows are the root user, and nothing on this page tells anyone.

Two results look like failures and are really findings:.

Industry observers note that create the trail in the console. The docs say all trails created there are multi-Region, and the console sets up the bucket policy for you.

GuardDuty has to be enabled per Region. The Regions you never deploy to are the ones an attacker will use, so enable all of them:.

It has been revealed that that loop changes your account, and the 30-day trial starts per Region when you run it. Check the Usage page in the GuardDuty console before the trial ends.

Save this as aws-security-alerts.yaml.

Deploy it in us-east-1 first (see trap 1 below), then confirm the subscription email SNS sends you:.

Industry observers note that what I verified, and what I did not. The template passes aws cloudformation validate-template, and both event patterns matched the right sample events in the test below. I have not deployed this exact stack to a live account, so I have not watched an email arrive from it. Deploy it to a sandbox account first.

AttachUserPolicy earns its place twice. It also fires when AWS quarantines a leaked key, because the quarantine is a policy attached to the user. The policy ARN is in the event's requestParameters.

Recent findings suggest that some of these are noisy on a busy account. AuthorizeSecurityGroupIngress fires for every rule, not just 0.0.0.0/0. Start with everything, then trim what your own pipeline does every day.

aws events test-event-pattern checks a pattern against a sample event without creating anything. This is how I tested the sign-in rule:.

According to recent reports, I ran nine cases across the two rules. Root sign-in, IAM user without MFA, StopLogging and CreateAccessKey matched. An IAM user with MFA, a failed login, a single sign-on session and DescribeInstances did not.

According to recent reports, 1. IAM lives in us-east-1. IAM, STS and CloudFront are global services, and CloudTrail records their events in US East (N. Virginia). A rule in eu-west-1 will never see CreateAccessKey. Root sign-ins land in us-east-1, us-east-2 or us-west-2. Deploy the stack in us-east-1, then in those two, then in every Region you run workloads in.

In a recent development, 2. MFAUsed is always No for single sign-on. AWS only sets it for IAM people and root. Without the IAMUser filter, every SSO login emails you.

It has been revealed that 3. S3 event names differ from the API. The API call DeletePublicAccessBlock appears in CloudTrail as DeleteBucketPublicAccessBlock or DeleteAccountPublicAccessBlock. Match the CloudTrail name.

Sources indicate that 4. Read-only calls need a different rule state. A rule in the default ENABLED state does not match read-only management events. To alert on something like GetSecretValue, set the rule's state to ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS. You also need a trail that is logging, or none of these rules receive anything.

Recent findings suggest that one more: the docs spell the sign-in detail-type two ways (AWS Console Sign In via CloudTrail and AWS Console Signin via CloudTrail). The pattern above matches on source: aws.signin so it does not depend on either.

AWS shipped two things that cover some of this:.

Sources indicate that you now get an email at about minute five. It is a block of JSON. It does not say whether that CreateAccessKey was your deploy pipeline or a stranger, and at 3 a.m. nobody reads it until morning.

In a recent development, that gap is the real work. Someone has to look at who did it, from where, and what else they did in the same few minutes. Staffing that around the clock takes 4.2 people per seat (168 hours in a week, 40 in a working one), which is about $542,556 a year at the US median analyst wage.

Disclosure: I work on Jutsu, which does that first investigation in software and asks before it acts. The longer version of this post, with the cost comparison and screenshots, is on the Jutsu blog.

Whatever you choose, decide who answers the alert. A rule nobody reads is a log.

What would you add to the event list? I left out RunInstances and PutRolePolicy to keep the noise down, and I am not sure that was right.

β†’ Read original article