Skip to content

Commit 79ffa57

Browse files
authored
Merge pull request #24011 from MicrosoftDocs/siosulli-linux-sap
Siosulli linux sap
2 parents 42f75a3 + 9cd3fe3 commit 79ffa57

2 files changed

Lines changed: 216 additions & 0 deletions

File tree

microsoft-365/security/defender-endpoint/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@
232232
href: linux-install-with-saltack.md
233233
- name: Advanced deployment for Defender for Endpoint on Linux
234234
href: comprehensive-guidance-on-linux-deployment.md
235+
- name: Deployment guidance for Defender for Endpoint on Linux for SAP
236+
href: mde-linux-deployment-on-sap.md
235237
- name: Configure Defender for Endpoint on Linux
236238
items:
237239
- name: Configure and validate exclusions
Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
---
2+
title: Deployment guidance for Microsoft Defender for Endpoint on Linux for SAP
3+
description: Deployment guidance for Microsoft Defender for Endpoint on Linux for SAP
4+
keywords: microsoft, defender, Microsoft Defender for Endpoint, linux, installation, SAp
5+
ms.service: defender-endpoint
6+
ms.author: dansimp
7+
author: dansimp
8+
ms.localizationpriority: medium
9+
manager: dansimp
10+
audience: ITPro
11+
ms.collection:
12+
- m365-security
13+
- tier3
14+
- mde-linux
15+
ms.topic: conceptual
16+
ms.subservice: linux
17+
search.appverid: met150
18+
ms.date: 01/10/2024
19+
---
20+
21+
# Deployment guidance for Microsoft Defender for Endpoint on Linux for SAP
22+
23+
**Applies to:**
24+
25+
- [Microsoft Defender for Endpoint Plan 1](https://go.microsoft.com/fwlink/p/?linkid=2154037)
26+
- [Microsoft Defender for Endpoint Plan 2](https://go.microsoft.com/fwlink/p/?linkid=2154037)
27+
28+
This article provides deployment guidance for Microsoft Defender for Endpoint on Linux for SAP. You'll learn about recommended SAP OSS(Online Services System) notes, the system requirements, prerequisites, important configuration settings, recommended antivirus exclusions, and guidance on scheduling antivirus scans.
29+
30+
Conventional security defenses that have been commonly used to protect SAP systems such as isolating infrastructure behind firewalls and limiting interactive operating system logons are no longer considered sufficient to mitigate modern sophisticated threats. It's essential to deploy modern defenses to detect and contain threats in real-time. SAP applications unlike most other workloads require basic assessment and validation before deploying Microsoft Defender for Endpoint. The Enterprise Security administrators should contact the SAP Basis Team prior to deploying Defender for Endpoint. The SAP Basis Team should be cross trained with a basic level of knowledge about Defender for Endpoint.
31+
32+
## Recommended SAP OSS Notes
33+
34+
- [2248916 - Which files and directories should be excluded from an antivirus scan for SAP BusinessObjects Business Intelligence Platform products in Linux/Unix? - SAP ONE Support Launchpad](https://launchpad.support.sap.com/#/notes/2248916)
35+
- [1984459 - Which files and directories should be excluded from an antivirus scan for SAP Data Services - SAP ONE Support Launchpad](https://launchpad.support.sap.com/#/notes/1984459)
36+
- [2808515 - Installing security software on SAP servers running on Linux - SAP ONE Support Launchpad](https://launchpad.support.sap.com/#/notes/2808515)
37+
- [1730930 - Using antivirus software in an SAP HANA appliance - SAP ONE Support Launchpad](https://launchpad.support.sap.com/#/notes/1730930)
38+
- [1730997 - Unrecommended versions of antivirus software - SAP ONE Support Launchpad](https://launchpad.support.sap.com/#/notes/1730997)
39+
40+
## SAP Applications on Linux
41+
42+
- SAP only supports Suse, Redhat and Oracle Linux. Other distributions aren't supported for SAP S4 or NetWeaver applications.
43+
- Suse 15.x, Redhat 8.x or 9.x and Oracle Linux 8.x are strongly recommended.
44+
- Suse 12.x, Redhat 7.x and Oracle Linux 7.x are technically supported but haven't been extensively tested.
45+
- Suse 11.x, Redhat 6.x and Oracle Linux 6.x might not be supported and haven't been tested.
46+
- Suse and Redhat offer tailored distributions for SAP. These “for SAP” versions of Suse and Redhat might have different packages preinstalled and possibly different kernels.
47+
- SAP only supports certain Linux File systems. In general, XFS and EXT3 are used. Oracle Automatic Storage Management (ASM) filesystem is sometimes used for Oracle DBMS and can't be read by Defender for Endpoint.
48+
- Some SAP applications use “standalone engines” such as TREX, Adobe Document Server, Content Server and LiveCache. These engines require specific configuration and file exclusions.
49+
- SAP applications often have Transport and Interface directories with many thousands of small files. If the number of files is larger than 100,000, it might and affect performance. It's recommended to archive files.
50+
- It's strongly recommended to deploy Defender for Endpoint to non-productive SAP landscapes for several weeks before deploying to production. The SAP Basis Team should use tools such as sysstat, KSAR and nmon to verify if CPU and other performance parameters are impacted.
51+
52+
## Prerequisites for deploying Microsoft Defender for Endpoint for Linux on SAP VMs
53+
54+
- Microsoft Defender for Endpoint [version](./linux-whatsnew.md) >= 101.23082.0009 | Release version: 30.123082.0009 or higher must be deployed.
55+
- Microsoft Defender for Endpoint for Linux supports all the [Linux releases](microsoft-defender-endpoint-linux.md#system-requirements) used by SAP applications.
56+
- Microsoft Defender for Endpoint for Linux requires connectivity to [specific Internet endpoints](microsoft-defender-endpoint-linux.md#network-connections) from VMs to update AV Definitions.
57+
- Microsoft Defender for Endpoint for Linux requires some crontab (or other task scheduler) entries to schedule scans, log rotation, and Microsoft Defender for Endpoint updates. Enterprise Security team will normally manage these entries. Refer to [How to schedule an update of the Microsoft Defender for Endpoint (Linux) | Microsoft Learn](linux-update-mde-linux.md).
58+
59+
The default configuration option for deployment as an Azure Extension for AntiVirus (AV) will be Passive Mode. This means that the AV component of Microsoft Defender for Endpoint won't intercept IO calls. It's recommended to run Microsoft Defender for Endpoint in Passive Mode on all SAP applications and to schedule a scan once per day. In this mode:
60+
61+
- **Real-time protection is turned off**: Threats are not remediated by Microsoft Defender Antivirus.
62+
- **On-demand scanning is turned on**: Still use the scan capabilities on the endpoint.
63+
- **Automatic threat remediation is turned off**: No files will be moved and the security administrator is expected to take required action.
64+
- **Security intelligence updates are turned on**: Alerts will be available on security administrator's tenant.
65+
66+
The Linux crontab is typically used to schedule Microsoft Defender for Endpoint AV scan and log rotation tasks:
67+
[How to schedule scans with Microsoft Defender for Endpoint (Linux) | Microsoft Learn](linux-schedule-scan-mde.md)
68+
69+
Endpoint Detection and Response (EDR) functionality is active whenever Microsoft Defender for Endpoint for Linux is installed. There is no simple way to disable EDR functionality through command line or configuration. For more information on troubleshooting EDR, see the sections [Useful Commands](#useful-commands) and [Useful Links](#useful-links).
70+
71+
## Important Configuration Settings for Microsoft Defender for Endpoint on SAP on Linux
72+
73+
It's recommended to check the installation and configuration of Defender for Endpoint with the command mdatp health.
74+
75+
The key parameters recommended for SAP applications are:
76+
77+
- healthy = true
78+
- release_ring = Production. Pre-release and insider rings shouldn't be used with SAP Applications.
79+
- real_time_protection_enabled = false. Real-time protection is off in passive mode which is the default mode and will prevent real-time IO interception.
80+
- automatic_definition_update_enabled = true
81+
- definition_status = “up_to_date”. Run a manual update if a new value is identified.
82+
- edr_early_preview_enabled = “disabled”. If enabled on SAP systems it might lead to system instability.
83+
- conflicting_applications = [ ]. Other AV or security software installed on a VM such as Clam.
84+
- supplementary_events_subsystem = "ebpf". Do not proceed if ebpf is not displayed. Contact the security admin team.
85+
86+
This article has some useful hints on troubleshooting installation issues for Microsoft Defender for Endpoint:
87+
[Troubleshoot installation issues for Microsoft Defender for Endpoint on Linux | Microsoft Docs](linux-support-install.md#installation-failed)
88+
89+
## Recommended Microsoft Defender for Endpoint AntiVirus Exclusions for SAP on Linux
90+
91+
Enterprise Security Team must obtain a full list of AV exclusions from the SAP Administrators (typically the SAP Basis Team).
92+
It's recommended to initially exclude:
93+
94+
- DBMS data files, log files and temp files, including disks containing backup files
95+
- The entire contents of the SAPMNT directory
96+
- The entire contents of the SAPLOC directory
97+
- The entire contents of the TRANS directory
98+
- The entire contents of directories for standalone engines such as TREX
99+
- Hana – exclude /hana/shared, /hana/data and /hana/log - see Note 1730930
100+
- SQL Server – [Configure antivirus software to work with SQL Server - SQL Server | Microsoft Learn](/troubleshoot/sql/database-engine/security/antivirus-and-sql-server)
101+
- Oracle – See How To Configure Anti-Virus On Oracle Database Server (Doc ID 782354.1)
102+
- DB2 – [https://www.ibm.com/support/pages/which-db2-directories-exclude-linux-anti-virus-software](https://www.ibm.com/support/pages/which-db2-directories-exclude-linux-anti-virus-software)
103+
- SAP ASE – contact SAP
104+
- MaxDB – contact SAP
105+
106+
Oracle ASM systems don't need exclusions as Microsoft Defender for Endpoint can't read ASM disks.
107+
108+
Customers with Pacemaker clusters should also configure these exclusions:
109+
110+
```bash
111+
mdatp exclusion folder add --path /usr/lib/pacemaker/ (for RedHat /var/lib/pacemaker/)
112+
```
113+
114+
```bash
115+
mdatp exclusion process add --name pacemakerd
116+
```
117+
118+
```bash
119+
mdatp exclusion process add --name crm_*
120+
```
121+
122+
Customers running the Azure Security security policy might trigger a scan using the Freeware Clam AV solution. It's recommended to disable Clam AV scan after a VM has been protected with Microsoft Defender for Endpoint using following commands:
123+
124+
```bash
125+
sudo azsecd config -s clamav -d "Disabled"
126+
```
127+
128+
```bash
129+
sudo service azsecd restart
130+
```
131+
132+
```bash
133+
sudo azsecd status
134+
```
135+
136+
The following articles detail how to configure AV exclusions for processes, files, and folders per individual VM:
137+
138+
- [Set up exclusions for Microsoft Defender Antivirus scans | Microsoft Learn](configure-exclusions-microsoft-defender-antivirus.md)
139+
- [Common mistakes to avoid when defining exclusions | Microsoft Learn](common-exclusion-mistakes-microsoft-defender-antivirus.md)
140+
141+
## Scheduling a Daily AV Scan
142+
143+
The recommended configuration for SAP applications disables real-time interception of IO calls for AV scanning. The recommended setting is passive mode in which real_time_protection_enabled = false.
144+
145+
The following link details how to schedule a scan: [How to schedule scans with Microsoft Defender for Endpoint (Linux) | Microsoft Learn](linux-schedule-scan-mde.md).
146+
147+
Large SAP systems might have more than 20 SAP application servers each with a connection to the SAPMNT NFS share. Twenty or more application servers simultaneously scanning the same NFS server will likely overload the NFS server. By default Microsoft Defender for Endpoint for Linux won't scan NFS sources.
148+
149+
If there's a requirement to scan SAPMNT then this scan should be configured on one or two VMs only.
150+
151+
Scheduled scans for SAP ECC, BW, CRM, SCM, Solution Manager, and other components should be staggered at different times to avoid all SAP components from overloading a shared NFS storage source shared by all SAP components.
152+
153+
## Useful Commands
154+
155+
If, during manual zypper installation on Suse an error “Nothing provides ‘policycoreutils’” occurs, refer to:
156+
[Troubleshoot installation issues for Microsoft Defender for Endpoint on Linux](linux-support-install.md).
157+
158+
There are several command-line commands that can control the operation of mdatp. To enable the passive mode you can use the following command:
159+
160+
```bash
161+
mdatp config passive-mode --value enabled
162+
```
163+
164+
> [!NOTE]
165+
> passive mode is the default mode on installing defender for endpoint on Linux.
166+
167+
To turn off real-time protection, you can use the command:
168+
169+
```bash
170+
mdatp config real-time-protection --value disabled
171+
```
172+
173+
This command tells mdatp to retrieve the latest definitions from the cloud:
174+
175+
```bash
176+
mdatp definitions update
177+
```
178+
179+
This command tests whether mdatp can connect to the cloud-based endpoints via the network:
180+
181+
```bash
182+
mdatp connectivity test
183+
```
184+
185+
These commands updates the mdatp software if needed:
186+
187+
```bash
188+
yum update mdatp
189+
```
190+
191+
```bash
192+
zypper update mdatp
193+
```
194+
195+
Since mdatp runs as a linux system service, you can control mdatp using the service command, for example:
196+
197+
```bash
198+
service mdatp status
199+
```
200+
201+
This command creates a diagnostic file that can be uploaded to Microsoft support:
202+
203+
```bash
204+
sudo mdatp diagnostic create
205+
```
206+
207+
## Useful Links
208+
209+
- Microsoft Endpoint Manager doesn't support Linux at this time
210+
- [Manage Microsoft Defender for Endpoint configuration settings on devices with Microsoft Endpoint Manager | Microsoft Learn](security-config-management.md)
211+
- [Microsoft Defender for Endpoint Linux - Configuration and Operation Command List - Microsoft Tech Community](https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/microsoft-defender-for-endpoint-linux-configuration-and/ba-p/1577902)
212+
- [Deploying Microsoft Defender for Endpoint on Linux Servers. - Microsoft Tech Community](https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/deploying-microsoft-defender-for-endpoint-on-linux-servers/ba-p/1560326)
213+
- [Troubleshoot cloud connectivity issues for Microsoft Defender for Endpoint on Linux | Microsoft Docs](linux-support-connectivity.md#run-the-connectivity-test)
214+
- [Troubleshoot performance issues for Microsoft Defender for Endpoint on Linux | Microsoft Docs](linux-support-perf.md#troubleshoot-performance-issues-using-microsoft-defender-for-endpoint-client-analyzer)

0 commit comments

Comments
 (0)