Threat reportThreat IntelligenceTL-2026-3064
CloudPEASS: Open-Source Cloud Privilege Escalation Enumeration Suite (AzurePEAS, GCPPEAS, AWSPEAS, K8sPEAS)
CloudPEASS (Cloud Privilege Escalation Awesome Script Suite) is a public, dual-use red-team toolkit that enumerates the permissions held by a compromised cloud principal in Azure, GCP, AWS and Kubernetes and flags privilege escalation paths and sensitive-data access. It is documented as read-only, but its API activity is still recorded in cloud audit logs and can be detected.
Key facts
| Identifiers | TL-2026-3064 |
|---|---|
| Also known as | Cloud Privilege Escalation Awesome Script Suite, CloudPEASS |
| Severity | LOW |
| Affected products | Microsoft Azure / Entra ID / Microsoft 365; Google Google Cloud Platform; Amazon Amazon Web Services; Kubernetes Kubernetes (RBAC) |
| Malware | Python |
| Tools | CloudPEASS |
| MITRE ATT&CK techniques | T1069.003 Cloud Groups, T1078.004 Cloud Accounts, T1087.004 Cloud Account, T1526 Cloud Service Discovery, T1528 Steal Application Access Token, T1550.001 Application Access Token, T1552.005 Cloud Instance Metadata API, T1580 Cloud Infrastructure Discovery, T1613 Container and Resource Discovery, T1619 Cloud Storage Object Discovery |
| Motivation | UNKNOWN |
| Target sectors | technology, cloud services, enterprise |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-10-09, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3064 across Splunk SPL, Microsoft KQL and Sigma, covering 9 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Entra ID Device Code Sign-Ins Spanning Multiple Resources (AzurePEAS Token Acquisition)
Detects successful Entra ID device code flow sign-ins by a single user that touch several distinct resources (ARM, Graph, SharePoint, Outlook) in 24h. AzurePEAS supports device code with MFA and FOCI refresh tokens, and the FOCI path then reads M365 workloads with the same identity. Device code flow is also the standard phishing-for-token technique, so this is useful beyond CloudPEASS.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1078.004, T1528, T1550.001
- Data sources: azure:aad:signin (Splunk Add-on for Microsoft Cloud Services), Microsoft Entra ID SigninLogs
- Severity: medium
- Confidence: medium
Splunk SPL
index=azure sourcetype="azure:aad:signin" earliest=-24h
``` normalise field names across add-on versions ```
| eval proto=coalesce('properties.authenticationProtocol', authenticationProtocol), upn=coalesce('properties.userPrincipalName', userPrincipalName), app=coalesce('properties.appDisplayName', appDisplayName), res=coalesce('properties.resourceDisplayName', resourceDisplayName), src=coalesce('properties.ipAddress', ipAddress)
| where proto="deviceCode"
| stats count dc(res) as resource_count values(res) as resources values(app) as apps values(src) as src_ips by upn
| where resource_count>=3 OR count>=5
| sort - resource_countMicrosoft KQL
SigninLogs
| where TimeGenerated > ago(24h)
| where AuthenticationProtocol =~ 'deviceCode' and ResultType == 0
| summarize SignIns=count(), ResourceCount=dcount(ResourceDisplayName), Resources=make_set(ResourceDisplayName, 20), Apps=make_set(AppDisplayName, 10), IPs=make_set(IPAddress, 10) by UserPrincipalName
| where ResourceCount >= 3 or SignIns >= 5
| project UserPrincipalName, SignIns, ResourceCount, Resources, Apps, IPsSigma
title: Entra ID Device Code Flow Sign-In (CloudPEASS AzurePEAS Token Acquisition)
id: 3f6a1c52-8d47-4b9e-a1c3-5e2b7d90f401
status: experimental
description: Detects successful Entra ID sign-ins using the device code authentication protocol. AzurePEAS supports device code and FOCI refresh-token authentication before enumerating ARM, Graph and Microsoft 365 permissions. Hunt rule; correlate with resource diversity per user.
references:
- https://github.com/peass-ng/CloudPEASS
- https://attack.mitre.org/techniques/T1528/
author: Threadlinqs Team
date: 2026/10/09
tags:
- attack.initial-access
- attack.t1078.004
- attack.credential-access
- attack.t1528
- attack.defense-evasion
- attack.t1550.001
- attack.tool.cloudpeass
logsource:
product: azure
service: signinlogs
detection:
selection:
AuthenticationProtocol: deviceCode
ResultType: 0
condition: selection
falsepositives:
- Legitimate device code use on input-constrained devices (Teams Rooms, CLI tools, IoT)
- Administrators using az login --use-device-code
level: mediumKnown false positives:
- Administrators and developers using az login --use-device-code
- Shared-device scenarios such as Teams Rooms or kiosks
Tuning notes: Allowlist known device-code users and client IDs. Consider also querying NonInteractiveUserSignInLogs for FOCI refresh-token redemption by unexpected client apps. Tighten thresholds if conditional access already blocks device code flow.
- GCP testIamPermissions / getIamPolicy Burst from One Principal (GCPPEAS) · unlock with TL Creds
- CloudPEASS Module Execution via Command Line (AzurePEAS/GCPPEAS/AWSPEAS/K8sPEAS) · unlock with TL Creds
- Cloud Token Environment Variable Staging for CloudPEASS ([indicator], K8S_TOKEN and Others) · unlock with TL Creds
- AWS AccessDenied Probing Across Many Services (AWSPEAS --bruteforce-always) · unlock with TL Creds
- CloudPEASS Module or Audit File Written to Disk · unlock with TL Creds
- Microsoft Graph Multi-Workload Read Enumeration from One Token (AzurePEAS FOCI Checks) · unlock with TL Creds
- AWS IAM Enumeration Burst with SimulatePrincipalPolicy (AWSPEAS) · unlock with TL Creds
- Kubernetes SelfSubject Review Burst from One Identity (K8sPEAS) · unlock with TL Creds
Indicators of compromise
As of 2026-10-09, Threadlinqs Intelligence tracks 9 indicators of compromise for TL-2026-3064.
Sample indicators (1 of 9)
- Domain:
cloud[.]hacktricks[.]wiki
Defanged, TLP:CLEAR. Full set of 9 indicators: unlock with TL Creds.
Technical analysis
CloudPEASS is an open-source suite hosted at github.com/peass-ng/CloudPEASS (repository description: red team scripts to find the permissions assigned to a compromised principal in AWS, GCP, Azure and Kubernetes). It is part of the PEASS-ng family and, per secondary sources, was created by Carlos Polop, who also maintains HackTricks Cloud. The suite has four Python modules: AzurePEAS.py (Azure Resource Manager and Entra ID), GCPPEAS.py (Google Cloud), AWSPEAS.py (AWS) and K8sPEAS.py (Kubernetes). Permission severity (Critical/High/Medium/Low) is derived from HackTricks Cloud categorizations, which the README says are synchronized weekly. This is a tooling and detection-coverage item, not a vulnerability: there is no CVE, exploitation, actor attribution or release date in the sources.
AzurePEAS authenticates through Azure CLI reuse (--use-az-cli), ARM/Graph tokens (arguments or AZURE_ARM_TOKEN / AZURE_GRAPH_TOKEN), device code with MFA, username/password or service-principal credentials, or a FOCI refresh token (--foci-refresh-token). It reads token claims (scp, roles, wids), queries effective ARM permissions across subscriptions and resource groups, reconstructs IAM assignments including PIM-eligible roles, reports read-only resource discovery, and can fall back to read-only Azure CLI commands. With a FOCI refresh token it also performs read-only checks of SharePoint, OneDrive, Outlook, Teams, OneNote, contacts and tasks to indicate which data is accessible; it is not intended to download the tenant.
GCPPEAS accepts a token (--token or CLOUDSDK_AUTH_ACCESS_TOKEN), a service-account key file (--sa-credentials-path or GOOGLE_APPLICATION_CREDENTIALS) or Application Default Credentials / workload metadata. It uses local clues and metadata-server data, Resource Manager and Cloud Asset Inventory discovery, batched queryTestablePermissions and testIamPermissions checks, and getIamPolicy reads. Its transport rejects non-read-only endpoints.
AWSPEAS uses a named profile, explicit access keys or the standard boto3 credential chain. It reads inline, attached and group IAM policies, runs read-only SimulatePrincipalPolicy, and performs live read-only probes (List, Get, Describe, BatchGet, Head, Lookup, Search). Managed-policy inference is labeled as inferred. It decodes the account ID locally from modern AKIA/ASIA key IDs and checks ARNs for canary patterns so it can stop before the first STS call; with --no-ask, suspected canary credentials stop the run.
K8sPEAS authenticates through kubeconfig, bearer token (K8S_TOKEN), client certificate and key, or in-Pod service-account credentials. It uses only GET requests and non-persisted self-review APIs: SelfSubjectReview, SelfSubjectRulesReview and SelfSubjectAccessReview. It also reads RBAC roles, bindings and Pod Security Admission labels, with an optional exhaustive resource/verb/subresource/namespace matrix. It does not exec, attach, port-forward or mint tokens.
Defensive relevance: the README states that read-only does not mean invisible, and read calls can appear in CloudTrail and other audit logs. Defenders should expect a burst of IAM, permission-test and discovery calls from a single principal (high-volume AccessDenied/403 responses, SimulatePrincipalPolicy, testIamPermissions, SelfSubjectRulesReview) following credential theft. Because the tool needs a valid credential, the primary controls are credential protection, least privilege, canary credentials and audit-log alerting.
MITRE ATT&CK techniques by tactic:
Discovery
T1069.003 Cloud Groups; T1087.004 Cloud Account; T1526 Cloud Service Discovery; T1580 Cloud Infrastructure Discovery; T1613 Container and Resource Discovery; T1619 Cloud Storage Object Discovery
Initial Access
Credential Access
T1528 Steal Application Access Token; T1552.005 Cloud Instance Metadata API
lateral-movement
Remediation
Immediate actions
- Alert on bursts of IAM/permission-discovery API calls from a single principal (CloudTrail SimulatePrincipalPolicy and IAM List/Get calls, GCP testIamPermissions/queryTestablePermissions, Kubernetes SelfSubjectRulesReview/SelfSubjectAccessReview)
- Deploy AWS canary credentials and alert on any use; AWSPEAS is documented to check for canary patterns but other tooling will not
- Review Entra ID sign-ins for device code flow and FOCI refresh-token use from unexpected clients
Workarounds
- Limit use of long-lived access keys, service-account key files and static tokens; prefer short-lived federated credentials
- Block or conditionally restrict device code flow where not required
Longer-term hardening
- Enforce least privilege and remove standing high-risk permissions; use PIM just-in-time access in Azure
- Restrict who can call IAM simulation and policy-read APIs, and keep SCPs, permission boundaries and RBAC tight
- Retain and centralize cloud audit logs (CloudTrail, Azure Activity/Entra logs, GCP Cloud Audit Logs, Kubernetes audit logs) for threat hunting
- Run the tool defensively against your own principals to find over-permissioned identities
Affected and fixed versions
Timeline
- Earliest commit visible in the repository history (window begins here): 'Expand tested Azure permission attack coverage'.
- Commit 'Classify newer GCP service attack paths in the risk rules' extends GCPPEAS risk classification.
- Commit integrates tested Azure permission attack paths and GCP risk classifications into the tools.
- Commits 'Consume shared HackTricks permission data and sync weekly', 'Retry and bound canonical permission source fetches' and 'Align permission severities with latest HackTricks techniques' add the weekly HackTricks Cloud sync.
- Commits expand AWSPEAS live read-only probing: 'Probe vetted AWS read operations beyond common prefixes' and 'Discover real AWS resource IDs during read-only probes'.
- Most recent commit observed references K8sPEAS functionality.
- Threat opened as a low-severity tooling and detection-coverage item under MONITORING; no CVE, KEV listing, exploitation or actor attribution in sources.
- README documents AWSPEAS canary-account detection: it decodes the account ID from AKIA/ASIA key IDs and stops before the first STS call when canary patterns match.
- README states that read-only scans can still appear in CloudTrail and other audit logs, making the tool detectable through audit-log analytics.
- GitHub repository peass-ng/CloudPEASS observed at about 696 stars, 85 forks and 415 commits on the main branch; no tagged release versions visible.
- CloudPEASS README retrieved and analyzed; it documents four modules (AzurePEAS, GCPPEAS, AWSPEAS, K8sPEAS) and states that operations are read-only. The source gives no release dates.
Sources cited
- CloudPEASS README (peass-ng/CloudPEASS) raw.githubusercontent.com · Research
- HackTricks Cloud (permission categorization source) cloud.hacktricks.wiki · Research
- peass-ng/CloudPEASS GitHub repository GitHub · Code repository
- CloudPEASS permission severity policy GitHub · Code repository
- CloudPEASS K8sPEAS guide GitHub · Code repository
- CloudPEASS commit history (peass-ng/CloudPEASS) GitHub · Code repository · 2026-10-08
- CloudPEASS project summary (SourcePulse) sourcepulse.org · Blog
Previous and next in threat intel
- OpenAI disrupts Russian 'Dark Clark' fake-think-tank and Iranian fake-journalist AI-enabled influence operations Previous report
- AI-assisted data-theft campaign against South Korean banks: CrowdStrike finds ARTEX agentic pentest tool, Claude Code session histories and Claude memory files on attacker infrastructure Next report
Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.