Lesson 6 of 6 Managing Posture with Defender for Cloud

Discovering Assets with Defender EASM

This lesson explains how Defender EASM finds internet-facing assets, including those that nobody remembers.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain the outside-in view.
  • Describe seeds and discovery.
  • Identify asset states.
  • Describe how to use insights.

The outside-in view

Defender for Cloud knows about resources that are connected to it. But a marketing team may have launched a website through an outside agency, an acquired company may have forgotten servers, and an old test site may still be online. This unknown or unmanaged infrastructure is called shadow IT, and it is exactly what attackers look for. Microsoft Defender External Attack Surface Management (EASM) scans the internet from outside, in the same way as an attacker, and builds an inventory of what belongs to an organization.

It needs no agent and no connection to the assets, since it relies on public data. The comparison with CSPM is simple: CSPM looks from the inside at what you know that you own, and EASM looks from the outside at what the internet can see.

Scenario questions

EASM or CSPM?

Exam skills 4.1.6 · 4.1.1

Choose between EASM and CSPM for each requirement.

Log in to try this activity Interactive activities are free with an account.

Seeds and discovery

Discovery begins with seeds: known assets that act as starting points. Seeds can be domains, IP blocks, hosts, email contacts, autonomous system numbers (ASNs) and Whois organizations. Private IP addresses cannot be used. Microsoft provides a prebuilt attack surface for many organizations, which offers a quick start.

Discovery then works recursively, following observed connections. It might find that a domain resolves to an IP block, that the block hosts other domains, and that a certificate names further hosts. It sorts results by how strongly each one links to the organization. Discovery groups hold independent sets of seeds, with their own recurrence schedule, weekly by default. Business units or subsidiaries can each have their own group. Exclusions keep certain entities, such as shared hosting ranges, out of the results.

Select all that apply

Discovery seeds

Exam skills 4.1.6

Identify what can be used as EASM discovery seeds.

Log in to try this activity Interactive activities are free with an account.

Inventory and asset states

Discovered assets go into an inventory, with details such as technologies, certificates, open ports and hosting. Each asset has a state, and managing those states is much of the day-to-day work.

StateMeaningAction
Approved InventoryConfirmed as ownedIncluded in dashboards and monitored
CandidatePossibly related, unconfirmedReview, and confirm ownership
DependencyOwned by a third party, but your assets rely on itTrack the supply chain risk
Monitor OnlyRelevant, but not under your controlWatch it, for example a partner's asset
Requires InvestigationA link exists, but more work is neededInvestigate manually

Only an approved asset receives full analysis, so reviewing candidates matters. Approving too little leaves gaps, and approving too much adds noise.

Match the pairs

EASM asset states

Exam skills 4.1.6

Match each EASM asset state with its meaning.

Log in to try this activity Interactive activities are free with an account.

Insights and dashboards

EASM turns inventory into insight, through dashboards. The Attack surface summary shows high-severity observations. The Security posture dashboard highlights issues such as expired certificates and exposed services. Further dashboards address compliance and privacy, such as missing cookie consent, and the OWASP Top 10. Attack surface insights use vulnerability and infrastructure data to show key areas of concern.

Findings need routing to the people who can act: decommission a forgotten site, renew a certificate, or bring an unmanaged asset into Defender for Cloud so that it receives protection. EASM can connect to Log Analytics and Azure Data Explorer through data connections, so that Microsoft Sentinel can use its results.

Working with EASM

EASM is an Azure service with a workspace resource, created in a subscription and resource group, with a free trial period. There are also two related experiences. Defender CSPM includes external attack surface data for internet exposure analysis. The Threat Intelligence Briefing Agent in Security Copilot requires a Defender EASM Standard licence. A workspace can be automated through its REST API, for instance to add new domains after an acquisition.

  1. Create a workspace

    Deploy Defender EASM to a resource group.

  2. Seed

    Use a prebuilt attack surface, or add domains and IP blocks.

  3. Discover

    Run discovery, and review the results.

  4. Curate

    Approve what is owned, and exclude what is not.

  5. Act

    Fix findings, and feed the data to other tools.

Worked example

An acquisition

A company has acquired a smaller firm, and it wants to find that firm's internet-facing websites and any expired certificates, including sites that the IT staff may not know about. It has only the firm's main domain name and its company name. What should it use?

Use Defender EASM. Create a discovery group with the domain and the Whois organization as seeds, and run discovery. Review Candidate assets, approve those that are owned, and use the dashboards to find expired certificates.

Defender CSPM needs connected environments, and it would not reveal unknown sites hosted elsewhere. An internal network scanner cannot find public assets at outside hosting companies. A private IP range cannot be used as a seed.

Check yourself

Why review Candidate assets?

Show answer

They are possibly related but unconfirmed, and only approved assets receive full analysis.

Exam Tips

Remember for the exam

  • EASM looks from the outside, and CSPM from the inside.
  • Seeds are starting points, and private IP addresses cannot be used.
  • Review Candidate assets to confirm ownership.
  • Discovery groups run on their own schedule, weekly by default.