What is CASB?
A cloud access security broker (CASB) is a control point between users and the cloud services they use. It finds the SaaS apps in use (shadow IT), enforces data and access policy on them, and flags threats such as a hijacked account or a mass download. It works through app APIs, a forward proxy or a reverse proxy.
Definition
- CASB
- A cloud access security broker (CASB) is a control point between users and the cloud services they use. It finds the SaaS apps in use (shadow IT), enforces data and access policy on them, and flags threats such as a hijacked account or a mass download. It works through app APIs, a forward proxy or a reverse proxy.
How CASB Works
NIST describes the CASB as software that "sits on the network between the cloud service customers (CSC) and the cloud service providers (CSP)" (SP 800-215, November 2022). The first generation only discovered which cloud services people used. Current products also enforce policy: data loss prevention on what goes into and out of cloud apps, detection of account hijacking through behavior analytics, and alerts on misconfigured cloud tenants.
The four pillars, from the queue's point of view
| Pillar | What the CASB does | What reaches a SOC analyst |
|---|---|---|
| Visibility | Reads firewall and proxy logs, matches traffic against an app catalog, scores each app's risk | Newly discovered apps and their risk score. Rarely urgent; usually a ticket to IT |
| Data security | DLP on uploads and on files at rest, sensitivity labels, blocked downloads to unmanaged devices | Policy matches, such as a labeled file shared to a personal address |
| Threat protection | UEBA baselines per user: impossible travel, unusual downloads, suspicious inbox rules, risky OAuth apps | The alerts you triage |
| Compliance and posture | Checks tenant settings against benchmarks such as CIS (SaaS security posture management) | Findings for the app owner, not incidents |
How a CASB works: API, forward proxy or reverse proxy
The way the CASB reaches the traffic decides what it can stop and what it can only report.
| Mode | How it connects | Blocks in real time? | Blind spot |
|---|---|---|---|
| API (app connector) | Reads the SaaS provider's API: activity, files at rest, sharing, admin changes, OAuth grants | No. It sees the upload after the fact, then can quarantine or unshare | Apps without a connector |
| Forward proxy | Traffic from managed devices is routed through it by an agent, a PAC file or a SASE edge | Yes | Unmanaged and personal devices that never touch the proxy |
| Reverse proxy | The identity provider sends the browser session through the CASB at sign-in | Yes, for browser sessions | Desktop and mobile clients, unless an access policy blocks them |
Microsoft's reverse proxy is Conditional Access App Control. On browsers other than Edge the app's address gains an *.mcas.ms suffix (myapp.com becomes myapp.com.mcas.ms), and Microsoft tells admins to block native clients so nobody skips the session controls by opening the desktop app. Edge users get the same protection in the browser, without the redirect. Know the suffix before you flag an odd mcas.ms hostname in proxy logs as phishing. The modes are not exclusive: you can connect Microsoft 365 by API and still route browser sessions from unmanaged devices through the reverse proxy.
What reaches the SIEM: the CloudAppEvents table
Microsoft's CASB, Defender for Cloud Apps, writes its activity records to the CloudAppEvents table in Defender XDR advanced hunting. That covers Exchange Online, SharePoint Online, Teams, Power BI and other Microsoft apps, plus connected third-party apps such as Dropbox, Salesforce, GitHub and Atlassian. Check one prerequisite before you write a query: the table is filled by Defender for Cloud Apps, and Microsoft's reference says that without the service deployed, queries against it "aren't going to work or return any results".
| Column | What it holds | Why you care |
|---|---|---|
ActionType | The activity: FileDownloaded, AnonymousLinkCreated, SharingInvitationCreated and so on | The filter in almost every hunt |
Application | The app where it happened | Separates SharePoint from Dropbox from GitHub |
AccountObjectId | The user's Entra ID object ID | Join key to sign-in and audit logs |
IPAddress, CountryCode | Client IP and its country | Travel and infrequent-country checks |
IsAnonymousProxy | Whether the IP is a known anonymous proxy | Tor and anonymizers on a corporate account |
IsExternalUser | Whether the actor is outside your domain | Guest activity in your tenant |
RawEventData | The source app's original JSON | File names, link targets, sharing scope |
OAuthAppId | The OAuth app behind the action | What a consented app did |
AuditSource | App connector, access control or session control | Whether the record came from the API or the reverse proxy |
UncommonForUser | Attributes that are unusual for this user | A quick anomaly check before you dig |
Two hunting queries
The first counts downloads per user per hour, the same shape as Microsoft's mass-download hunting query.
// Users with a burst of file downloads in any one hour of the last day
// Requires Defender for Cloud Apps: without it, CloudAppEvents stays empty
CloudAppEvents
| where Timestamp > ago(1d)
| where ActionType == "FileDownloaded"
| summarize Downloads = count(), Files = dcount(ObjectName),
IPs = make_set(IPAddress, 5), Countries = make_set(CountryCode, 5),
AnonProxyEvents = countif(IsAnonymousProxy == true)
by AccountObjectId, AccountDisplayName, Application, bin(Timestamp, 1h)
| where Downloads > 100
| order by Downloads descThe second lists sharing that leaves the organization: anonymous "anyone" links, and invitations to people outside your directory, which is how Microsoft's audit log reference defines SharingInvitationCreated.
// Anonymous links and external sharing invitations, per user per hour
CloudAppEvents
| where Timestamp > ago(1d)
| where ActionType in ("AnonymousLinkCreated", "SharingInvitationCreated")
| extend FileName = tostring(RawEventData.SourceFileName),
TargetType = tostring(RawEventData.TargetUserOrGroupType)
| summarize Shares = count(), Files = make_set(FileName, 10), TargetTypes = make_set(TargetType)
by AccountObjectId, AccountDisplayName, Application, bin(Timestamp, 1h)
| where Shares >= 10
| order by Shares descBoth use the documented CloudAppEvents columns and the operation names from Microsoft's audit log reference; SOCSimulator has not run them against a live tenant. Microsoft lists sync software as a known false positive for its own unusual-download alert, so expect OneDrive sync and backup tools in the first query and set the threshold from a week of your own data.
Triage: impossible travel and a new OAuth app
Impossible travel. Defender for Cloud Apps raises it when the same user is active from two places closer in time than real travel allows. It learns each user for seven days first and ignores pairs where both IP addresses are tagged as corporate. Microsoft's documented false positives are an untagged sanctioned VPN (dismiss, then tag the range) and a phone that stays connected through airplane mode and reconnects on landing. Before deciding, check IsAnonymousProxy on both sides, then look at what the account did next: filter CloudAppEvents on its AccountObjectId for downloads, new sharing links and inbox rules after the second sign-in. On a confirmed true positive the guidance is to suspend the user, mark them compromised and reset the password. The impossible travel playbook walks the full sequence.
A new OAuth app with broad permissions. Microsoft's own overview warns that OAuth apps "often behave unnoticed, while still having extensive permissions". Find the consent in Entra ID AuditLogs (OperationName "Consent to application"), note who consented and whether it was an admin, and read the permissions the app asked for. Then pivot to CloudAppEvents on its OAuthAppId to see what it has done since. Defender for Cloud Apps also flags apps whose names use look-alike characters ("Misleading OAuth app name") and unusual credentials added to an existing app. A mail-reading app consented by one user an hour after a phishing click is a business email compromise lead.
CASB vs SASE and SSE
SASE delivers networking and security together from the cloud. NIST's guide lists CASB among the minimal security services in most commercial SASE offerings, next to firewall, secure web gateway, anti-malware, IPS and DLP. Vendors call the security half without the SD-WAN networking SSE (security service edge): Zscaler sells its multimode CASB as part of its SSE platform, and Netskope's menu splits "Security Convergence (SSE)" from "Security and Network Convergence (SASE)".
For a SOC the difference shows up in the logs. On a SASE or SSE platform, CASB, web gateway and ZTNA events come from one vendor, keyed to the same user, so one search shows the sign-in, the web traffic and the file activity. With Defender for Cloud Apps you get the CASB records in CloudAppEvents and do the joins yourself, on AccountObjectId or the user principal name, against sign-in and proxy logs.
CASB in SOC Operations
Many cloud account takeovers never touch an endpoint. The attacker signs in, reads mail, downloads a library and shares a folder out, all inside the SaaS app, and the CASB is often the only control that records those steps. Triage its alerts with three questions. Was the sign-in that started the session legitimate? Check the matching sign-in log for MFA, device and IP. What did the account do afterwards? Pull its `CloudAppEvents` for downloads, sharing, inbox rules and OAuth consents. Did data leave? Anonymous links and invitations to outside addresses are an [exfiltration](/glossary/exfiltration) path that needs no malware. The same download-and-share pattern from someone who just resigned is an [insider threat](/glossary/insider-threat) case, which also goes to HR and legal. Note in the case whether each record came from the app connector or the proxy (`AuditSource`): only the proxy could have blocked it.
Practice CASB in a Real SOC
SOCSimulator provides hands-on training with realistic SIEM, XDR, and Firewall interfaces. Build real analyst skills investigating casb scenarios with zero consequences, free.
Frequently Asked Questions
- What is Microsoft's CASB?
- Microsoft Defender for Cloud Apps. It covers the CASB basics (shadow IT discovery, app usage visibility, threat protection, information protection) and adds SaaS security posture management and app governance for OAuth apps, inside Microsoft Defender XDR. Its activity records land in the CloudAppEvents advanced hunting table, and its reverse proxy is called Conditional Access App Control.
- Which cloud configuration enforces security policies when accessing cloud resources?
- A cloud access security broker. It sits between users and cloud providers and, in NIST's words, enforces security and governance policies for cloud applications. To enforce at the moment of access it has to be inline: a forward proxy for managed devices, or a reverse proxy that the identity provider sends sign-ins through. API mode reviews activity after it has happened.
- Is Zscaler a CASB?
- Zscaler sells a CASB, but as one module of its security service edge (SSE) platform, sharing policy and logs with its web gateway and ZTNA. Netskope works the same way: Netskope One CASB, with inline and API modes, sits inside the Netskope One platform. Microsoft's CASB, Defender for Cloud Apps, plugs into Defender XDR instead.
- What is the difference between CASB and SASE?
- A CASB controls how people use cloud applications. SASE is a wider architecture that delivers networking (SD-WAN) and several security services from the cloud, and CASB is one of those services, next to the secure web gateway, firewall, DLP and ZTNA. You can run a CASB without SASE; NIST lists CASB among the minimal services found in most commercial SASE offerings.
- How does a CASB work?
- It gets between users and cloud apps in one of three ways: by reading each app's API, by sitting inline as a forward proxy for managed devices, or as a reverse proxy the identity provider routes browser sessions through. It then checks activity against policy and per-user baselines, and alerts or blocks, for example stopping a download of a labeled file to an unmanaged laptop.
Sources
- NIST SP 800-215: Guide to a Secure Enterprise Network Landscape (November 2022)
- NIST CSRC Glossary: cloud access security broker
- Microsoft Learn: What is Microsoft Defender for Cloud Apps?
- Microsoft Learn: CloudAppEvents table in the advanced hunting schema
- Microsoft Learn: Investigate anomaly detection alerts
- Microsoft Learn: Conditional Access app control in Defender for Cloud Apps
- Microsoft Learn: Audit log activities (SharePoint and OneDrive sharing and file operations)
- Microsoft Learn: Microsoft Entra audit log activity reference
- Microsoft hunting query: mass downloads (CloudAppEvents)
- Microsoft hunting query: unusual volume of file sharing (CloudAppEvents)
- Zscaler: Cloud Access Security Broker (CASB)
- Netskope: Netskope One Cloud Access Security Broker
Related Terms
Secure Access Service Edge (SASE) is a cloud-delivered architecture that converges networking and se...
Zero Trust Network Access (ZTNA) is an access model that grants users connectivity to specific appli...
Data Loss Prevention (DLP) is a set of technologies and policies that detect and prevent unauthorize...
Zero Trust is a security architecture philosophy based on "never trust, always verify," requiring co...
Data exfiltration in cyber security is the unauthorized transfer of data from an organization's syst...
An insider threat is a security risk originating from current or former employees, contractors, or b...
UEBA (user and entity behavior analytics) builds a baseline of normal activity for each user, host, ...
More Tools Terms
Related SOC Training Resources
SOC Analyst (Tier 1) Career Guide: Salary & Skills
Tier 1 SOC Analysts are the front line. You monitor alert queues, triage incoming detections, classify them as true or f…
Read more Career PathSOC Analyst (Tier 2) Career Guide: Salary & Skills
Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…
Read more Career PathSecurity Engineer Career Guide: Salary & Skills
Security Engineers build and maintain the infrastructure that SOC analysts depend on. You deploy SIEMs, configure firewa…
Read more ComparisonSOCSimulator vs LetsDefend: Comparison
SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…
Read more ComparisonSOCSimulator vs Hack The Box: Comparison
Different tools for different career paths. SOCSimulator trains defensive analysts. Hack The Box trains offensive securi…
Read more ToolSIEM Training Console: SOCSimulator
The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…
Read more TechniqueMITRE ATT&CK® Techniques: Detection Training Library
Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.
Read more Career PathCybersecurity Career Paths: 2026 Guide
Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.
Read more PlaybookSOC Investigation Playbooks: Step-by-Step Guides
Practitioner investigation playbooks with decision trees and real SIEM queries.
Read more FeatureShift Mode: Real-Time SOC Simulation
Practice alert triage under realistic time pressure with SLA timers and noise injection.
Read more FeatureOperations: Guided Training Operations
Structured CTF-style investigation operations covering real-world attack scenarios.
Read more BlogSOCSimulator Blog: Security Training Insights
Articles on SOC analyst skills, detection engineering, and career development.
Read more