Lesson 3 of 5 Defender for Servers and Hybrid Security

Configuring Defender for Servers Settings

This lesson explains vulnerability scanning, EDR integration and file integrity monitoring.

Learning outcomes

After completing this lesson, you will be able to:

  • Compare agent-based and agentless scanning.
  • Describe the EDR integration.
  • Explain file integrity monitoring.
  • Identify other Plan 2 capabilities.

The settings page

On the subscription's Defender plans page, Settings for the Servers plan lists its components. These include vulnerability assessment, agentless scanning for machines, the Defender for Endpoint integration, guest configuration, and file integrity monitoring. Each can be turned on or off. Plan 2 enables several by default, and it is worth checking them, since a component that is off can explain a gap in the results.

Azure Policy can configure them across subscriptions, which helps to avoid one subscription being left out.

Vulnerability scanning

Defender for Cloud uses Microsoft Defender Vulnerability Management for machine vulnerabilities, and it has two collection modes.

Agent-based
How it worksThe Defender for Endpoint sensor reports from within
NeedsPlan 1 or Plan 2
FreshnessNear real time
Covers a machine with no agentNo
Performance effectA light sensor
Agentless
How it worksDisk snapshots are analysed outside the machine
NeedsPlan 2 or Defender CSPM
FreshnessDaily
Covers a machine with no agentYes
Performance effectNone on the machine

The two complement each other. Agent-based scanning gives current information on running software, and agentless scanning finds gaps, such as machines where the sensor never installed. Findings appear in the recommendation Machines should have vulnerability findings resolved, and premium capabilities such as security baselines are in the Defender portal.

Sort into groups

Agent-based or agentless?

Exam skills 3.2.6

Decide which vulnerability scanning mode each statement describes.

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

Endpoint detection and response

Endpoint detection and response (EDR) records activity on a machine, detects malicious behaviour, and supports investigation and response. Defender for Servers includes a licence for Microsoft Defender for Endpoint for servers, and the integration handles deployment. Alerts appear in Defender for Cloud and in the Defender portal, where they join incidents.

To check coverage, use the recommendation that EDR solution should be installed on virtual machines. Defender for Cloud can detect several other EDR products, so a machine that uses a third-party solution can be reported as healthy. Where EDR is present, analysts can isolate a device, run an antivirus scan and collect an investigation package. These actions are performed in the Defender portal.

File integrity monitoring

File integrity monitoring (FIM) watches operating system files, Windows registries, application files and Linux files for changes that might indicate an attack. A web server's configuration file changing at 3 a.m. is worth knowing about. FIM is a Plan 2 feature. It uses the Defender for Endpoint sensor, and it replaces the older method based on the Log Analytics agent. It stores results in a Log Analytics workspace, so it uses that workspace's data retention, and the 500 MB benefit may offset part of the cost.

After enabling it, an administrator chooses the workspace and refines the list of monitored paths. Monitoring too much produces noise and cost, so focus on critical system and application files.

True or false

FIM and EDR

Exam skills 3.2.6

Check how file integrity monitoring and EDR work in Defender for Servers.

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

Other Plan 2 capabilities

Several other features belong to Plan 2. Adaptive features from earlier versions have largely been replaced, so do not assume that older tools such as adaptive application controls remain. Network map shows the topology and exposure of Azure VMs. Operating system baseline findings depend on the Machine Configuration extension. Defender for DNS alerts and Azure network layer detection are included as well.

The 500 MB of data ingestion per server per day applies to certain security data types in a workspace, which reduces the cost of those logs, and it requires the workspace to have the relevant solution enabled.

Worked example

A gap in findings

A subscription has Defender for Servers Plan 2. Some Linux VMs show no vulnerability findings at all, and the Defender for Endpoint sensor has failed to install on them. The company wants findings for those VMs without solving the sensor problem first. What should it check?

Confirm that agentless scanning is turned on in the plan's settings. It does not depend on the sensor, because it analyses disk snapshots. Then check for known limits: a VM with more than 14 disks, or with Ultra Disk or Premium SSD v2, is not supported, and a disk that uses a customer-managed key needs access to be granted.

Installing a third-party scanner adds cost and work. Moving to Plan 1 would remove agentless scanning altogether. A data collection rule has no relevance to vulnerability findings.

Check yourself

Which scanning mode gives the freshest view of installed software?

Show answer

Agent-based scanning through the Defender for Endpoint sensor, which reports in near real time.

Exam Tips

Remember for the exam

  • Agentless and agent-based vulnerability scanning complement each other.
  • File integrity monitoring needs Plan 2 and a Log Analytics workspace.
  • Agentless results need no sensor, and arrive daily.
  • Response actions on devices are performed in the Defender portal.