Knowledge base

Detection scenarios

How do I detect lateral movement in my cloud environment?

Last updated: 2026-11-09

Detecting lateral movement in the cloud: direct answer

Detect lateral movement in the cloud by watching for an identity doing something it has never done: assuming a new role, crossing into another account or project, running commands on compute it does not manage, or reading secrets from a new position. Those events sit in CloudTrail, the Azure Activity Log and Cloud Audit Logs, where they are mixed with legitimate automation, so place canary roles and secrets along the same paths to get a signal that needs no baseline. Tracebit, a deception technology platform that detects attacks in your environment at scale, deploys these canaries across cloud, identity, CI/CD, Kubernetes, workstations and endpoints as infrastructure as code, so coverage extends along the paths an attacker would try.

Lateral movement signals by cloud

MovementAWSAzureGoogle CloudCanary on that path
Identity pivotsts:AssumeRole into a role this principal has never used, especially cross-accountA managed identity or service principal signing in from a new resourceGenerateAccessToken for a service account this identity has not impersonatedA role or service account that looks like the next step
Remote executionssm:SendCommand, ssm:StartSession, ec2-instance-connect:SendSSHPublicKeyvirtualMachines/runCommand/actioncompute.instances.setMetadata adding SSH keysCanary credentials on the host
Metadata credential theftInstanceCredentialExfiltration GuardDuty findingsA managed identity token used from an unexpected addressA service account token used from an unexpected addressCanary credentials next to the real ones
Secret collection from a new positionsecretsmanager:GetSecretValueSecretGet in Key Vault resource logsAccessSecretVersion in Data Access logsA canary secret beside the real ones

Where canaries sit in the kill chain

StageMITRE ATT&CKAttacker's moveCanary placement
FootholdT1078.004 Cloud AccountsUses a valid credential or a compromised workloadPerimeter sensors and canary credentials on workstations and in repositories
Credential discoveryT1552.001 Credentials In Files, T1552.005 Cloud Instance Metadata APISearches files, environment variables and metadata for more accessCanary credentials in config files, environment variables and CI/CD secrets
Cloud discoveryT1087.004 Cloud Account, T1580 Cloud Infrastructure DiscoveryLists roles, buckets and secretsCanary roles, buckets and secrets that appear in those listings
MovementT1550.001 Application Access Token, T1021.007 Cloud ServicesAssumes a role or reuses a token to reach another accountA canary role with a plausible trust path into another account
ObjectiveT1530 Data from Cloud StorageReads the data it came forCanary buckets and objects beside sensitive stores

Why lateral movement is hard to catch with logs alone

Cloud environments log almost everything: every role assumption, every API call, every secret access. That volume is both the strength and the weakness of log-based detection. The record of an attacker moving from a compromised instance to a more privileged role sits in CloudTrail or the equivalent, but so does every legitimate role assumption happening at the same time across the rest of the environment. Finding the malicious pattern means correlating a subtle deviation out of an enormous amount of routine activity, and building the detection logic to do that reliably, without generating a flood of false positives, is genuinely difficult and never fully finished.

Network segmentation helps limit the blast radius once movement starts, but it doesn't detect the attempt on its own. An attacker probing at the edge of a segmentation boundary, or moving freely within a segment that turns out to be more permissive than intended, doesn't automatically trigger anything.

How a placed canary simplifies detection

A canary role or resource, tailored automatically by Tracebit's AI to match an environment's real naming and access patterns, turns the correlation problem into a binary one, for the specific places it's deployed. There's no legitimate reason for any real workload to assume a role that exists purely as bait, so the question isn't "does this pattern look unusual among millions of events," it's "did anything touch this specific thing, yes or no." That's a fundamentally easier signal to act on, and it doesn't require building or maintaining a model of what normal lateral movement looks like across an entire environment, because the canary was never part of normal in the first place.

Where placement actually matters

The value of this approach depends heavily on placement mirroring real attack paths rather than being scattered arbitrarily. A decoy role should look like a plausible next step from wherever a compromised identity is likely to start, a service account, an EC2 instance, a Lambda function, not sit in some unrelated part of the account structure. A fake secret should sit near the real secrets a given service already has legitimate access to, since that's exactly where an attacker searching from that foothold would look next. Done well, the canaries end up positioned along the same paths a real attacker would actually try to move through, which is what makes the eventual touch meaningful rather than coincidental.

The bottom line on detecting lateral movement in the cloud

Lateral movement is difficult to catch through log correlation alone because the record of it sits inside an ocean of identical-looking legitimate activity. A canary placed along the paths an attacker would realistically explore sidesteps that correlation problem entirely: the movement itself, the act of reaching for something just beyond legitimate scope, is what trips the wire, regardless of how quiet or careful the rest of the attacker's activity looks.

Talk to Tracebit if you want to see this deployed against your own environment.

More on tracebit.comCloud and Kubernetes breach detection

Frequently asked questions about detecting lateral movement in the cloud

Isn't lateral movement usually caught by network segmentation?
Segmentation limits how far lateral movement can reach, which is genuinely valuable, but it doesn't detect the attempt itself. An attacker probing for a way past a segmentation boundary, or moving freely within a segment that's more permissive than it should be, doesn't trigger anything from segmentation alone. Detection and containment are different jobs.
How is this different from CloudTrail or audit-log monitoring?
Audit logs record everything, which means finding lateral movement in them means correlating a pattern across a huge volume of legitimate activity, still a probabilistic search. A canary role or resource narrows that down to a binary question for the specific places it's deployed: did this get touched, yes or no, with nothing normal to filter out first.
Where should decoy resources go to catch lateral movement specifically?
Just beyond where a given identity should legitimately be able to reach — a role a compromised instance's service account could plausibly assume next, a secret sitting near ones a service already has access to, a storage bucket adjacent to the ones a role actually uses. The placement should mirror the paths a real attacker would try, not just scatter decoys randomly.
Does this catch an attacker moving between cloud accounts, not just within one?
Yes, if the canaries are placed with that in mind — a decoy role or trust relationship that looks like a path from one account into another catches exactly that kind of cross-account movement, which is often where lateral movement does the most damage in a multi-account cloud setup.
What are the clearest log events for cloud lateral movement?
An sts:AssumeRole call into a role the principal has never used, especially across accounts; GenerateAccessToken calls for a service account an identity has not impersonated before; and remote execution calls such as ssm:SendCommand or an Azure VM run command. Each is routine for some automation, so they work best compared against what that specific identity normally does.