Skip to main content
ToolsSIEM

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

PillarWhat the CASB doesWhat reaches a SOC analyst
VisibilityReads firewall and proxy logs, matches traffic against an app catalog, scores each app's riskNewly discovered apps and their risk score. Rarely urgent; usually a ticket to IT
Data securityDLP on uploads and on files at rest, sensitivity labels, blocked downloads to unmanaged devicesPolicy matches, such as a labeled file shared to a personal address
Threat protectionUEBA baselines per user: impossible travel, unusual downloads, suspicious inbox rules, risky OAuth appsThe alerts you triage
Compliance and postureChecks 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.

ModeHow it connectsBlocks in real time?Blind spot
API (app connector)Reads the SaaS provider's API: activity, files at rest, sharing, admin changes, OAuth grantsNo. It sees the upload after the fact, then can quarantine or unshareApps without a connector
Forward proxyTraffic from managed devices is routed through it by an agent, a PAC file or a SASE edgeYesUnmanaged and personal devices that never touch the proxy
Reverse proxyThe identity provider sends the browser session through the CASB at sign-inYes, for browser sessionsDesktop 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".

ColumnWhat it holdsWhy you care
ActionTypeThe activity: FileDownloaded, AnonymousLinkCreated, SharingInvitationCreated and so onThe filter in almost every hunt
ApplicationThe app where it happenedSeparates SharePoint from Dropbox from GitHub
AccountObjectIdThe user's Entra ID object IDJoin key to sign-in and audit logs
IPAddress, CountryCodeClient IP and its countryTravel and infrequent-country checks
IsAnonymousProxyWhether the IP is a known anonymous proxyTor and anonymizers on a corporate account
IsExternalUserWhether the actor is outside your domainGuest activity in your tenant
RawEventDataThe source app's original JSONFile names, link targets, sharing scope
OAuthAppIdThe OAuth app behind the actionWhat a consented app did
AuditSourceApp connector, access control or session controlWhether the record came from the API or the reverse proxy
UncommonForUserAttributes that are unusual for this userA 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 desc

The 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 desc

Both 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.

Free

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

More Tools Terms

Career Path

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 Path

SOC 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 Path

Security Engineer Career Guide: Salary & Skills

Security Engineers build and maintain the infrastructure that SOC analysts depend on. You deploy SIEMs, configure firewa…

Read more
Comparison

SOCSimulator vs LetsDefend: Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Comparison

SOCSimulator vs Hack The Box: Comparison

Different tools for different career paths. SOCSimulator trains defensive analysts. Hack The Box trains offensive securi…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Technique

MITRE ATT&CK® Techniques: Detection Training Library

Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.

Read more
Career Path

Cybersecurity Career Paths: 2026 Guide

Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.

Read more
Playbook

SOC Investigation Playbooks: Step-by-Step Guides

Practitioner investigation playbooks with decision trees and real SIEM queries.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more
Blog

SOCSimulator Blog: Security Training Insights

Articles on SOC analyst skills, detection engineering, and career development.

Read more