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

Sources

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.

Also try, in the simulators

Knowledge check

  1. 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.
  2. 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.
  3. 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.
  4. 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