By Muhammad Ahsan | Solution Savy | Microsoft Defender Deep Dive, Part 7
Cloud application security requires two different capabilities: understanding which services people use, and controlling what they can do with organisational data. Microsoft Defender for Cloud Apps supports both, but they depend on different signals and enforcement paths. Discovering an application does not automatically place its sessions under control.
In this instalment, we focus on Cloud Discovery for shadow IT and Conditional Access App Control for browser sessions. The practical objective is not to prohibit every unfamiliar service. It is to establish an evidence-based application inventory, make defensible approval decisions and apply proportionate controls where sensitive access requires them. Start with a defined population and measurable tests before extending enforcement.
1. Establish discovery coverage before assessing shadow IT
Cloud Discovery analyses supported traffic data and maps observed activity to the Microsoft Defender for Cloud Apps cloud app catalogue. The catalogue provides application information and risk scoring to support assessment. Treat that score as an input, not an approval decision: it cannot establish your organisation’s contractual requirements, business purpose or acceptable data use.
In the Microsoft Defender portal, open Cloud Apps and review Cloud Discovery. Before interpreting the dashboard, identify where its data comes from. The Microsoft Defender for Endpoint integration supplies discovery signals from onboarded endpoints. Supported firewall and proxy logs provide another collection route, through snapshot uploads or continuous reporting. Each route has a different visibility boundary.
Document the populations represented by each source: onboarded corporate endpoints, offices, remote workers and any separately managed environments.
For Defender for Endpoint integration, verify the integration settings and confirm that expected endpoint activity appears in Cloud Discovery.
For uploaded or continuously collected network logs, use a supported log format and check that the required fields are present. Parsing problems can undermine the resulting inventory.
Generate controlled traffic to a known cloud application from a test device. Confirm that the application and the available user or device context appear after processing.
Do not interpret an empty discovery result as proof that an application is unused. It may indicate a coverage gap, missing traffic or identification limitations. Likewise, discovery traffic is not an inventory of the files stored inside an application. It establishes observed usage; examining application content requires a different capability and the appropriate access.
Record these limitations alongside your first baseline. A discovery report becomes operationally useful when reviewers understand both what it shows and what it cannot show.
2. Turn the application inventory into decisions
Shadow IT is best handled as a triage process. Begin with applications showing substantial observed usage, services with relevant risk concerns, and applications that duplicate approved collaboration or storage tools. Review catalogue risk factors alongside the available traffic, user and device evidence. A heavily used service warrants investigation, but traffic volume alone does not demonstrate a data loss incident.
Identify the business owner and purpose. Determine whether the service supports an approved workflow or fills a gap in existing tools.
Establish the intended data classification and identity model. Ask whether users rely on organisational identities, personal accounts or a mixture of both.
Review relevant catalogue details, then validate contractual, privacy and security requirements through your normal supplier-assurance process.
Choose a recorded outcome: approve, approve with restrictions, investigate further or prohibit. Include an owner and a review date.
Use sanctioned and unsanctioned application tags to represent governance decisions in Cloud Discovery. These tags should reflect an agreed process rather than an individual analyst’s preference. Sanctioned status does not make an application intrinsically safe, and unsanctioned status is not, by itself, a universal network block.
With the supported Microsoft Defender for Endpoint integration and enforcement prerequisites configured, marking an application as unsanctioned can drive blocking on covered endpoints. Validate the required integration and endpoint settings, including network protection requirements, against Microsoft’s deployment guidance. Test both the intended block and legitimate dependencies before broad rollout. Devices outside the enforcement path require a separate control; a portal classification does not extend coverage to them automatically.
3. Understand where session control applies
Conditional Access App Control connects Microsoft Entra ID Conditional Access decisions with Defender for Cloud Apps access and session policies. Conditional Access determines which sign-ins are directed to the control. Defender for Cloud Apps then applies the relevant policy to supported application access or session activity. Both configurations must be correct for the intended outcome.
In reverse-proxy mode, supported browser-session traffic passes through Defender for Cloud Apps, enabling inspection and enforcement during the session. Microsoft also documents in-browser protection for Microsoft Edge. Validate the protection path applicable to your browser and deployment rather than assuming that every protected session uses identical proxy behaviour.
This is not a universal wrapper around every application connection. Native desktop clients, mobile applications and direct API access must not be assumed to receive the same browser-session controls. If the requirement is to prevent unmanaged data access, evaluate those alternative routes and govern them separately through supported identity, application or endpoint controls.
Verify Microsoft Defender for Cloud Apps licensing and Microsoft Entra ID licensing for Conditional Access. Do not assume that a discovery capability includes every session-control entitlement.
Confirm that the target application, authentication configuration and browser scenario meet Microsoft’s current support requirements.
Define the intended device trust signal. A device that looks corporate to its user is not necessarily reported as compliant or otherwise trusted during authentication.
Maintain emergency-access arrangements and narrowly scoped exceptions so that an enforcement mistake does not remove your administrative recovery path.
Keep the policy layers distinct during troubleshooting. A Defender for Cloud Apps session policy cannot protect a session that never enters its supported enforcement path. Equally, directing a sign-in to Conditional Access App Control does not prove that your intended download restriction matched.
4. Pilot a specific download restriction
A useful first objective is: allow a pilot group to use a selected business application in a browser, while blocking file downloads from sessions that do not meet the agreed device-trust criteria. This is narrower and more testable than attempting to prevent all data movement. Choose an application with a confirmed supported configuration and use non-sensitive test documents.
Step 1 — Define the test matrix. Include a trusted device, an unmanaged device, an in-scope user, an out-of-scope user and each browser you intend to support. Document the expected outcome for each combination.
Step 2 — Configure a narrowly scoped Microsoft Entra ID Conditional Access policy. Target the pilot users and selected resource, then configure the Conditional Access App Control session setting to use a custom policy.
Step 3 — Review scope and prerequisites before enabling enforcement. Report-only Conditional Access evaluation can help assess targeting, but it does not exercise live session controls. Use an enabled, restricted pilot to validate the actual behaviour.
Step 4 — Complete the supported application onboarding process where required. Verify that a pilot sign-in reaches Conditional Access App Control and that the application is ready for the intended session policy.
Step 5 — Create a Defender for Cloud Apps session policy using the supported file-download control. Scope it to the pilot application and users, apply the appropriate device-condition filters, and configure the Block action.
Step 6 — Start a fresh test session. Attempt a normal download, confirm the user-facing result and inspect the corresponding activity or policy evidence. Repeat from the trusted device and confirm that the exception behaves as designed.
For the first pilot, blocking all downloads within the narrowly defined unmanaged-session scope is easier to validate than combining several content-inspection conditions immediately. Once the enforcement path is proven, introduce content-based conditions only where the application, file types and inspection capabilities support your requirement.
Test more than the obvious download button. Include previews, exports, attachments and other business-critical workflows the application exposes. If users can also access the service through a native client, test and document that route separately. A browser download block must not be presented as protection against every form of copying, screenshots or data extraction.
Prepare rollback before activation: identify which Conditional Access and session policies will be disabled or narrowed, who can make that change and how recovery will be confirmed. Give the service desk the expected block message and an exception process.
5. Investigate with the right evidence
Operational monitoring should distinguish discovery findings, identity decisions and session enforcement. Use Cloud Discovery to assess observed application adoption. Use Microsoft Entra sign-in evidence to investigate Conditional Access evaluation. Use Defender for Cloud Apps activity and policy evidence to establish what happened inside the protected session. These views answer related, but different, questions.
Where Microsoft Defender for Endpoint data is available in Microsoft Defender XDR advanced hunting, endpoint network events can support a discovery investigation. The following query identifies remote URLs or hostnames associated with successful connection events across the largest number of reporting devices during the selected period:
DeviceNetworkEvents
| where Timestamp > ago(7d)
| where ActionType == "ConnectionSuccess"
| where isnotempty(RemoteUrl)
| summarize
ConnectionEvents = count(),
Devices = dcount(DeviceId),
LastSeen = max(Timestamp)
by RemoteUrl
| top 25 by Devices descThis is endpoint telemetry, not a query of the Cloud Discovery catalogue. RemoteUrl values are not catalogue application identities, and connection counts are not file-transfer counts or user visits. Background services, shared infrastructure and application dependencies can influence the results. Use the output to guide investigation, then validate the application context.
For a failed control test, work through the path in order: did the sign-in match Conditional Access, did the session enter the supported protection path, did the session policy match, and was the attempted action supported? This sequence helps avoid broadening a policy unnecessarily when the actual problem is routing, device context or application compatibility.
Track coverage gaps, unresolved application decisions, pilot exceptions and unexpected policy matches. These measures provide more actionable oversight than counting discovered applications alone.
6. Deployment checklist
Discovery sources and their coverage limitations are documented and tested.
Application approval decisions have business owners, rationale and review dates.
Unsanctioned tagging is distinguished from verified endpoint or network enforcement.
Licensing, application support and browser protection paths are confirmed.
Conditional Access targeting and session-policy matching are tested separately.
Device-trust conditions produce the expected results on trusted and unmanaged devices.
Native clients and other alternative access routes have an explicit control decision.
The service desk has user guidance, an exception process and a tested rollback procedure.
7. Conclusion: discover broadly, enforce deliberately
Microsoft Defender for Cloud Apps is most effective when visibility leads to accountable decisions and enforcement follows a verified technical path. Establish discovery coverage first, assess applications in their business context, and pilot session controls against a precise requirement. Keep each control’s boundary visible: observed usage is not content inspection, an unsanctioned tag is not universal blocking, and browser-session protection is not control over every client. That discipline creates a manageable cloud application security programme rather than a collection of untested policies.
Microsoft Learn: Set up Cloud Discovery
Microsoft Learn: Microsoft Defender for Endpoint integration with Defender for Cloud Apps
Microsoft Learn: Protect apps with Conditional Access App Control
Microsoft Learn: Deploy Conditional Access App Control
Microsoft Learn: Create Defender for Cloud Apps session policies
Microsoft Learn: DeviceNetworkEvents advanced hunting schema
Originally published on Solution Savy. Need help with this? Book a consultation.




