<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/unmasking-cloud-identities-from-behavioral-clustering-to-automated-detection-p4z7ifbbc" -->

---
title: Unmasking Cloud Identities: From Behavioral Clustering...
description: Palo Alto Networks' Unit 42 team built a behavioral clustering model that analyzes AWS CloudTrail audit logs to map cloud identities (human, machine, and...
canonical: https://daily.dev/posts/unmasking-cloud-identities-from-behavioral-clustering-to-automated-detection-p4z7ifbbc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Unmasking Cloud Identities: From Behavioral Clustering to Automated Detection | daily.dev
og:description: Palo Alto Networks' Unit 42 team built a behavioral clustering model that analyzes AWS CloudTrail audit logs to map cloud identities (human, machine, and...
og:url: https://daily.dev/posts/unmasking-cloud-identities-from-behavioral-clustering-to-automated-detection-p4z7ifbbc
og:image: https://api.daily.dev/og/posts/p4z7iFBBc.png
og:image:alt: Unmasking Cloud Identities: From Behavioral Clustering to Automated Detection
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Unmasking Cloud Identities: From Behavioral Clustering to Automated Detection

**[Unit 42](https://daily.dev/sources/unit42)** · 16 min read · 0 upvotes · 0 comments

## Summary

Palo Alto Networks' Unit 42 team built a behavioral clustering model that analyzes AWS CloudTrail audit logs to map cloud identities (human, machine, and agent) to functional roles like administrators, DevOps, backup services, and security tooling. Using UMAP for dimensionality reduction and HDBSCAN for clustering across 40,000+ identities from 125 cloud environments, they identified distinct behavioral clusters and validated them via operation frequency, c-TF-IDF scoring, attribute mapping, and naming pattern analysis. They then distilled the clustering logic into a lightweight, interpretable logistic regression model with L1 regularization, simple enough to implement as standard SQL queries for scalable, continuous identity role classification without running a full ML pipeline. The approach aims to complement static IAM permission audits with actual behavioral context, helping detect anomalies like a compromised backup service suddenly performing administrative actions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://unit42.paloaltonetworks.com/behavioral-clustering-map-to-cloud-identities>

## Questions this post answers

### How can I identify the functional role of a cloud identity from AWS CloudTrail logs instead of relying on IAM permissions?

Behavioral clustering of CloudTrail activity can reveal an identity's true functional role by analyzing which API operations it actually invokes, rather than what its IAM policy permits. Unit 42 researchers vectorized over 40,000 identities across 125 cloud environments as boolean vectors of invoked operations, reduced dimensionality with UMAP using cosine similarity, then clustered with HDBSCAN to reveal reproducible groups like administrators, DevOps, CI/CD, backup agents, and security tools.

_Teams building anomaly detection on identity behavior can follow ongoing cloud security research on daily.dev._

### What percentage of identities in the AWS administrator cluster invoke ConsoleLogin?

Roughly 94% of identities in the administrator console user cluster invoked the ConsoleLogin operation, compared to fewer than 1% of identities in any other behavioral cluster. Around 60% of this cluster also invoked cost-related operations like GetCostAndUsage and GetCostForecast, which are triggered by default AWS Console behavior, reinforcing the cluster's identification as administrative console users.

_Security engineers tuning cloud detection rules can find similar behavioral benchmarks on daily.dev._

### How can a complex clustering model for cloud identity classification be turned into something runnable as a SQL query?

A logistic regression classifier trained on the original sparse boolean operation vectors, with L1 (Lasso) regularization to zero out irrelevant features, distills the clustering logic into a small set of operations with weighted coefficients. This weighted-sum scoring is simple enough to implement directly in standard SQL, letting organizations classify identity roles at scale without running a resource-intensive machine learning pipeline continuously.

_Engineers turning ML models into lightweight production rules can track practical approaches like this on daily.dev._

## Similar posts on daily.dev

- [IEEE Cloud Summit 2026: The Tunnels No One Mapped](https://daily.dev/posts/ieee-cloud-summit-2026-the-tunnels-no-one-mapped-livjy4s3b) · GitGuardian · 1 upvotes · 0 comments
- [How AI Is Transforming Cloud-Native Identity and Access Management](https://daily.dev/posts/how-ai-is-transforming-cloud-native-identity-and-access-management-nkl8wl1ug) · Cloud Native Now · 0 upvotes · 0 comments
- [Detecting Identity Attacks at Scale with Herd Immunity](https://daily.dev/posts/detecting-identity-attacks-at-scale-with-herd-immunity-p5gfvhfcd) · Arctic Wolf · 0 upvotes · 0 comments
- [How are cloud security teams supported by Agentic AI](https://daily.dev/posts/how-are-cloud-security-teams-supported-by-agentic-ai-ralnfsx8r) · Security Boulevard · 1 upvotes · 0 comments
- [Securing Shadow AI: How to Detect Unapproved LLMs in Your Cloud](https://daily.dev/posts/securing-shadow-ai-how-to-detect-unapproved-llms-in-your-cloud-grptpqodn) · Orca Security Blog · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#machine-learning](https://daily.dev/tags/machine-learning), [#cloud](https://daily.dev/tags/cloud), [#aws](https://daily.dev/tags/aws)

[View this post on daily.dev](https://daily.dev/posts/unmasking-cloud-identities-from-behavioral-clustering-to-automated-detection-p4z7ifbbc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Unmasking Cloud Identities: From Behavioral Clustering to Automated Detection","url":"https://daily.dev/posts/unmasking-cloud-identities-from-behavioral-clustering-to-automated-detection-p4z7ifbbc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/unmasking-cloud-identities-from-behavioral-clustering-to-automated-detection-p4z7ifbbc"},"datePublished":"2026-09-14T10:07:53.235Z","dateModified":"2026-09-14T10:08:21.548Z","description":"Palo Alto Networks' Unit 42 team built a behavioral clustering model that analyzes AWS CloudTrail audit logs to map cloud identities (human, machine, and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/58b89a436ef604b1784cac204ae933ae?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/58b89a436ef604b1784cac204ae933ae?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Unit 42","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Unit 42","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5b55ca8d2ae04181939041fbc9d78160","url":"https://daily.dev/sources/unit42"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/unmasking-cloud-identities-from-behavioral-clustering-to-automated-detection-p4z7ifbbc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,machine-learning,cloud,aws","timeRequired":"PT16M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Unit 42","item":"https://daily.dev/sources/unit42"},{"@type":"ListItem","position":3,"name":"Unmasking Cloud Identities: From Behavioral Clustering to Automated Detection"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/unmasking-cloud-identities-from-behavioral-clustering-to-automated-detection-p4z7ifbbc#faq","mainEntity":[{"@type":"Question","name":"How can I identify the functional role of a cloud identity from AWS CloudTrail logs instead of relying on IAM permissions?","acceptedAnswer":{"@type":"Answer","text":"Behavioral clustering of CloudTrail activity can reveal an identity's true functional role by analyzing which API operations it actually invokes, rather than what its IAM policy permits. Unit 42 researchers vectorized over 40,000 identities across 125 cloud environments as boolean vectors of invoked operations, reduced dimensionality with UMAP using cosine similarity, then clustered with HDBSCAN to reveal reproducible groups like administrators, DevOps, CI/CD, backup agents, and security tools. Teams building anomaly detection on identity behavior can follow ongoing cloud security research on daily.dev."}},{"@type":"Question","name":"What percentage of identities in the AWS administrator cluster invoke ConsoleLogin?","acceptedAnswer":{"@type":"Answer","text":"Roughly 94% of identities in the administrator console user cluster invoked the ConsoleLogin operation, compared to fewer than 1% of identities in any other behavioral cluster. Around 60% of this cluster also invoked cost-related operations like GetCostAndUsage and GetCostForecast, which are triggered by default AWS Console behavior, reinforcing the cluster's identification as administrative console users. Security engineers tuning cloud detection rules can find similar behavioral benchmarks on daily.dev."}},{"@type":"Question","name":"How can a complex clustering model for cloud identity classification be turned into something runnable as a SQL query?","acceptedAnswer":{"@type":"Answer","text":"A logistic regression classifier trained on the original sparse boolean operation vectors, with L1 (Lasso) regularization to zero out irrelevant features, distills the clustering logic into a small set of operations with weighted coefficients. This weighted-sum scoring is simple enough to implement directly in standard SQL, letting organizations classify identity roles at scale without running a resource-intensive machine learning pipeline continuously. Engineers turning ML models into lightweight production rules can track practical approaches like this on daily.dev."}}]}
```

