Detection scenarios
How do I detect reconnaissance activity before an attacker moves laterally?
Detecting reconnaissance activity: direct answer
Detect reconnaissance by looking in cloud audit logs for identity probes, bulk enumeration of IAM, compute, storage and secrets, and runs of access-denied errors, then placing canaries that appear in the same listings an attacker relies on. Enumeration calls are also made constantly by administrators and scanners, so log-based detection works best on the unusual identity or sequence, and a canary adds a signal the moment something reaches for it. Tracebit, a deception technology platform that detects attacks in your environment at scale, deploys canaries to be found this way. Tracebit detected two separate third-party red team exercises against Riot Games, whose security team defends the infrastructure behind 180 million-plus monthly active players, the more recent one at the very beginning of the engagement.
Reconnaissance signals by activity
| Activity | MITRE ATT&CK | AWS | Azure | Google Cloud or Kubernetes |
|---|---|---|---|---|
| Checking who I am and what I can do | T1069.003 Cloud Groups | sts:GetCallerIdentity, iam:ListAttachedUserPolicies | Role assignment reads from a new identity | testIamPermissions; selfsubjectrulesreviews in Kubernetes |
| Enumerating identities | T1087.004 Cloud Account | iam:ListUsers, ListRoles, GetAccountAuthorizationDetails | Bulk Microsoft Graph reads, Suspicious API Traffic in Entra ID Protection | ListServiceAccounts, SearchAllIamPolicies |
| Enumerating infrastructure | T1580 Cloud Infrastructure Discovery | ec2:DescribeInstances across every region | Bulk resource reads from a new identity | compute.instances.list across projects |
| Enumerating storage | T1619 Cloud Storage Object Discovery | s3:ListBuckets, ListObjectsV2 | Microsoft.Storage/storageAccounts/listKeys/action | storage.buckets.list |
| Enumerating secrets | T1555.006 Cloud Secrets Management Stores | secretsmanager:ListSecrets | SecretList in Key Vault resource logs | ListSecrets; list on secrets in Kubernetes |
| Testing permissions blindly | T1526 Cloud Service Discovery | Runs of AccessDenied across many services | Runs of authorization failures | Runs of PERMISSION_DENIED |
Logging defaults shape what you can see. AWS trails record read-only management events unless a trail is configured otherwise, while Google Cloud treats most list calls as ADMIN_READ Data Access logs, which are off by default. GuardDuty's Discovery:IAMUser/AnomalousBehavior finding carries a default severity of Low, so review that queue deliberately or it will age out unread. Tool names in user-agent strings, such as Pacu or ScoutSuite, are worth an alert and easy for an attacker to change.
Why reconnaissance is a hard stage to catch with ordinary monitoring
Reconnaissance doesn't necessarily look aggressive. Listing S3 buckets, describing IAM roles, querying what a credential has access to: these are all ordinary API calls that legitimate automation and administrators make constantly. A fast, loud reconnaissance sweep can trip volume-based thresholds, but a patient attacker doing the same enumeration slowly, spaced out, a few calls at a time, can stay well under whatever threshold a monitoring tool is tuned to flag. The individual actions aren't inherently suspicious. What's suspicious is who's doing them and why, which is exactly the context most log-based monitoring doesn't have.
How a canary catches the looking
A canary, kept convincing by Tracebit's AI as an environment's real resources change, sidesteps the volume problem entirely, because it doesn't care how much enumeration happened before the decoy got included in it, or how slowly the attacker moved. It only cares whether the decoy showed up in what got listed and then got touched. An attacker enumerating a cloud account's buckets, roles, and secrets doesn't get to skip past the fake ones without noticing them, because from the outside, before they've been touched, a well-built decoy looks identical to everything real around it. The moment curiosity or a scripted enumeration tool reaches for it specifically, that's the signal, regardless of how careful or quiet the reconnaissance leading up to it was.
Where placement matters most for this specific stage
Catching reconnaissance depends more on discoverability than almost any other use of a canary. A decoy has to actually appear in the listing calls, the API responses, the directory enumeration an attacker would run, or it never gets the chance to be found in the first place. That means placing decoys inside the actual inventory an attacker would see: a bucket that shows up in a full account listing, a role that appears when IAM roles get enumerated, a secret that's reachable through the same paths real secrets are reachable through. A decoy tucked away somewhere no enumeration would ever surface it doesn't catch reconnaissance, it just sits unused.
The bottom line on detecting reconnaissance activity
Reconnaissance is the point in an intrusion where an attacker is still deciding what to do next, which makes it the earliest and most valuable place to catch them. A decoy that shows up naturally in the same listing and enumeration an attacker relies on to make that decision doesn't need to distinguish careful reconnaissance from careless scanning. It only needs to be found, and looked at, the way everything else around it gets looked at.
Reach out to Tracebit to talk through what this would take to deploy.
More on tracebit.comCloud and Kubernetes breach detectionFrequently asked questions about detecting reconnaissance activity
- Why is catching reconnaissance better than catching the lateral movement that follows it?
- Time. Reconnaissance happens before an attacker commits to a specific next step, so catching it buys a security team the most possible runway to respond before real damage happens. Waiting until lateral movement is underway means the attacker has already decided where they're going next.
- Doesn't network monitoring already catch scanning and enumeration?
- It can catch obvious, noisy scanning — a fast port sweep, an unusually high volume of API calls in a short window. A careful attacker doing slow, low-volume enumeration, listing a few resources at a time, spaced out, can stay under the thresholds most monitoring is tuned to flag.
- What makes a good decoy for catching reconnaissance specifically?
- Discoverability matters more here than almost anywhere else. A decoy that's only found through the same listing and enumeration commands an attacker would actually run — listing buckets, describing roles, querying an API for available resources — catches recon directly. A decoy buried somewhere nobody would ever enumerate isn't a canary, it's just noise nobody trips.
- Does this only work against automated scanning, or does it catch a careful human attacker too?
- Both, and for the same reason. Whether reconnaissance is done by a script or a person manually exploring an environment, the underlying action, listing or querying something to see what's there, is the same. A decoy that shows up in that listing gets found either way.
- Which API calls most often indicate cloud reconnaissance?
- On AWS, sts:GetCallerIdentity from a new source followed by iam:GetAccountAuthorizationDetails, ListRoles, ListBuckets or secretsmanager:ListSecrets. On Google Cloud, testIamPermissions and SearchAllIamPolicies. In Kubernetes, creating selfsubjectrulesreviews from inside a pod. A long run of access-denied errors across many services is also a strong sign of an attacker testing what a credential can do.