What Is Cloud Detection Engineering?

Cloud detection engineering is the discipline of designing, building, testing and maintaining threat detections for cloud environments, working mainly from API, identity and control-plane logs such as AWS CloudTrail and Entra ID sign-in logs rather than network and endpoint telemetry. Pwned Labs teaches it from the attacker's side: its cloud bootcamps have practitioners run real attack techniques in hands-on AWS, Azure and Google Cloud labs and then detect them with tools such as GuardDuty, Splunk and Microsoft Sentinel.
How Cloud Detection Engineering Differs from Traditional Threat Detection
On-premises detection largely revolves around network telemetry, endpoint logs, and host-based indicators. Cloud detection engineering operates in a fundamentally different environment. There are no packet captures from a network tap. There is no EDR agent on a Lambda function. The primary telemetry is API call logs, and the attack surface is the control plane itself: the management APIs that provision, configure, and govern cloud resources. Pwned Labs teaches this API-log view of detection in its free Breach in the Cloud lab, where learners analyze CloudTrail logs to confirm a breach and identify the compromised AWS service.
This shift changes everything about how detections are authored. A detection for lateral movement in a traditional network might look for anomalous SMB connections between workstations. The cloud equivalent might look for an IAM role assumption from an unexpected source account followed by S3 object enumeration, an entirely different data model requiring entirely different query logic.
Platforms and Query Languages
Each major SIEM and cloud-native analytics platform has its own detection language. Microsoft Sentinel uses Kusto Query Language (KQL) against tables like SigninLogs, AuditLogs, and AzureActivity. Splunk uses Search Processing Language (SPL) and increasingly relies on data models that normalize cloud log formats. AWS-native detection runs through CloudWatch Logs Insights and GuardDuty (including custom threat lists), with Amazon Detective used to investigate findings rather than to raise them. Google Security Operations (Chronicle) uses YARA-L 2.0, a purpose-built detection language that supports multi-event correlation across Google Cloud and third-party log sources.
Effective cloud detection engineers are polyglot, comfortable writing KQL for one client's Sentinel deployment and SPL for another's Splunk Cloud instance, with an understanding of where each platform's strengths and blind spots lie. Pwned Labs teaches detection on more than one of these platforms: Microsoft Sentinel in its Microsoft Cloud Attack and Defense bootcamp, and Splunk in labs such as Hunt in the Cloud with Splunk.
The Detection Engineering Lifecycle
Mature cloud detection engineering runs as a repeatable lifecycle rather than a one-time rule-writing exercise. It starts with research: understanding a technique well enough to know what it leaves behind in the logs. From there, engineers develop a detection, test it against known-good and known-bad samples to measure false positives, deploy it through a pipeline, and then tune it continuously as the environment and the attacker tradecraft change. The strongest teams close the loop by validating detections against real attacks, either through purple-team exercises or by replaying the telemetry from a genuine intrusion, so coverage is proven rather than assumed. Pwned Labs builds that loop into its free Execute and Identify Credential Abuse in AWS lab, which walks through a full credential abuse attack chain and then pivots to the blue team to detect it with CloudTrail and Amazon Athena.
Detection-as-Code
Modern cloud detection engineering treats detections as software artifacts. Detections are written in structured formats (YAML, TOML, or native platform syntax), stored in version-controlled repositories, validated through CI/CD pipelines, and deployed programmatically. Frameworks like Sigma provide a vendor-agnostic detection format that can be compiled into platform-specific queries. Panther and Matano take this further with Python-based detection logic that runs directly against cloud log data in S3.
The detection-as-code approach brings software engineering rigor: peer review for detection logic, unit tests with known-good and known-bad log samples, automated deployment, and rollback capability. This is critical in cloud environments where the volume of API telemetry means a poorly written detection can generate thousands of false positives per hour. Pwned Labs introduces detection-as-code concepts in the detection engineering pillar of its MCRTE program, alongside building correlation detections in KQL for Microsoft Sentinel.
The MITRE ATT&CK Cloud Matrix
The MITRE ATT&CK Cloud matrix provides the taxonomic backbone for cloud detection engineering. It maps adversary techniques specific to IaaS, SaaS, and identity providers into a structured framework. Key technique areas include Initial Access (such as T1078.004, Valid Accounts: Cloud Accounts), Persistence (T1098, Account Manipulation), Privilege Escalation (T1548, Abuse Elevation Control Mechanism), and Exfiltration (T1537, Transfer Data to Cloud Account).
Mapping detections to ATT&CK techniques provides coverage visibility. Detection engineers can identify gaps. For instance, an organization might have strong detections for credential-based initial access but no coverage for T1535 (Unused/Unsupported Cloud Regions), where attackers spin up cryptomining infrastructure in regions the organization does not monitor. Pwned Labs teaches adversary emulation in its Emulate Storm-0501 Tactics for Cloud Compromise lab, which follows a Microsoft-tracked threat actor from password spraying to Microsoft 365 data exfiltration, a sequence that exercises detection coverage across several of these tactics.
Common Cloud Detections
Several detection patterns recur across cloud environments. Impossible travel detections flag when a single identity authenticates from geographically distant locations within a timeframe that makes physical travel impossible, though these require tuning for VPN usage and corporate proxies. API abuse detections look for high-velocity enumeration patterns: an IAM principal calling ListBuckets, GetBucketAcl, and GetBucketPolicy across dozens of buckets in seconds is likely running a tool like Pacu or ScoutSuite rather than performing legitimate administration. Privilege escalation indicators monitor for dangerous IAM API calls such as CreatePolicyVersion, AttachUserPolicy with overly permissive policies, and PutRolePolicy, especially when the calling principal does not normally perform IAM administration. The Pwned Labs Amazon Cloud Attack and Defense bootcamp, which leads to the ACRTP certification, covers both performing and detecting IAM brute-force enumeration.
More sophisticated detections correlate across log sources: a new OAuth application consent in Entra ID followed by Microsoft Graph calls that read mail under the Mail.Read permission, for instance, can indicate a consent phishing attack even when each individual event appears benign.
Real-World Cloud Attacks Worth Detecting
The techniques below are drawn from documented intrusions and map directly to detections a cloud team should have.
Midnight Blizzard, 2024
The group behind the 2024 Microsoft corporate email compromise password-sprayed a legacy test tenant, then abused OAuth applications to grant themselves access to mailboxes. The detectable signals include sign-in risk on the sprayed account and, critically, a new application consent and app role grant followed by mailbox access. Microsoft reports that the actor granted itself the Office 365 Exchange Online full_access_as_app role and read mail through Exchange Web Services (EWS), so the trail runs across AuditLogs, AADServicePrincipalSignInLogs and EWS activity.
Scattered Spider
This financially motivated group, also tracked as UNC3944 and Octo Tempest, is known for social-engineering help desks, defeating MFA, and pivoting quickly into cloud consoles and identity providers. Detections focus on anomalous administrative sign-ins, MFA method changes, and rapid enumeration of cloud resources from a newly authenticated session. Pwned Labs teaches detections for related identity attacks in its MCRTE program, whose detection labs cover AiTM phishing, device registration, rogue device access and device-code phishing.
Codecov, 2021
A tampered Codecov Bash Uploader script exfiltrated credentials, tokens and keys from customers' CI environments, and Codecov warned that any services, datastores and application code those credentials could reach were at risk. The lesson for detection engineers is to watch for cloud credentials being used from unexpected networks or in ways that break from a service account's normal behavior.
Detection Engineering vs. Traditional SOC Monitoring
Traditional SOC monitoring often relies on vendor-supplied rules and alert triage. Detection engineering treats detections as owned, tested, version-controlled software tuned to the specific environment. The difference shows up in quality: a generic "impossible travel" rule generates noise, while an engineered detection accounts for the organization's VPNs, service accounts, and travel patterns. In cloud, where a single misconfigured detection can fire thousands of times an hour against high-volume API telemetry, that engineering discipline is the difference between actionable signal and an ignored alert queue. Pwned Labs teaches one high-signal technique in its Detect Malicious Activity with AWS Honey Tokens lab: planting honey tokens as digital tripwires and alerting on their use with CloudWatch, CloudTrail and Lambda.
Related Labs
Pwned Labs scenarios pair attack with detection, so you write rules from firsthand knowledge of what the attack looks like in the logs. The first two labs below are free.
- Identify IAM Breaches with CloudTrail and Athena (Free, Beginner): enable CloudTrail and Amazon Athena, then query them from the console and the CLI to identify IAM attacks and compromised IAM users.
- Breach in the Cloud (Free, Beginner): analyze CloudTrail logs from an account that saw unusual activity to confirm the breach, the compromised service and the data that was taken.
- Investigate a Ransomware Attack in AWS using Splunk (Premium, Intermediate): follow a ransomware incident that abused AWS KMS through CloudTrail logs in Splunk, and learn the mitigations that prevent it.
- Detect Malicious Activity with AWS Honey Tokens (Premium, Beginner): plant honey tokens in AWS and build CloudWatch, CloudTrail and Lambda alerting that fires when one is used.
Browse the full set at pwnedlabs.io/explore.
Build Cloud Detections with Pwned Labs
Each Pwned Labs cloud bootcamp that leads to the MCRTP, ACRTP, GCRTP or MCRTE certification follows an attacker-informed defender model: practitioners execute real attack techniques in live cloud environments, then learn to detect those same techniques. This means you are not writing detections from documentation. You are writing them from firsthand knowledge of what the attack actually looks like in CloudTrail, Sentinel, or GCP logs. Explore all bootcamps at pwnedlabs.io/bootcamps.
Frequently Asked Questions
What is cloud detection engineering?
The practice of building, testing, and maintaining detections for attacks against cloud environments, working primarily from API and identity logs rather than network and endpoint telemetry.
How does it differ from on-premises detection?
There are no packet captures or endpoint agents on serverless and managed services. The primary telemetry is API call logs, and the attack surface is the control plane, so detections are written against control-plane events.
What query languages are used?
Kusto Query Language for Microsoft Sentinel, Search Processing Language for Splunk, CloudWatch Logs Insights for AWS, and YARA-L for Google Security Operations (Chronicle), among others. Vendor-agnostic formats like Sigma compile to several of these. Pwned Labs teaches KQL detections for Microsoft Sentinel in its Microsoft cloud bootcamps and Splunk investigation in labs such as Hunt in the Cloud with Splunk.
What is detection-as-code?
Treating detections as software: written in structured formats, stored in version control, tested in CI/CD with known-good and known-bad samples, and deployed programmatically, which brings peer review and rollback to detection logic.
How does MITRE ATT&CK help?
The ATT&CK Cloud matrix maps adversary techniques for IaaS, SaaS, and identity providers, letting teams map detections to techniques, measure coverage, and find gaps where they have no detection at all.
Where can I practice cloud detection engineering hands-on?
Pwned Labs runs free blue team labs such as Identify IAM Breaches with CloudTrail and Athena and Breach in the Cloud, where you work through real CloudTrail data. For a deeper path, the third pillar of its MCRTE program is dedicated to detection engineering across the kill chain, building and validating Microsoft Sentinel detections in KQL.
About Pwned Labs
Pwned Labs is a hands-on cloud and AI offensive security training platform. It runs real-world attack labs and bootcamps for AWS, Azure, GCP, Kubernetes and AI systems, including the ACRTP, MCRTP, GCRTP, KRTP and AISRTP certifications. Free labs are at pwnedlabs.io/explore.
Learn this hands-on in a bootcamp
What practitioners say.
Caleb Havens
Red Team Operator & Social Engineer, NetSPI
"I’ve attended two training sessions delivered by Pwned Labs: one focused on Microsoft cloud environments and the other on AWS. Both sessions delivered highly relevant content in a clear, approachable manner and were paired with an excellent hands-on lab environment that reinforced key concepts and skills for attacking and defending cloud infrastructures. The training was immediately applicable to real-world work, including Red Team Operations, Social Engineering engagements, Purple Team exercises, and Cloud Penetration Tests. The techniques and insights gained continue to be referenced regularly and have proven invaluable in live operations, helping our customers identify vulnerabilities and strengthen their cloud defenses."
Sebas Guerrero
Senior Security Consultant, Bishop Fox
"The AWS, Azure, and GCP bootcamps helped me get up to speed quickly on how real cloud environments are built and where they tend to break from a security standpoint. They were perfectly structured, with real-world examples that gave me rapid insight into how things can go wrong and how to prevent those issues from happening in practice. I’m now able to run cloud pentests more confidently and quickly spot meaningful vulnerabilities in customers’ cloud infrastructure.”
Dani Schoeffmann
Security Consultant, Pen Test Partners
"I found the Pwned Labs bootcamps well structured and strongly focused on practical application, with clear background on how and why cloud services behave the way they do and how common attack paths become possible. The team demonstrates both sides by walking through attacks and the corresponding defenses, backed by hands-on labs that build confidence using built-in and third-party tools to identify and block threats. The red-team labs are hands-on and challenge-driven, with clear walkthroughs that explain each step and the underlying logic. I’ve seen several of these techniques in real engagements, and the bootcamp helped me develop a repeatable methodology for cloud breach assessments and deliver more tailored mitigation recommendations."
Matt Pardo
Senior Application Security Engineer, Fortune 500 company
"I’ve worked in security for more than 15 years, and every step up came from taking courses and putting the lessons into practice. I’ve attended many trainings over the years, and Pwned Labs’ bootcamps and labs are among the best I’ve experienced. When you factor in how affordable they are, they easily sit at the top of my list. As a highly technical person, I get the most value from structured, hands-on education where theory is immediately reinforced through labs. Having lifetime access to recordings, materials, and training environments means you can repeat the practice as often as needed, which is invaluable. If you’re interested in getting into cloud security, sign up for Pwned Labs.”
Steven Mai
Senior Penetration Tester, Centene
“Although my background was mainly web and network penetration testing, the ACRTP and MCRTP bootcamps gave me a solid foundation in AWS and Azure offensive security. I’m now able to take part in cloud penetration testing engagements and have more informed security discussions with my team.”
