Behavioral clustering reveals functional roles for 40,000 cloud identities
Unsupervised clustering of CloudTrail logs can reliably map cloud identities to their functional roles at scale.
Security & privacy Unit 42 14 Sep 2026 Measurement Real-world evidence
Published as “Unmasking Cloud Identities: From Behavioral Clustering to Automated Detection”
Why it matters
Provides a practical way to infer identity roles and detect anomalies without running heavy ML pipelines.
Summary
The team collected CloudTrail logs from over 40,000 identities across 125 AWS environments for two months and applied UMAP dimensionality reduction followed by HDBSCAN clustering. They identified distinct clusters that correspond to functional roles such as administrators, DevOps, and backup services, with the largest admin cluster containing about 5,000 identities. A lightweight logistic regression model distilled from the clusters can be implemented in SQL to classify identities in production, and the authors claim this improves detection of anomalous behavior.
What they found 2
- 94% of identities in the admin cluster performed ConsoleLogin
“roughly 94% of the identities invoked ConsoleLogin, an AWS Management Console sign-in event, as Figure 1 shows.”
- The admin cluster contains roughly 5,000 identities across 100+ projects
“Consisting of roughly 5,000 identities spanning over 100 cloud projects, it represents one of the largest, most dense clusters in our dataset”
Caveats 5
- The study is limited to AWS CloudTrail data and a two-month collection period
- Authors note that over-privileged identities can exist for years without causing issues, which may affect cluster interpretation
- Only AWS CloudTrail logs were analyzed; applicability to other providers is assumed but not demonstrated
- Clustering results depend on the chosen UMAP and HDBSCAN parameters, which are not exhaustively evaluated
- The lightweight SQL rules are derived from a subset of clusters and may miss nuanced behaviors
What’s new here 4
- Unsupervised UMAP + HDBSCAN pipeline to cluster cloud identities by behavior
- Demonstration that clusters align with functional roles like admin and DevOps
- Derivation of concise, L1-regularized logistic regression rules for role inference
- SQL-compatible heuristics enabling scalable, low-overhead detection