Two real cloud incidents, read as a defender
Unit 5 of 5 in Cloud logging, detection and response.
You will be able to read a real cloud incident and name, for each stage, the log that shows it, the alert that fits and the first response action.
Lesson
Capital One, 2019: a role with too much reach
Capital One states that on July 19, 2019 it determined an outside individual had gained unauthorized access and obtained personal information about its credit card customers and applicants. It says about 100 million people in the United States and about 6 million in Canada were affected, and that the individual was captured by the FBI.
KrebsOnSecurity reported, from a source with direct knowledge of the investigation, how it happened. A misconfigured open-source web application firewall running in Capital One's AWS environment could be tricked into relaying requests to the cloud metadata service, which hands out temporary credentials to a server. The role attached to that firewall had too many permissions: it could list the files in any storage bucket and read each of them. The article names the technique server side request forgery. Amazon's statement in the same article says the intrusion was caused by a misconfiguration of a web application firewall, not the underlying infrastructure. We present the account as reported, not as a court finding.
Capital One: where the log, the alert and the fix sit
Read the story as a defender would. The role's temporary credentials were used to list buckets and read objects. Bucket listing is a management action, but object reads are data events, and AWS says data events are not logged by default, so a team that had not switched them on would have no object-level record of what was read.
Credentials meant for one server being used from somewhere else is the pattern AWS describes GuardDuty as detecting: credentials created for an EC2 instance through an instance role but used from another account. A custom rule fits the same idea: this role normally works from inside the cloud network, so a listing call from outside it is unusual. The Detection Lab task for this incident has you write exactly that rule. The deeper fix is the one the cloud class on identity taught: a role with only the access it needs.
Snowflake customers, 2024: valid logins and no second factor
Mandiant describes a campaign against customers of the Snowflake data platform, aimed at data theft and extortion. It reports that every incident it responded to was traced to compromised customer credentials, and that it found no evidence of a breach of Snowflake's own enterprise environment. The credentials mostly came from infostealer malware on systems that were not owned by Snowflake, and some dated back to 2020.
Mandiant lists three main factors. The accounts did not have multi-factor authentication, so a valid username and password was enough. Credentials had not been rotated or updated years after being stolen. And the customer instances had no network allow lists restricting access to trusted locations. Mandiant also reports that at least 79.7 percent of the accounts used in the campaign had prior credential exposure, that it and Snowflake notified approximately 165 potentially exposed organizations, and that contractors' unmonitored laptops were one way credentials were lost. CISA's alert of June 3, 2024 passed on Snowflake's recommendation to query for unusual activity and hunt for malicious activity.
Snowflake: what the logs could have shown
This incident is a valid-account case, so the best signals compare behaviour with the account's normal. A login from a new location or tool, by an account that had never used that tool, with no second factor, followed by a listing of tables and a very large export in a short time, is a pattern the Detection Lab teaches under behavioral detection. ATT&CK's description of cloud account abuse lists the same kinds of analytic: unusual locations and API use beyond normal scope.
Retention mattered too. Mandiant noted that the default retention of the relevant Snowflake views allowed threat hunting across the past year (365 days), which is why a team that looked early could look back to the first suspicious login. A log kept for only seven days would not allow that. That is why the first unit asks 'how long is it kept?' before any alert is written.
A method you can reuse: the evidence table
For any incident you read, make a four-column table with one row per stage: what happened, which log would show it (and whether it is on by default), which alert would fire (and what its false positives are), and what the first response action is. Capital One's rows lean on data events and role misuse. Snowflake's lean on sign-in context, large exports and retention.
The Chain Replay for each incident gives you the stages and lets you switch controls on and off. Your table is the bridge between the two ideas of this class: what the cloud records, and what you do about it. The capstone asks you to build one.
Key points
- Capital One (as reported): a firewall misconfiguration let a server fetch temporary credentials for a role that could list and read many buckets.
- Object reads are data events: if they are not switched on, the record of what was read is missing.
- Snowflake customers (per Mandiant): valid stolen credentials, no MFA, no network allow lists and old credentials never rotated.
- Compare behaviour with the account's baseline; valid logins carry no malware signature.
- Retention decides how far back you can look; the evidence table links stage, log, alert and response.
Sources
- Capital One: Information on the Capital One Cyber Incident
- KrebsOnSecurity: What We Can Learn from the Capital One Hack
- AWS CloudTrail User Guide: CloudTrail concepts
- AWS CloudTrail User Guide: Security best practices in AWS CloudTrail
- Mandiant (Google Cloud): UNC5537 Targets Snowflake Customer Instances for Data Theft and Extortion
- CISA: Snowflake Recommends Customers Take Steps to Prevent Unauthorized Access
- MITRE ATT&CK: Valid Accounts: Cloud Accounts (T1078.004)
Practice in the labs
Practise the two patterns this unit found: valid-account abuse and mass export. Use one Detection Lab task and two offline labs.
- Detect MFA push fatigue in sign-in logs, then stop it with number matching and rate limits: You tune a rule that finds an account hammered with sign-in prompts, a way a second factor gets worn down. Runs offline.
- Detect anomalous logins with a behavioral baseline: build a UEBA analytic from scratch: You rank logins by how far they stray from each user's own baseline, the comparison that valid-account abuse needs. Runs offline.
- Detect data exfiltration from network flow logs (build the volumetric analytic from scratch): You learn each host's normal data volume and find the needle days, the network-side view of a large export. Runs offline.
Also try, in the simulators
- Find one account pulling many large result sets (Detection Lab task): You write a rule that finds one account pulling many large result sets in a short time, the same shape as a mass export from a cloud data store, taken from a different incident.
Knowledge check
- According to Mandiant, what did the Snowflake campaign's victims have in common? Answer: Compromised customer credentials, no MFA, and no network allow lists in the affected accounts. Mandiant traced every incident it responded to to compromised customer credentials, found no evidence of a breach of Snowflake's own environment, and listed missing MFA, unrotated credentials and missing network allow lists as the three main factors.
- Why might a team investigating the Capital One-style listing and reading of bucket files find no record of which objects were read? Answer: Object-level reads are data events, which are off by default. AWS documents object-level API activity as data events and says they are not logged by default, so the team must have chosen to record them in advance.
- Why do valid-account intrusions need behaviour-based detection more than hash matching? Answer: The login is genuine, so there is no malicious file to match; only the pattern differs from normal. With stolen valid credentials there is no malware signature on the victim's system. ATT&CK's analytics for cloud account abuse compare activity with normal for the account instead.
- What does the evidence table add to a Chain Replay? Answer: It links each stage to the log that shows it, the alert that fits and the first response action. A replay shows stages; the table makes you decide for each stage what evidence exists, what alert would fire and what you would do, which is the practical skill of the class.
Back to the syllabus or see all classes.
Related
- Cloud logging, detection and response
- Detect MFA push fatigue in sign-in logs, then stop it with number matching and rate limits
- Detect anomalous logins with a behavioral baseline: build a UEBA analytic from scratch
- Detect data exfiltration from network flow logs (build the volumetric analytic from scratch)
- All classes
- Free cyber labs