Configuring Cloud App Discovery
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 11 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Configuring Cloud App Discovery in Microsoft Defender for Cloud Apps
Introduction: Understanding the Shadow IT Landscape
In the modern workplace, the perimeter of the corporate network has effectively dissolved. Employees no longer work exclusively from managed office desktops connected to a central data center; instead, they operate from home offices, coffee shops, and mobile devices, utilizing a vast array of software-as-a-service (SaaS) applications to get their jobs done. While this flexibility drives productivity, it creates a significant security challenge known as "Shadow IT." Shadow IT refers to the use of cloud applications, services, and software by employees without the explicit approval or oversight of the IT and security departments.
Cloud App Discovery is the foundational component of Microsoft Defender for Cloud Apps that addresses this visibility gap. It works by analyzing your organization’s network traffic logs to identify every cloud application being accessed by users, whether those applications are sanctioned by the company or entirely unknown to IT. Without this visibility, security teams are essentially flying blind, unable to assess the risk profile of the data flowing into third-party storage sites, project management tools, or communication platforms. By configuring Cloud App Discovery, you transform your network logs into actionable intelligence, allowing you to identify risky behavior, prevent data leakage, and bring unauthorized apps under the umbrella of corporate governance.
Not read yet
The Architecture of Cloud App Discovery
At its core, Cloud App Discovery functions as a traffic analysis engine. It processes log files from your network infrastructure—such as firewalls, secure web gateways (SWGs), and proxies—to map user activity against a global catalog of over 30,000 cloud applications. This catalog is maintained by Microsoft and provides detailed risk scores for each application based on more than 90 different parameters, including regulatory compliance, security certifications, and data handling practices.
When you ingest these logs into Defender for Cloud Apps, the system correlates the IP addresses and user identities with these known apps. The result is a comprehensive dashboard that displays which apps are being used, who is using them, how much data is being uploaded or downloaded, and what the overall risk score of those apps is. Understanding this architecture is critical because the quality of your discovery depends entirely on the quality of the logs you provide. If your log sources are incomplete or if the traffic is encrypted without inspection, the visibility you gain will be limited.
Callout: Shadow IT vs. Sanctioned Apps It is important to distinguish between these two states. Sanctioned apps are those that have been vetted, approved, and integrated into your identity management system (like Microsoft Entra ID). Shadow IT apps are those discovered through log analysis that exist outside of your formal procurement and security processes. Cloud App Discovery acts as the bridge that helps you decide whether to "sanction" an unknown app, "block" it due to risk, or simply monitor its usage patterns.
Not read yet
Preparing Your Log Sources
Before you can see results in the Defender for Cloud Apps portal, you must establish a data pipeline. There are two primary ways to collect logs: automatic log upload and manual log upload. Automatic upload is the industry standard because it provides continuous, near real-time visibility, whereas manual upload is generally reserved for proof-of-concept testing or isolated network segments.
Automatic Log Collection
To set up automatic log collection, you deploy a log collector in your environment. This collector is typically a Docker container or a virtual appliance that sits on your network, receives traffic logs from your firewalls or proxies via Syslog or FTP, and securely transmits them to the Microsoft cloud.
- Identify your network appliances: Review your firewall, proxy, and gateway documentation to ensure they support sending logs in a format that Defender for Cloud Apps understands (e.g., Common Event Format, Syslog, or proprietary formats from vendors like Cisco, Palo Alto, or Fortinet).
- Deploy the Log Collector: You will download the Log Collector configuration file from the Microsoft Defender portal. This file contains the credentials and settings required for your on-premises virtual machine to talk to the cloud service.
- Configure the Data Source: Within the portal, you define a "Data Source." This tells Defender for Cloud Apps what kind of device is sending the logs (e.g., "Palo Alto Firewall") and the expected format.
- Establish the Connection: Once the collector is running, it will begin polling the network devices or listening for incoming syslog packets. You should see the status change to "Connected" in the portal within a few minutes.
Manual Log Collection
If you cannot deploy a permanent log collector, you can manually upload log files. This involves exporting traffic logs from your appliances into a CSV or text file and uploading them directly into the portal. While this is less efficient, it is a useful way to perform a one-time "risk assessment" of your organization’s cloud footprint without changing your network architecture.
Tip: Data Privacy and Log Scrubbing When dealing with log files, you might be concerned about privacy. Defender for Cloud Apps includes built-in settings to mask usernames. If you enable this, the system will replace real usernames with anonymized strings. Use this feature if your local privacy regulations or labor agreements prevent the collection of identifiable user activity data.
Not read yet
Configuring Discovery Settings
Once the logs are flowing, you must configure the environment to make the data useful. This involves defining your organization’s network boundaries and identifying "Sanctioned" versus "Unsanctioned" applications.
Defining Network Ranges
Defender for Cloud Apps needs to know which IP addresses belong to your organization versus those that belong to external networks. By defining your public IP ranges, the system can distinguish between internal traffic (which is often already monitored) and external traffic (which is where most Shadow IT occurs).
- Go to Settings > Cloud Discovery > IP ranges.
- Add your corporate public IP blocks.
- Tag these ranges as "Corporate" or "VPN" to help with filtering reports later.
Managing App Tags
App tagging is the process of labeling applications based on their status in your organization. You can create custom tags such as "Approved," "Pending Review," or "Blocked." This allows you to create saved filters in the dashboard, so you can quickly see a list of "Pending Review" apps and begin your security vetting process.
Automated Discovery Policies
One of the most powerful features is the ability to create discovery policies. These policies can trigger alerts based on specific conditions. For example, you might want to be alerted if a user uploads more than 5GB of data to an unsanctioned storage site, or if a new application that has a "low risk" score is suddenly detected in your network.
- Navigate to Policies: Go to Control > Policies > Conditional Access or Discovery policies.
- Create a New Policy: Select "App discovery policy."
- Define Conditions: Set the scope (e.g., all users, or a specific department), the app risk score threshold, and the traffic volume threshold.
- Set Actions: Choose whether to send an email alert to the security team, create a notification, or trigger an automated workflow via Power Automate.
Not read yet
Analyzing the Discovery Dashboard
The Discovery Dashboard is where you spend the majority of your time. It provides a high-level view of the cloud app landscape and allows you to drill down into specific details.
| Metric | Purpose |
|---|---|
| Discovered Apps | Total count of unique cloud applications identified in your logs. |
| Total Traffic | The volume of data (in GB/TB) being transferred to cloud services. |
| Active Users | The number of unique employees interacting with these cloud services. |
| Risk Score | A calculated value (1-10) indicating the security posture of an app. |
Drilling Down into App Risk
When you click on a specific application, you are presented with a "Risk Score" breakdown. This breakdown shows you exactly why an app is considered risky. Does it lack multi-factor authentication? Does it have a history of data breaches? Is it hosted in a region with poor regulatory oversight?
By reviewing this information, you can make an informed decision. If an app is vital for a specific team but has a low risk score, you can reach out to the vendor to see if they have enterprise-grade security features you can enable, or you can work with the business unit to find a safer alternative.
Not read yet
Best Practices for Successful Implementation
Implementing Cloud App Discovery is not a "set it and forget it" task. It requires an ongoing operational process to ensure the data remains accurate and the security posture remains strong.
1. Perform Regular Log Reviews
Set a monthly or quarterly cadence to review the "New Discovered Apps" report. This allows you to stay ahead of the curve. Employees are constantly adopting new tools; catching these early allows you to vet them before they become deeply embedded in your workflows.
2. Collaborate with Business Units
Shadow IT often arises because the corporate-sanctioned tools are too difficult to use or don't meet the specific needs of a department. Instead of simply blocking apps, use the discovery data as a conversation starter. Ask the department heads why they are using a specific tool and see if you can provide a secure, sanctioned alternative that offers the same functionality.
3. Focus on "High Risk" First
Don't try to boil the ocean. Start by filtering your dashboard for apps with a risk score of 1-4. These are your biggest liabilities. Once you have addressed the most dangerous apps, move on to higher-rated apps that are being used by a large number of users.
4. Leverage API Connectors
While Cloud App Discovery uses log files, you should also connect your sanctioned apps to Defender for Cloud Apps via API. This gives you deep visibility into the files and user activities inside those apps, which complements the broad, network-level visibility provided by Discovery.
Not read yet
Common Pitfalls and How to Avoid Them
Even with a perfect setup, there are common mistakes that can hinder your effectiveness. Avoiding these will save you significant time and frustration.
Ignoring Encrypted Traffic
If your network appliance sends logs, but you aren't performing SSL/TLS inspection, the logs may only show the domain name (e.g., cloudstorage.com) rather than the specific path or sub-domain. This makes it difficult to tell if a user is accessing a personal account or a corporate account on the same platform. Ensure your proxy or firewall is configured to inspect traffic where possible, or be aware of this limitation in your reporting.
Lack of User Context
If your logs don't include user identity information (only IP addresses), the Discovery report will be less useful. You won't be able to tell who is using the risky app. Always ensure your log source is configured to include the user principal name (UPN) or email address in the log stream.
Over-Blocking
A common mistake is to immediately block any app that isn't on the "Approved" list. This can cause massive disruption to business processes and lead to significant pushback from users. Use a "Monitor" approach first. Observe the usage, identify the users, and talk to them before implementing a block.
Warning: The Impact of Blocking Be extremely careful with blocking applications. If you block a service that is critical to a business department's daily workflow, you will break their processes instantly. Always communicate changes to the organization and provide a transition plan to a sanctioned alternative before enforcing a block.
Not read yet
Advanced Scenario: Integrating with Microsoft Entra ID
One of the most powerful integrations occurs when you link Cloud App Discovery with Microsoft Entra ID (formerly Azure AD). By doing this, you can apply conditional access policies to discovered apps.
For example, if you discover an app that is "low risk" but is being used by a large number of employees, you can choose to "sanction" it in the portal. Once sanctioned, you can create a policy that forces any user accessing that app to authenticate with Multi-Factor Authentication (MFA). This effectively turns an unmanaged Shadow IT app into a semi-managed app, significantly reducing your security risk without requiring you to replace the application entirely.
Step-by-Step: Enabling Cloud App Discovery for Entra ID
- Sanction the App: In the Defender for Cloud Apps portal, find the discovered app and click the "Sanction" button.
- Sync to Entra ID: Ensure that the app is now visible in your Enterprise Applications list in Entra ID.
- Apply Conditional Access: Create a new Conditional Access policy in Entra ID.
- Target the App: Select the newly sanctioned app as the target of the policy.
- Enforce Controls: Require MFA or compliant devices for access.
This workflow is the gold standard for modern security. It allows the business to remain agile while ensuring that every app, whether built by Microsoft or a third-party developer, is protected by the same identity standards.
Not read yet
Code Snippet: Automating Discovery Alerts
While the UI is powerful, you may want to automate the process of querying your discovery data, especially if you have a large number of apps to manage. You can use the Microsoft Graph API to pull data from Defender for Cloud Apps.
The following is a conceptual example of how you might use PowerShell to query for discovered apps with a low risk score.
# This script assumes you have installed the Microsoft Graph PowerShell module
# and have the appropriate permissions to read discovery data.
$clientId = "YOUR_CLIENT_ID"
$tenantId = "YOUR_TENANT_ID"
$clientSecret = "YOUR_CLIENT_SECRET"
# Connect to Microsoft Graph
Connect-MgGraph -ClientId $clientId -TenantId $tenantId -ClientSecret $clientSecret -Scopes "CloudAppSecurity.Read.All"
# Query for discovered apps with a risk score less than 4
$riskyApps = Get-MgBetaSecurityCloudAppSecurityDiscoveryApp -Filter "riskScore lt 4"
foreach ($app in $riskyApps) {
Write-Host "Found risky app: $($app.DisplayName) with score $($app.RiskScore)"
# Add logic here to log to a ticketing system like ServiceNow or Jira
}
Explanation: This script demonstrates how to programmatically identify risky apps. By automating this, you can feed data into your existing security operations center (SOC) workflow, ensuring that your security analysts are alerted as soon as a new, risky application appears in your environment.
Not read yet
The Role of Cloud Discovery in Compliance
In industries like healthcare, finance, or government, Shadow IT is not just a security risk; it is a compliance violation. Using unauthorized cloud storage to host sensitive data (PII, PHI, or financial records) can lead to massive fines.
Cloud App Discovery helps you meet these requirements by providing an audit trail. You can prove to auditors that you are monitoring for unauthorized cloud usage and that you have a defined process for either sanctioning or blocking those apps. By using the "Tags" feature, you can categorize apps by compliance level (e.g., "HIPAA Compliant," "GDPR Compliant") and generate reports that show only non-compliant apps for remediation.
Troubleshooting Common Issues
If you find that your discovery dashboard is empty or showing very little data, check these common areas first:
- Log Format Mismatch: Ensure the log format configured in the portal exactly matches the output format of your appliance. A single mismatched field can cause the entire log file to be rejected.
- Time Synchronization: Ensure your log collector and your network appliances have synchronized clocks (NTP). If the timestamps in the logs are significantly different from the current time, the system may ignore them.
- Encrypted Traffic: As mentioned earlier, if you are not doing SSL inspection, the logs might only show the base domain. If the app is hosted on a large platform like AWS or Azure, the traffic might just be identified as "AWS," which isn't very helpful. Check your proxy logs to see if they contain the full URL/path.
- Log Collector Health: Check the status of your Docker container. If the collector has crashed or is out of disk space, it will stop sending logs to the cloud.
Not read yet
Key Takeaways
As we conclude this lesson, remember that Cloud App Discovery is your primary window into the invisible parts of your network. By implementing it correctly, you shift your security posture from reactive to proactive.
- Visibility is the First Step: You cannot secure what you cannot see. Cloud App Discovery provides the essential visibility needed to map your organization's footprint.
- Continuous Monitoring: Shadow IT is not a one-time problem. Configure automatic log collection to ensure your data is always up to date as new apps are adopted by employees.
- Context Matters: When reviewing discovered apps, prioritize those with low risk scores and high user activity. Use the risk score breakdown to understand the specific threats each app presents.
- Collaboration Over Blocking: Use the data to engage with business units. Help them move from risky, unmanaged tools to secure, sanctioned alternatives.
- Identity Integration: Leverage the power of Microsoft Entra ID to wrap discovered and sanctioned apps in modern security controls like Multi-Factor Authentication.
- Compliance Audit: Use the discovery reports to demonstrate to auditors that you are actively governing cloud usage and mitigating risks related to data residency and compliance.
- Automate for Scale: As your organization grows, use the API to automate your discovery workflows, ensuring that no risky app slips through the cracks.
By following these principles and maintaining a disciplined approach to log management and app vetting, you will successfully mitigate the risks of Shadow IT and provide your users with a secure, productive digital environment.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Creating a Microsoft 365 Tenant
- Creating a Microsoft 365 Tenant Quiz5q
- Implementing and Managing Domains
- Implementing and Managing Domains Quiz5q
- Configuring Organization Settings
- Configuring Organization Settings Quiz5q
- Monitoring Microsoft 365 Service Health
- Monitoring Microsoft 365 Service Health Quiz5q
- Configuring Network Connectivity Insights
- Configuring Network Connectivity Insights Quiz5q
- Managing Software Updates in Microsoft 365
- Managing Software Updates in Microsoft 365 Quiz5q
- Monitoring Microsoft 365 Adoption and Usage
- Monitoring Microsoft 365 Adoption and Usage Quiz5q
- Configuring Microsoft 365 Backup
- Configuring Microsoft 365 Backup Quiz5q
- Creating and Managing Users in Microsoft Entra ID
- Creating and Managing Users in Microsoft Entra ID Quiz5q
- Managing External Users and Guest Access
- Managing External Users and Guest Access Quiz5q
- Creating and Managing Contacts
- Creating and Managing Contacts Quiz5q
- Creating and Managing Microsoft 365 Groups
- Creating and Managing Microsoft 365 Groups Quiz5q
- Managing Shared Mailboxes
- Managing Shared Mailboxes Quiz5q
- Managing Microsoft 365 Licenses
- Managing Microsoft 365 Licenses Quiz5q
- Performing Bulk User Management with PowerShell
- Performing Bulk User Management with PowerShell Quiz5q
- Implementing Group-Based Licensing
- Implementing Group-Based Licensing Quiz5q
- Implementing Roles in Microsoft 365
- Implementing Roles in Microsoft 365 Quiz5q
- Managing Microsoft Entra ID Roles
- Managing Microsoft Entra ID Roles Quiz5q
- Managing Permissions for Microsoft Defender XDR
- Managing Permissions for Microsoft Defender XDR Quiz5q
- Managing Delegation with Administrative Units
- Managing Delegation with Administrative Units Quiz5q
- Managing Roles with Privileged Identity Management
- Managing Roles with Privileged Identity Management Quiz5q
- Managing Microsoft Purview Permissions
- Managing Microsoft Purview Permissions Quiz5q
- Preparing for Identity Synchronization
- Preparing for Identity Synchronization Quiz5q
- Using IdFix for Directory Cleanup
- Using IdFix for Directory Cleanup Quiz5q
- Implementing Microsoft Entra Connect Sync
- Implementing Microsoft Entra Connect Sync Quiz5q
- Implementing Microsoft Entra Cloud Sync
- Implementing Microsoft Entra Cloud Sync Quiz5q
- Monitoring with Microsoft Entra Connect Health
- Monitoring with Microsoft Entra Connect Health Quiz5q
- Troubleshooting Synchronization Issues
- Troubleshooting Synchronization Issues Quiz5q
- Implementing Authentication Methods
- Implementing Authentication Methods Quiz5q
- Implementing Self-Service Password Reset
- Implementing Self-Service Password Reset Quiz5q
- Implementing Microsoft Entra Password Protection
- Implementing Microsoft Entra Password Protection Quiz5q
- Investigating Authentication Issues
- Investigating Authentication Issues Quiz5q
- Configuring Passwordless Authentication
- Configuring Passwordless Authentication Quiz5q
- Planning for Identity Protection
- Planning for Identity Protection Quiz5q
- Implementing Microsoft Entra Identity Protection
- Implementing Microsoft Entra Identity Protection Quiz5q
- Planning Conditional Access Policies
- Planning Conditional Access Policies Quiz5q
- Implementing Conditional Access Policies
- Implementing Conditional Access Policies Quiz5q
- Implementing Multifactor Authentication
- Implementing Multifactor Authentication Quiz5q
- Configuring Named Locations
- Configuring Named Locations Quiz5q
- Understanding Microsoft Security Exposure Management
- Understanding Microsoft Security Exposure Management Quiz5q
- Managing Microsoft Secure Score
- Managing Microsoft Secure Score Quiz5q
- Reviewing and Responding to Incidents
- Reviewing and Responding to Incidents Quiz5q
- Using Advanced Hunting in Defender XDR
- Using Advanced Hunting in Defender XDR Quiz5q
- Reviewing Defender XDR Reports
- Reviewing Defender XDR Reports Quiz5q
- Using Microsoft Defender Threat Intelligence
- Using Microsoft Defender Threat Intelligence Quiz5q
- Configuring Custom Detection Rules
- Configuring Custom Detection Rules Quiz5q
- Implementing Threat Policies in Defender for Office 365
- Implementing Threat Policies in Defender for Office 365 Quiz5q
- Configuring Alert Policies
- Configuring Alert Policies Quiz5q
- Investigating Email and Collaboration Threats
- Investigating Email and Collaboration Threats Quiz5q
- Managing Attack Simulation Training
- Managing Attack Simulation Training Quiz5q
- Managing Restricted Entities
- Managing Restricted Entities Quiz5q
- Onboarding Devices to Defender for Endpoint
- Onboarding Devices to Defender for Endpoint Quiz5q
- Configuring Endpoint Settings
- Configuring Endpoint Settings Quiz5q
- Using Vulnerability Management Dashboard
- Using Vulnerability Management Dashboard Quiz5q
- Responding to Endpoint Vulnerabilities
- Responding to Endpoint Vulnerabilities Quiz5q
- Managing Automated Investigation and Remediation
- Managing Automated Investigation and Remediation Quiz5q
- Configuring App Connector for Microsoft 365
- Configuring App Connector for Microsoft 365 Quiz5q
- Configuring Cloud Apps Policies
- Configuring Cloud Apps Policies Quiz5q
- Interpreting Activity Logs
- Interpreting Activity Logs Quiz5q
- Configuring Cloud App Discovery
- Configuring Cloud App Discovery Quiz5q
- Responding to Cloud App Discovery Issues
- Responding to Cloud App Discovery Issues Quiz5q
- Implementing Sensitive Information Types
- Implementing Sensitive Information Types Quiz5q
- Using Keywords and Regular Expressions
- Using Keywords and Regular Expressions Quiz5q
- Implementing Retention Labels and Policies
- Implementing Retention Labels and Policies Quiz5q
- Implementing Sensitivity Labels and Policies
- Implementing Sensitivity Labels and Policies Quiz5q
- Monitoring Label Usage with Content Explorer
- Monitoring Label Usage with Content Explorer Quiz5q
- Using Activity Explorer and Label Reports
- Using Activity Explorer and Label Reports Quiz5q
- Configuring Auto-Labeling Policies
- Configuring Auto-Labeling Policies Quiz5q
- Configuring DLP Policies for Exchange Online
- Configuring DLP Policies for Exchange Online Quiz5q
- Configuring DLP for SharePoint and OneDrive
- Configuring DLP for SharePoint and OneDrive Quiz5q
- Configuring DLP for Teams and Power BI
- Configuring DLP for Teams and Power BI Quiz5q
- Configuring DLP for Microsoft 365 Copilot
- Configuring DLP for Microsoft 365 Copilot Quiz5q
- Configuring Endpoint DLP
- Configuring Endpoint DLP Quiz5q
- Reviewing DLP Alerts and Events
- Reviewing DLP Alerts and Events Quiz5q
- Responding to DLP Reports
- Responding to DLP Reports Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock MS-102 exam-style practice questions.
Practice for MS-102