In addition to detecting threat actors in the cloud, many organizations continue to struggle with baseline posture. What’s most important about moving detection capabilities away from atomic indicators and toward statistical and behavioral activity as stated in the pyramid of pain is understanding where the current posture resides. In this post, baselines mean historical insight into previous normal, day-to-day behaviors, and benchmarks are simply the concepts for establishing a minimum security profile for assets in the cloud. Without these two foundations, writing detections will become exponentially more difficult as migrations mature and vendor services increase in count.
Here are some ideas for baselining activity:
- Noting application programming interfaces (API) that the entity or identity and access management (IAM) user doesn’t normally call
- Abnormal spike in the number of API calls (failed and successful)
- Amount of data normally exfiltrated from data buckets
- Days of the week high value targets are accessed and by what users
- User agent anomalies
- Compute instances stood up (or autoscaled) on average
Depending on the organization, having data for about 45 to 60 days (in some cases 6 to 12 months) should give an accurate picture of what activity is normal and what activity is unusual. The maturity level of your baseline should also mature over time.
To develop benchmarks, organizations can leverage standards such as those from the Center for Internet Security (CIS), Security Technical Implementation Guide (STIG), and the National Institute of Standards and Technology (NIST). These standards serve as a manual for security configuration best practices for public cloud vendors. Although security issues caused by user error and misconfigurations have decreased over the years, partly due to vendors attaching "dummy-proof" security measures to resources (e.g., AWS S3 now automatically encrypts all new objects added on buckets on the server side, using AES-256 by default), they still pose a large threat to resources in the cloud.
Together, baselines and benchmarks can help organizations deploy mature detections, minimize analysts’ fatigue, and develop effective and efficient response playbooks.