Skip to content

Commit a494620

Browse files
Merge branch 'main' into 40fe248f-c177-4378-8b62-7dc527c68ff5_31
2 parents 1447fa1 + 0a06f6a commit a494620

18 files changed

+260
-80
lines changed

CloudAppSecurityDocs/caac-known-issues.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ In the following applications, we encountered scenarios where browsing to a link
7272
- Workplace from Meta
7373
- ServiceNow
7474
- Workday
75+
- Box
7576

7677
### File upload limitations
7778

CloudAppSecurityDocs/mde-govern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Apps marked as **Unsanctioned** in Defender for Cloud Apps are automatically syn
2020

2121
- One of the following licenses:
2222

23-
- Defender for Cloud Apps (E5, AAD-P1m CAS-D) and Microsoft Defender for Endpoint [Plan 2](/microsoft-365/security/defender-endpoint/defender-endpoint-plan-1-2), with endpoints onboarded to Defender for Endpoint
23+
- Defender for Cloud Apps + Endpoint
2424
- Microsoft 365 E5
2525

2626
- Microsoft Defender Antivirus. For more information, see:

defender-endpoint/linux-deploy-defender-for-endpoint-with-chef.md

Lines changed: 127 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.collection:
1515
ms.topic: conceptual
1616
ms.subservice: linux
1717
search.appverid: met150
18-
ms.date: 12/16/2024
18+
ms.date: 12/20/2024
1919
---
2020

2121
# Deploy Defender for Endpoint on Linux with Chef
@@ -27,58 +27,129 @@ ms.date: 12/16/2024
2727
- Microsoft Defender for Endpoint Server
2828
- [Microsoft Defender for Servers](/azure/defender-for-cloud/integration-defender-for-endpoint)
2929

30-
Before you begin: Install unzip if it's not already installed.
30+
## Introduction
3131

32-
The Chef components are already installed and a Chef repository exists (chef generate repo \<reponame\>) to store the cookbook that's used to deploy to Defender for Endpoint on Chef managed Linux servers.
32+
This article talks about how to deploy Defender for Endpoint on Linux at scale with Chef using two methods:
3333

34-
You can create a new cookbook in your existing repository by running the following command from inside the cookbooks folder that is in your chef repository:
34+
1. Install using installer script
35+
2. Manually configuring the repositories for more granular control over the deployment
36+
37+
## Prerequisites
38+
39+
For a description of prerequisites and system requirements, see [Microsoft Defender for Endpoint on Linux](/defender-endpoint/microsoft-defender-endpoint-linux).
40+
41+
## Download the onboarding package
42+
43+
1. Sign in to the [Microsoft Defender portal](https://security.microsoft.com/) then navigate to **Settings** > **Endpoints** > **Device management** > **Onboarding**.
44+
45+
2. In the first drop-down menu, select **Linux Server** as the operating system. In the second drop-down menu, select **Your preferred Linux configuration management tool** as the deployment method.
46+
47+
3. Select **Download onboarding package** and save the file as `WindowsDefenderATPOnboardingPackage.zip`.
48+
49+
![The option to download the onboarded package.](/defender-endpoint/media/portal-onboarding-linux-2.png)
50+
51+
4. Extract the contents of the archive using the following command:
52+
53+
Command:
54+
55+
```
56+
unzip WindowsDefenderATPOnboardingPackage.zip
57+
```
58+
59+
The expected output is:
60+
61+
```
62+
Archive: WindowsDefenderATPOnboardingPackage.zip
63+
inflating: mdatp_onboard.json
64+
```
65+
66+
## Create a directory structure
67+
68+
Before you begin, ensure the Chef components are already installed and a Chef repository (chef generate repo &lt;reponame&gt;) exists to store the cookbook that's used to deploy to Defender for Endpoint on Chef-managed Linux servers.
69+
70+
The following command creates a new folder structure for the new cookbook called **mdatp**. You can also use an existing cookbook if you already have one you'd like to use to add the Defender for Endpoint deployment into.
3571

3672
```bash
3773
chef generate cookbook mdatp
3874
```
3975

40-
This command creates a new folder structure for the new cookbook called mdatp. You can also use an existing cookbook if you already have one you'd like to use to add the Defender for Endpoint deployment into.
41-
After the cookbook is created, create a files folder inside the cookbook folder that just got created:
76+
After the cookbook is created, create a files folder inside the cookbook folder that you created:
4277

4378
```bash
4479
mkdir mdatp/files
4580
```
4681

47-
Transfer the Linux Server Onboarding zip file that can be downloaded from the Microsoft Defender portal to this new files folder.
48-
49-
[!INCLUDE [Defender for Endpoint repackaging warning](../includes/repackaging-warning.md)]
82+
Copy `mdatp_onboard.json` to the `/tmp` folder.
5083

51-
On the Chef Workstation, navigate to the mdatp/recipes folder. This folder is created when the cookbook was generated. Use your preferred text editor (like vi or nano) to add the following instructions to the end of the default.rb file:
84+
On the Chef Workstation, navigate to the **mdatp/recipes** folder, which is automatically created when the cookbook is generated. Use your preferred text editor (like vi or nano) to add the following instructions to the end of the **default.rb** file then save and close the file:
5285

53-
- include_recipe '::onboard_mdatp'
5486
- include_recipe '::install_mdatp'
5587

56-
Then save and close the default.rb file.
88+
## Create a cookbook
89+
90+
A cookbook can be created through any of the following methods:
91+
92+
- [Using an installer script](linux-deploy-defender-for-endpoint-with-chef.md#create-a-cookbook-using-installer-script)
93+
- [Manually configuring repositories](linux-deploy-defender-for-endpoint-with-chef.md#create-a-cookbook-by-manually-configuring-repositories)
94+
95+
### Create a cookbook using installer script
96+
97+
1. Download the installer bash script. Pull the [installer bash script](https://github.com/microsoft/mdatp-xplat/blob/master/linux/installation/mde_installer.sh) from Microsoft GitHub Repository or use the following command to download it:
98+
99+
```bash
100+
wget https://raw.githubusercontent.com/microsoft/mdatp-xplat/refs/heads/master/linux/installation/mde_installer.sh /tmp
101+
```
102+
103+
2. Create a new recipe file named **install_mdatp.rb** in the recipes folder `~/cookbooks/mdatp/recipes/install_mdatp.rb` and add the following text to the file. You can also download the file directly from [GitHub](https://github.com/microsoft/mdatp-xplat/blob/master/linux/installation/third_party_installation_playbooks/chef.install_mdatp_simplified.rb).
104+
105+
```bash
106+
mdatp = "/etc/opt/microsoft/mdatp"
107+
108+
#Download the onboarding json from tenant, keep the same at specific location
109+
onboarding_json = "/tmp/mdatp_onboard.json"
110+
111+
#Download the installer script from: https://github.com/microsoft/mdatp-xplat/blob/master/linux/installation/mde_installer.sh
112+
#Place the same at specific location, edit this if needed
113+
mde_installer= "/tmp/mde_installer.sh"
114+
115+
116+
## Invoke the mde-installer script
117+
bash 'Installing mdatp using mde-installer' do
118+
code <<-EOS
119+
chmod +x #{mde_installer}
120+
#{mde_installer} --install --onboard #{onboarding_json}
121+
EOS
122+
end
123+
```
124+
125+
> [!NOTE]
126+
> The installer script also supports other parameters such as channel, realtime protection, version, etc. To select from the list of available options, check help through the following command:
127+
>```./mde_installer.sh --help```
57128
58-
Next create a new recipe file named install_mdatp.rb in the recipes folder and add this text to the file:
129+
### Create a cookbook by manually configuring repositories
130+
131+
Create a new recipe file named **install_mdatp.rb** in the recipes folder `~/cookbooks/mdatp/recipes/install_mdatp.rb` and add the following text to the file. You can also download the file directly from [Github](https://github.com/microsoft/mdatp-xplat/blob/master/linux/installation/third_party_installation_playbooks/chef.install_mdatp_manual.rb).
59132
60133
```powershell
61134
#Add Microsoft Defender
62-
Repo
63135
case node['platform_family']
64136
when 'debian'
65-
apt_repository 'MDAPRepo' do
137+
apt_repository 'MDATPRepo' do
66138
arch 'amd64'
67139
cache_rebuild true
68140
cookbook false
69141
deb_src false
70142
key 'BC528686B50D79E339D3721CEB3E94ADBE1229CF'
71143
keyserver "keyserver.ubuntu.com"
72-
distribution 'focal'
144+
distribution 'jammy'
73145
repo_name 'microsoft-prod'
74146
components ['main']
75-
trusted true
76-
uri "https://packages.microsoft.com/config/ubuntu/20.04/prod"
147+
uri "https://packages.microsoft.com/ubuntu/22.04/prod"
77148
end
78-
apt_package "mdatp"
149+
apt_package "mdatp"
79150
when 'rhel'
80151
yum_repository 'microsoft-prod' do
81-
baseurl "https://packages.microsoft.com/config/rhel/7/prod/"
152+
baseurl "https://packages.microsoft.com/rhel/7/prod/"
82153
description "Microsoft Defender for Endpoint"
83154
enabled true
84155
gpgcheck true
@@ -90,15 +161,10 @@ when 'rhel'
90161
dnf_package "mdatp"
91162
end
92163
end
93-
```
94-
95-
You need to modify the version number, distribution, and repo name to match the version you're deploying to and the channel you'd like to deploy.
96-
Next you should create an onboard_mdatp.rb file in the mdatp/recipies folder. Add the following text to that file:
97164
98-
```powershell
99165
#Create MDATP Directory
100166
mdatp = "/etc/opt/microsoft/mdatp"
101-
zip_path = "/path/to/chef-repo/cookbooks/mdatp/files/WindowsDefenderATPOnboardingPackage.zip"
167+
onboarding_json = "/tmp/mdatp_onboard.json"
102168
103169
directory "#{mdatp}" do
104170
owner 'root'
@@ -107,37 +173,45 @@ directory "#{mdatp}" do
107173
recursive true
108174
end
109175
110-
#Extract WindowsDefenderATPOnboardingPackage.zip into /etc/opt/microsoft/mdatp
111-
112-
bash 'Extract Onboarding Json MDATP' do
113-
code <<-EOS
114-
unzip #{zip_path} -d #{mdatp}
115-
EOS
116-
not_if { ::File.exist?('/etc/opt/microsoft/mdatp/mdatp_onboard.json') }
117-
end
118-
```
119-
120-
Make sure to update the path name to the location of the onboarding file.
121-
To test deploy it on the Chef workstation, run ``sudo chef-client -z -o mdatp``.
122-
After your deployment, you should consider creating and deploying a configuration file to the servers based on [Set preferences for Microsoft Defender for Endpoint on Linux](linux-preferences.md).
123-
After creating and testing your configuration file, you can put it into the `cookbook/mdatp/files` folder where you also placed the onboarding package. Then you can create a settings_mdatp.rb file in the mdatp/recipies folder and add this text:
124-
125-
```powershell
126-
#Copy the configuration file
127-
cookbook_file '/etc/opt/microsoft/mdatp/managed/mdatp_managed.json' do
128-
source 'mdatp_managed.json'
176+
#Onboarding using tenant json
177+
file "#{mdatp}/mdatp_onboard.json" do
178+
content lazy { ::File.open(onboarding_json).read }
129179
owner 'root'
130180
group 'root'
131-
mode '0755'
132-
action :create
181+
mode '0644'
182+
action :create_if_missing
133183
end
134184
```
135185
136-
To include this step as part of the recipe just add `include_recipe ':: settings_mdatp` to your default.rb file within the recipe folder.
186+
>[!NOTE]
187+
> You can modify the os distribution, distribution version number, channel (prod/insider-fast, insiders-slow) and repo name to match the version you're deploying to and the channel you'd like to deploy to. Run `chef-client --local-mode --runlist 'recipe[mdatp]'` to test the cookbook on the Chef workstation.
188+
189+
## Troubleshoot installation issues
190+
191+
To troubleshoot issues:
137192
138-
You can also use crontab to schedule automatic updates [Schedule an update for Microsoft Defender for Endpoint on Linux](linux-update-MDE-Linux.md).
193+
1. For information on how to find the log that's generated automatically when an installation error occurs, see [Log installation issues](linux-resources.md#log-installation-issues).
139194
140-
Uninstall MDATP cookbook:
195+
2. For information about common installation issues, see [Installation issues](/defender-endpoint/linux-support-install).
196+
197+
3. If the health of the device is `false`, see [Defender for Endpoint agent health issues](/defender-endpoint/health-status).
198+
199+
4. For product performance issues, see [Troubleshoot performance issues](/defender-endpoint/linux-support-perf).
200+
201+
5. For proxy and connectivity issues, see [Troubleshoot cloud connectivity issues](/defender-endpoint/linux-support-connectivity).
202+
203+
To get support from Microsoft, open a support ticket, and provide the log files created by using the [client analyzer](/defender-endpoint/run-analyzer-macos-linux).
204+
205+
## How to configure policies for Microsoft Defender on Linux
206+
207+
You can configure antivirus or EDR settings on your endpoints using any of the following methods:
208+
209+
- See [Set preferences for Microsoft Defender for Endpoint on Linux](/defender-endpoint/linux-preferences).
210+
- See [security settings management](/mem/intune/protect/mde-security-integration) to configure settings in the Microsoft Defender portal.
211+
212+
## Uninstall MDATP cookbook
213+
214+
To uninstall Defender, save the following as a cookbook `~/cookbooks/mdatp/recipes/uninstall_mdatp.rb`.
141215
142216
```powershell
143217
#Uninstall the Defender package
@@ -159,4 +233,7 @@ then
159233
end
160234
end
161235
```
236+
237+
To include this step as part of the recipe, add `include_recipe ':: uninstall_mdatp` to your `default.rb` file within the recipe folder. Ensure that you have removed the `include_recipe '::install_mdatp'` from the `default.rb` file.
238+
162239
[!INCLUDE [Microsoft Defender for Endpoint Tech Community](../includes/defender-mde-techcommunity.md)]

defender-endpoint/network-protection.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Use network protection to help prevent connections to malicious or suspic
33
description: Protect your network by preventing users from accessing known malicious and suspicious network addresses
44
ms.service: defender-endpoint
55
ms.localizationpriority: medium
6-
ms.date: 12/13/2024
6+
ms.date: 12/18/2024
77
audience: ITPro
88
author: denisebmsft
99
ms.author: deniseb
@@ -63,8 +63,11 @@ Here are a few important points to keep in mind:
6363
- Encrypted URLs (full path) are only blocked on Microsoft browsers (Internet Explorer, Microsoft Edge).
6464
- Encrypted URLs (FQDN only) are blocked in non-Microsoft browsers.
6565
- URLs loaded via HTTP connection coalescing, such as content loaded by modern CDNs, are only blocked on Microsoft browsers (Internet Explorer, Microsoft Edge), unless the CDN URL itself is added to the indicator list.
66+
67+
- Network Protection will block connections on both standard and non-standard ports.
68+
6669
- Full URL path blocks are applied for unencrypted URLs.
67-
70+
6871
There might be up to two hours of latency (usually less) between the time when the action is taken and the URL/IP is blocked.
6972

7073
Watch this video to learn how network protection helps reduce the attack surface of your devices from phishing scams, exploits, and other malicious content:

defender-endpoint/web-protection-overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: deniseb
77
author: denisebmsft
88
ms.reviewer: tdoucette
99
ms.localizationpriority: medium
10-
ms.date: 10/23/2024
10+
ms.date: 12/18/2024
1111
manager: deniseb
1212
audience: ITPro
1313
ms.collection:
@@ -53,6 +53,8 @@ Web threat protection includes:
5353
> - Only single IP addresses are supported (no CIDR blocks or IP ranges) in custom indicators.
5454
> - Encrypted URLs (full path) can only be blocked on first party browsers (Internet Explorer, Edge).
5555
> - Encrypted URLs (FQDN only) can be blocked in third party browsers (i.e. other than Internet Explorer, Edge).
56+
> - URLs loaded via HTTP connection coalescing, such as content loaded by modern CDNs, are only blocked on Microsoft browsers (Internet Explorer, Microsoft Edge), unless the CDN URL itself is added to the indicator list.
57+
> - Network Protection will block connections on both standard and non-standard ports.
5658
> - Full URL path blocks can be applied for unencrypted URLs.
5759
5860
There might be up to two hours of latency (usually less) between the time the action is taken, and the URL and IP being blocked. For more information, see [Web threat protection](web-threat-protection.md).

defender-office-365/defender-for-office-365-whats-new.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: chrisda
88
author: chrisda
99
manager: deniseb
1010
ms.localizationpriority: medium
11-
ms.date: 10/09/2024
11+
ms.date: 12/17/2024
1212
audience: ITPro
1313
ms.collection:
1414
- m365-security
@@ -39,6 +39,14 @@ For more information on what's new with other Microsoft Defender security produc
3939
- [What's new in Microsoft Defender for Identity](/defender-for-identity/whats-new)
4040
- [What's new in Microsoft Defender for Cloud Apps](/cloud-app-security/release-notes)
4141

42+
## December 2024
43+
44+
- [Considerations for integrating non-Microsoft security services with Microsoft 365](mdo-integrate-security-service.md): Considerations and recommendations for deploying a defense-in-depth email security strategy using third-party security services.
45+
46+
## November 2024
47+
48+
- **Introducing LLM-based BEC detection and classification**: Microsoft Defender for Office 365 now detects BEC attacks using large language model (LLM)-based filters to analyze an email's language and infer intent. To learn more, see our blog post [Microsoft Ignite: Redefining email security with LLMs to tackle a new era of social engineering](https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/microsoft-ignite-redefining-email-security-with-llms-to-tackle-a-new-era-of-soci/4302421).
49+
4250
## October 2024
4351

4452
- **Tenant Allow/Block List in Microsoft 365 now supports IPv6 address**: The [Tenant Allow/Block List](tenant-allow-block-list-about.md) now supports [allowing and blocking IPv6 addresses] (tenant-allow-block-list-ip-addresses-configure.md). It's available in Microsoft 365 Worldwide, GCC, GCC High, DoD, and Office 365 operated by 21Vianet environments.

defender-office-365/mdo-integrate-security-service.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ While Microsoft provides a comprehensive platform for email security, we underst
4545

4646
This configuration is covered in detail in [Enhanced Filtering for Connectors in Exchange Online](/Exchange/mail-flow-best-practices/use-connectors-to-configure-mail-flow/enhanced-filtering-for-connectors) and is fully supported by Microsoft. Email security vendors that support [Authenticated Received Chain (ARC)](email-authentication-arc-configure.md) work best, but there are limitations. For example, avoid using [Safe Links](safe-links-about.md) to check and wrap links with a non-Microsoft service that also rewrites links. Double link wrapping can prevent Safe Links from validating link status, detonating links for threats, and potentially triggering one-time use links. We recommend disabling the link wrapping feature in the non-Microsoft service.
4747

48+
For additional background on this configuration, see [Manage mail flow using a third-party cloud service with Exchange Online](/exchange/mail-flow-best-practices/manage-mail-flow-using-third-party-cloud).
49+
4850
## Integration via the Microsoft Graph API
4951

5052
Some non-Microsoft services authenticate and use the Microsoft Graph API to scan messages after they're delivered to user mailboxes. This configuration also allows the non-Microsoft service to remove messages that they believe to be malicious or unwanted. Typically, this configuration requires full access to mailboxes by the non-Microsoft service. Be sure to understand the security and support practices of the non-Microsoft service before granting this permission.

0 commit comments

Comments
 (0)