Cloud App Discovery and Control

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② 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

Lesson: Cloud App Discovery and Control in Microsoft Defender for Cloud Apps

Introduction: The Reality of Shadow IT

In the modern digital workplace, the perimeter of the corporate network has effectively dissolved. Employees no longer rely solely on sanctioned software provided by the IT department; instead, they frequently adopt third-party cloud applications to improve their productivity and workflow. This phenomenon, known as "Shadow IT," presents a significant security challenge. When employees sign up for cloud services without oversight, they often store sensitive corporate data in environments that lack proper security controls, compliance certifications, or visibility from the central security operations team.

Microsoft Defender for Cloud Apps (formerly Microsoft Cloud App Security) serves as the primary tool to regain visibility and control over this ecosystem. By utilizing Cloud App Discovery, organizations can identify which cloud services are being accessed, who is using them, and how much data is being transferred. This lesson explores the mechanics of discovery, the process of evaluating risk, and the methods for enforcing control, ensuring that your organization can support user productivity without compromising its security posture.

Not read yet

Understanding the Discovery Process

The foundation of securing cloud applications is visibility. You cannot protect what you cannot see. The discovery process in Microsoft Defender for Cloud Apps works by analyzing traffic logs from your network devices, such as firewalls, proxies, and web gateways. These logs contain metadata about every connection made from within your organization to external cloud services.

How Log Analysis Works

When you integrate your network infrastructure with Defender for Cloud Apps, the system ingests these raw log files. It then compares the destination IP addresses and domains against a massive, continuously updated catalog of over 30,000 cloud applications. This catalog includes information about each app’s security certifications, regulatory compliance status, and general risk profile.

Once the logs are processed, the platform provides a detailed dashboard showing:

  • Top Apps: A list of the most frequently used cloud services within your organization.
  • Active Users: A breakdown of which employees are accessing specific applications.
  • Data Volume: How much information is being uploaded and downloaded, which helps identify potential data exfiltration or high-risk usage patterns.
  • Risk Scores: A numerical rating for each application based on its security controls, such as whether it supports multi-factor authentication (MFA) or has undergone third-party audits.

Callout: Discovery vs. CASB It is important to distinguish between "Cloud Discovery" and "Cloud Access Security Broker (CASB) functionality." Discovery is the passive act of identifying usage and assessing risk. CASB functionality involves the active enforcement of security policies, such as blocking access, restricting file sharing, or scanning for sensitive content within those apps. You need discovery to inform your CASB strategy.

Not read yet

Step-by-Step: Setting Up Cloud Discovery

To begin gaining visibility, you must feed traffic data into the Defender for Cloud Apps portal. You can achieve this using automatic log uploads from supported appliances or by manually uploading log files.

1. Configuring Automatic Log Uploads

This is the preferred method for continuous monitoring. You will deploy a log collector—a small virtual machine or container—within your network. This collector acts as a gateway that receives logs from your firewalls and forwards them to the Microsoft cloud securely.

Steps to set up the collector:

  1. Navigate to the Microsoft Defender portal and select Cloud Apps > Cloud Discovery > Settings.
  2. Select Log collectors and click Add data source.
  3. Choose the type of firewall or proxy you are using (e.g., Cisco, Palo Alto, Zscaler).
  4. Follow the provided installation script to deploy the log collector in your environment.
  5. Configure your network device to forward syslog data to the IP address of the log collector.

2. Manual Log Upload

If you are in a proof-of-concept phase or have a smaller network, manual uploads are sufficient. You can export logs from your firewall in a standard format (like W3C or CSV) and upload them directly to the portal.

Warning: Data Privacy When uploading logs, be aware that they may contain personally identifiable information (PII) of your users. Always ensure that your log collection process complies with local data privacy regulations such as GDPR. Within the Defender settings, you can choose to mask usernames if you need to anonymize logs for privacy compliance.

Not read yet

Analyzing Risk and Categorizing Apps

Once the data is flowing, the next step is to interpret the risk. Not all "Shadow IT" is malicious. Some applications are benign productivity tools, while others may pose significant risks due to poor security practices or data handling policies.

The Risk Scorecard

Defender for Cloud Apps assigns a risk score from 1 to 10 to every application it discovers. This score is calculated based on over 90 different risk factors, including:

  • General Information: Does the app have a physical address? Is it a public company?
  • Security Controls: Does the app support SAML, MFA, or encryption at rest?
  • Compliance: Is the app certified for SOC 2, HIPAA, or ISO 27001?
  • Legal: Does the app have a clear privacy policy and data ownership terms?

Categorizing Apps

You should create custom categories for your discovered apps to help prioritize your remediation efforts. For instance, you might categorize apps as:

  • Sanctioned: Apps that the company has officially vetted and approved for use.
  • Unsanctioned: Apps that are explicitly forbidden due to high risk or data security concerns.
  • Pending Review: New apps that have appeared in the discovery logs and require an assessment by the security team.

Not read yet

Implementing Control Policies

Visibility is only the first half of the equation. To effectively mitigate threats, you must implement policies that act upon the data you have discovered.

Blocking Unsanctioned Apps

If you identify an application that is highly risky (e.g., a file-sharing site with poor security), you can mark it as "Unsanctioned" in the portal. Once marked, you can integrate this status with your network security infrastructure (like Microsoft Defender for Endpoint or your corporate firewall) to block access to that domain for all managed devices.

Conditional Access Policies

For applications that are "Sanctioned" but still require oversight, use Conditional Access policies. This allows you to enforce requirements like:

  • MFA enforcement: Requiring users to authenticate via MFA before accessing the app.
  • Device compliance: Only allowing access if the device is managed and healthy.
  • Location restrictions: Blocking access if the user is connecting from an unusual or high-risk geographic region.

Callout: The Power of App Connectors While Discovery identifies apps via network logs, "App Connectors" are different. Connectors use APIs to communicate directly with apps (like Salesforce, Box, or Google Workspace). This allows you to monitor files, see who is sharing what, and revoke permissions in real-time. Discovery is the "wide net," while Connectors are the "surgical tool."

Not read yet

Practical Example: Identifying Data Exfiltration

Imagine a scenario where an employee begins uploading large volumes of data to a personal cloud storage site that hasn't been vetted.

  1. Discovery: Your log collector notices a spike in traffic to personal-storage.com originating from a specific user's workstation.
  2. Analysis: The administrator checks the Cloud Discovery dashboard and sees that this user has uploaded 5GB of data in two hours.
  3. Alerting: You configure an "Anomalous usage" policy that triggers an alert when a user uploads more than 1GB to a non-sanctioned storage site.
  4. Response: The system automatically notifies the security team and sends a prompt to the user asking them to confirm the business intent of the transfer. If the behavior continues, you can automatically disable the user's account or block the specific domain.

Best Practices for Cloud App Management

Maintaining a secure environment is an ongoing process, not a one-time project. Follow these best practices to keep your posture strong.

1. Regularly Review the Discovery Dashboard

Set a recurring calendar event to review your "Discovered Apps" list. New cloud services appear constantly, and users will try new tools. Identifying these early allows you to vet them before they become deeply integrated into your workflows.

2. Collaborate with Business Units

Don't simply block everything. If you find a popular app that isn't sanctioned, speak to the business department using it. Ask them why they prefer it over the corporate-approved alternative. You might find that the approved tool is missing a key feature, which provides an opportunity to improve your internal offerings.

3. Automate Remediation

Manual review is time-consuming. Use the policy engine to automate common tasks. For example, you can set a policy that automatically sends an email to any user who starts using a high-risk application, educating them on the potential risks and providing a link to the corporate-approved alternative.

4. Keep Your Risk Catalog Updated

Microsoft updates the risk scores for thousands of applications automatically. However, you should occasionally review your internal definitions of "Sanctioned" vs. "Unsanctioned" to ensure they align with the current risk scores provided by the platform.

Not read yet

Common Pitfalls and How to Avoid Them

Even experienced administrators can fall into common traps when managing cloud discovery.

  • Ignoring the "Noise": If you try to investigate every single discovered application, you will burn out. Focus your efforts on the apps with the highest data volume, the most users, or the lowest risk scores.
  • Over-blocking: If you block applications without providing an alternative, users will simply find other ways to work around your controls. Always provide a path forward—if you block a tool, have a sanctioned replacement ready.
  • Failing to Test Policies: Before applying a block policy to your entire organization, test it on a small pilot group. Unexpectedly breaking a critical business application can cause significant friction and loss of productivity.
  • Neglecting Mobile Devices: Cloud discovery often focuses on the wired network. Ensure that your mobile devices (using tools like Defender for Endpoint) are also reporting their web traffic so you don't have a blind spot for remote workers.

Not read yet

Comparison: Discovery Methods

Method Best For Pros Cons
Log Collector Large Organizations Real-time, continuous, invisible to users Requires server maintenance
Manual Upload Small/POC No infrastructure required Static, time-consuming, not real-time
Defender for Endpoint All Devices Works off-network, no proxy needed Requires endpoint agent installed

Advanced Configuration: Custom App Tags

One often-overlooked feature is the ability to tag applications with custom metadata. In addition to the built-in risk scores, you can create tags such as "HR-Approved," "Requires Legal Review," or "Financial Data Allowed." By using these tags, you can create granular policies. For example, you might create a policy that says, "Only allow users in the Finance group to upload files to apps tagged as 'Financial Data Allowed'." This level of precision transforms your security posture from a blunt instrument into a fine-tuned engine.

Not read yet

Code Snippet: Automating Policy Evaluation

While the GUI is powerful, you can interact with the Defender for Cloud Apps API to automate reporting. Below is a conceptual example of how you might use PowerShell to list all discovered apps with a risk score lower than 5.

# Conceptual PowerShell script to fetch low-score apps via API
$tenantId = "your-tenant-id"
$apiKey = "your-api-key"
$apiUrl = "https://portal.cloudappsecurity.com/api/v1/discovery/apps/"

$headers = @{
    "Authorization" = "Token $apiKey"
    "Content-Type" = "application/json"
}

# Fetching apps and filtering for low risk
$apps = Invoke-RestMethod -Uri $apiUrl -Method Get -Headers $headers
$lowRiskApps = $apps | Where-Object { $_.riskScore -lt 5 }

foreach ($app in $lowRiskApps) {
    Write-Host "Alert: Low risk app detected: $($app.name) with score $($app.riskScore)"
}

Note: This script requires an API token generated in the Defender for Cloud Apps portal. Ensure your service principal has the appropriate read permissions.

Not read yet

Integrating with Microsoft Sentinel

For organizations with a Security Operations Center (SOC), integrating Defender for Cloud Apps with Microsoft Sentinel is essential. When you stream your discovery logs into Sentinel, you can create sophisticated correlation rules. For example, you could correlate a user accessing a high-risk cloud app with a simultaneous login from a foreign country, triggering a high-priority incident in your SIEM. This cross-platform visibility is what makes the Microsoft XDR ecosystem truly effective.

Addressing Common Questions

1. Does Cloud Discovery impact network performance?

No. The log collector processes logs asynchronously. It does not sit in the direct path of user traffic (like a transparent proxy), so it does not introduce latency or become a bottleneck for your network.

2. Can I use Cloud Discovery to block traffic?

Discovery itself is passive. However, by marking an app as "Unsanctioned," you can trigger a block action via your integrated security tools (like Defender for Endpoint or your firewall), which then prevents the traffic from reaching the destination.

3. How often is the app risk database updated?

Microsoft updates the app catalog daily. New apps are added, and risk scores for existing apps are adjusted based on changes in their security certifications, policy updates, and vulnerability reports.

4. What happens if an app isn't in the catalog?

You can still track it. If a user accesses an unknown domain, Defender for Cloud Apps will log it as an "Unidentified" or "Custom" app. You can then manually investigate this domain and add it to your catalog if necessary.

Not read yet

The Role of User Education

Technology alone cannot solve the problem of Shadow IT. Often, users adopt unauthorized apps not out of malice, but out of frustration with existing tools. Once you have identified the top apps in your environment, use that information to drive internal training. If you see that 50% of your organization is using a specific file-sharing tool, it may be time to evaluate whether the corporate standard needs to be updated or if you need to provide better training on the existing approved tools.

Transparency is key. When you notify a user that an app they are using is risky, explain why. Is it because the app doesn't encrypt data? Is it because the app has had multiple data breaches? When users understand the specific security risks, they are much more likely to cooperate with IT security policies.

Key Takeaways

  1. Visibility is the First Step: You cannot secure what you do not know about. Cloud Discovery is the essential first step to mapping your organization's footprint in the cloud.
  2. Risk-Based Prioritization: Use the built-in risk scores provided by Microsoft to focus your efforts on the applications that pose the greatest threat to your organization.
  3. Automation is Essential: Use the policy engine to automate alerts and remediation. Manually monitoring thousands of apps is impossible; let the system do the heavy lifting for you.
  4. Integration is Strength: Connect your discovery logs with other security tools like Defender for Endpoint, Conditional Access, and Microsoft Sentinel to create a layered defense.
  5. Policy vs. Reality: Always balance security requirements with user productivity. If you block an app, provide a viable, secure alternative, or you will simply drive the behavior deeper into the shadows.
  6. Continuous Improvement: Cloud app usage is dynamic. Treat your discovery and control strategy as a living process that requires regular review, adjustment, and communication with your end users.

By following these principles, you move from a state of reactive firefighting to proactive governance. You ensure that your organization remains agile and productive, while maintaining the high level of security expected in today’s complex threat landscape. Remember that the goal is not to stop users from using cloud tools, but to ensure they do so in a way that protects the organization's most valuable asset: its data.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.