Spotting Anomalous Activity Patterns
Recognize unusual behavior that signals a possible compromise.
Spotting Anomalous Activity Patterns is a free AWS Security Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AWS Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Recognizing Trouble
The payoff of investigation is recognizing patterns that signal a compromise. Detective surfaces these, but you must know what they look like. This lesson covers the anomalous patterns that most often mean an attacker is at work in an AWS environment.
Unusual API Call Volume
A sudden spike in API calls from an entity that is normally quiet is a classic red flag. Attackers enumerate resources and make many calls quickly. Detective's baseline comparison makes such spikes obvious against the entity's normal rhythm.
New Geographic Locations
Activity from a country or IP never seen before for an entity often means stolen credentials. A role used only from your corporate Region suddenly acting from another continent is highly suspicious, especially combined with unusual actions.
Unusual API Actions
Beyond volume, watch the kinds of actions. An identity that normally only reads data suddenly creating users, attaching policies, or deleting logs signals privilege abuse. New, sensitive actions are stronger evidence than mere call count.
Reconnaissance Signatures
Early attack stages show as reconnaissance: many describe and list calls, port probing, or failed access attempts as the attacker maps your environment. Spotting recon early, before the attacker acts, gives you the best chance to contain quickly.
Impossible Travel
An entity active from two distant locations within an impossibly short time, impossible travel, indicates the credential is being used by more than one party. This pattern is a near-certain sign that a secret has leaked and is being abused.
Disabling Security Controls
A high-confidence indicator is an actor turning off security: disabling GuardDuty, stopping CloudTrail, deleting logs, or changing config rules. Legitimate users rarely do this. Detective and GuardDuty both flag attempts to blind your defenses.
Data Exfiltration Patterns
Large or unusual outbound data transfers, especially to unfamiliar destinations, suggest exfiltration. In the graph this appears as spikes in network volume or connections to new external IPs. Correlating this with a compromised entity confirms the theft.
Correlating Multiple Signals
One anomaly may be benign; several together rarely are. A new location plus a call spike plus log-disabling is a strong, correlated story of compromise. Detective's graph excels at letting you connect these signals into a confident conclusion.
Lateral Movement
A dangerous pattern is lateral movement: an attacker who compromises one resource using it to reach others, hopping between instances, roles, or even accounts. In the behavior graph this shows as a chain of new connections spreading outward from the first victim. Spotting lateral movement early is critical because it reveals the attack is expanding, not contained.
Avoiding False Positives
Not every anomaly is an attack. A new deployment, a relocated employee, or a fresh automation job can all look unusual at first. The discipline is to correlate signals and check context before acting: does the activity align with a known change, and do multiple indicators agree? Investigating rather than reacting prevents wasted effort and unnecessary disruption.
Quick Check
Identify a compromise pattern.
Recap
Anomalous patterns that signal compromise include API-call spikes, activity from new geolocations, unusual or sensitive API actions, reconnaissance, impossible travel, attempts to disable security controls, and data-exfiltration spikes. A single anomaly may be benign, but correlating several together gives a confident conclusion that drives containment.
Frequently asked questions
Is the “Spotting Anomalous Activity Patterns” lesson free?
Yes — the full text of “Spotting Anomalous Activity Patterns” is free to read here on the web, and the AWS Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AWS Security Academy course, upgrade to CoddyKit PRO.
What will I learn in “Spotting Anomalous Activity Patterns”?
Recognize unusual behavior that signals a possible compromise. You practise AWS Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start AWS Security Academy?
No prior experience is required. AWS Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Spotting Anomalous Activity Patterns” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this AWS Security Academy lesson?
Yes. Every AWS Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- How Detective Builds a Behavior Graph
- Pivoting from a GuardDuty Finding
- Analyzing Entities and Time Windows
- Spotting Anomalous Activity Patterns