Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes how to prepare your SAP environment for connecting to the SAP data connector. Before you begin, make sure you've reviewed the prerequisites for deploying the Microsoft Sentinel solution for SAP applications.
This article is part of the second step in deploying the Microsoft Sentinel solution for SAP applications. While steps that are performed in Microsoft Sentinel require that the solution be installed first, other preparations in the SAP environment can happen in parallel.
Many of the procedures in this article are typically performed by your SAP BASIS team. Some steps include your security team too.
Prerequisites
- Before you start, make sure to review the prerequisites for deploying the Microsoft Sentinel solution for SAP applications.
- Some steps are performed in Microsoft Sentinel and require that you deploy the Microsoft Sentinel solution for SAP applications first.
Configure the Microsoft Sentinel role
To allow the SAP data connector to connect to your SAP system, you must create an SAP system role specifically for this purpose.
Create a role using the MSFTSEN_SENTINEL_READER template, which includes all the basic permissions for the data connector to operate.
For more information, see the SAP documentation on creating roles.
Create an SAP user for the Microsoft Sentinel role
The Microsoft Sentinel solution for SAP applications requires a user account to connect to your SAP system. When creating your user:
- Make sure to create a system user.
- Assign the MSFTSEN_SENTINEL_READER role to the user, which you created when you configured the Microsoft Sentinel role.
For more information, see the SAP documentation on creating user accounts.
Configure SAP auditing
Some installations of SAP systems might not have audit logging enabled by default. For best results in evaluating the performance and efficacy of the Microsoft Sentinel solution for SAP applications, enable auditing of your SAP system and configure the audit parameters.
We recommend that you configure auditing for all messages from the audit log, instead of only specific logs. Ingestion cost differences are generally minimal and the data is useful for Microsoft Sentinel detections and in post-compromise investigations and hunting.
Tip
If you want to ingest SAP HANA DB logs, make sure to also enable auditing for SAP HANA DB. For more information, see Collect SAP HANA audit logs in Microsoft Sentinel
Tip
For SAP systems managed by SAP RISE/ECS, Security Audit Log enablement is part of the shared responsibility agreement. Verify with your SAP contact if auditing is already active by default or if any additional steps need to be taken. SAP S/4HANA Cloud public edition systems have auditing enabled by default.
For full monitoring coverage with the agentless data connector, we recommend that you enable monitoring on all client IDs of your monitored SAP systems, including clients 000 and 066.
For more information, see Analysis and recommended settings of the Security Audit Log (SM19/RSAU).
Configure your system to use SNC for secure connections
By default, the SAP data connectors use a remote function call (RFC) connection and a username and password to authenticate to the SAP system.
To encrypt the RFC connection or use certificate-based authentication, configure SAP Smart Network Communications (SNC). Work with your SAP administrators and your organization's public key infrastructure (PKI) team to plan the SNC configuration. Follow SAP guidance for the SAP components, certificates, and trust relationships in your environment.
Before you configure the Microsoft Sentinel connection:
- Configure SNC for SAP NetWeaver Application Server for ABAP (AS ABAP). For an example that uses CommonCryptoLib, see SAP Note 2979858: Example SNC Configuration for AS ABAP with COMMONCRYPTOLIB.
- Decide whether to use certificates signed by your organization's certification authority (CA) or self-signed certificates. Establish trust between the SAP system and the component that initiates the RFC connection. For SAP certificate guidance, see SAP Note 2970934: How to create the CSR and how to import the certificate response for ABAP system.
- Validate the SNC connection according to SAP guidance before you connect Microsoft Sentinel.
For the agentless data connector, configure SNC in SAP Cloud Connector. For more information, see SAP KBA 3536285: SAP Cloud Connector - How to set up general SNC settings for SAP Cloud Connector.
If you use SAP Cloud Connector high availability, also validate SNC after switching to the shadow instance.
For more information, see the SAP documentation on configuring SNC and Getting started with SAP SNC for RFC integrations.
Configure SAP BTP settings
To prepare SAP Business Technology Platform (BTP) for the agentless data connector, configure the following services and roles in your SAP BTP subaccount.
In your SAP BTP subaccount, add entitlements for the following services:
- SAP Integration Suite
- SAP Process Integration Runtime
- Cloud Foundry Runtime
Note
This solution considers only SAP Cloud Integration in the Cloud Foundry environment.
Create an instance of Cloud Foundry Runtime, and then also create a Cloud Foundry space.
Create an instance of SAP Integration Suite.
Assign the SAP BTP Integration_Provisioner role to your SAP BTP subaccount user account.
In the SAP Integration Suite, add the cloud integration capability.
Assign the following process integration roles to your user account:
- PI_Administrator
- PI_Integration_Developer
- PI_Business_Expert
The PI_Administrator, PI_Integration_Developer, and PI_Business_Expert roles are available only after you activate the cloud integration capability.
Create an instance of the SAP Process Integration Runtime in your subaccount using service plan integration-flow (not API!).
After verifying that the cloud integration capability is activated, create a service key for the SAP Process Integration Runtime and save the JSON contents to a secure location.
For more information, see the SAP documentation on Initial Setup of SAP Integration Suite.
Configure the connector in Microsoft Sentinel and in your SAP system
This procedure has steps both in Microsoft Sentinel and your SAP system, and requires coordination with the SAP administrator.
In Microsoft Sentinel, go to the Configuration > Data connectors page and locate the Microsoft Sentinel for SAP - agentless data connector.
In the Configuration section, expand and follow the instructions in the Initial connector configuration - Run the steps below once: section. These steps will require both your SecuritySOC engineer and the SAP admin.
Trigger automatic deployment of Azure resources (SOC Engineer). If, after you deploy the Azure resources, the values in the steps 2 and 3 aren't automatically populated, close and re-expand step 1 to refresh the values in steps 2 and 3.
Deploy an OAuth2 client credentials artifact in the SAP Integration (SAP Admin).
Deploy the SAP agentless data connector package to the SAP Integration Suite (SAP Admin). This procedure is performed from the SAP Integration Suite portal (SAP Cloud Integration Web UI).
- Open the Discover section.
- Search for Microsoft Sentinel Solution and open it.
- Click on Copy to import the integration package into your Cloud Integration tenant.
- Open the package and go to the Artifacts tab. Then select the Data Collector configuration. For more information, see the SAP documentation on importing integration packages.
- Configure the integration flow with the LogIngestionURL and the DCRImmutableID.
- Deploy the iflow using SAP Cloud Integration as the runtime service.
Configure SAP Cloud Connector settings
Configure SAP Cloud Connector to enable communication between your SAP backend system and SAP BTP. Before you begin, make sure you have the credentials required to add your SAP BTP subaccount in SAP Cloud Connector.
Install the SAP Cloud Connector. For more information, see Installation of SAP Cloud Connector.
Sign in at the cloud connector interface, and add the subaccount using the relevant credentials. For more information, see the SAP documentation on managing subaccounts in SAP Cloud Connector.
In your cloud connector subaccount, add a new system mapping to the backend system to map the ABAP system to the RFC protocol.
Define load balancing options and enter your backend ABAP server details. Copy the name of the virtual host to a secure location to use when you create the SAP BTP destination.
Add new resources to the system mapping for each of the following function names:
RSAU_API_GET_LOG_DATA, to fetch SAP security audit log data
BAPI_USER_GET_DETAIL, to retrieve SAP user details
RFC_READ_TABLE, to read data from required tables
SIAG_ROLE_GET_AUTH, to retrieve security role authorizations
/OSP/SYSTEM_TIMEZONE, to retrieve SAP system timezone details
Note
The MSFTSEN_SENTINEL_READER role described in Configure the Microsoft Sentinel role is configured for least privilege access. This ensures function modules such as RFC_READ_TABLE are used only as needed. Consider SAP's best practices for RFC access and SAP Unified Connectivity (UCON) settings to control function module access beyond the controls of SAP Cloud Connector and the SAP role.
Add a new destination in SAP BTP that points the virtual host you'd created earlier. Use the following details to populate the new SAP BTP RFC destination for Microsoft Sentinel:
Name: Enter the name you want to use for the Microsoft Sentinel connection
Type:
RFCProxy Type:
On-PremiseUser: Enter the ABAP user account you created earlier for Microsoft Sentinel
Authorization Type:
CONFIGURED USERAdditional properties:
jco.client.ashost = <virtual host name>jco.client.client = <client e.g. 001>jco.client.sysnr = <system number = 00>jco.client.lang = EN
Location: Only required when you connect multiple Cloud Connectors to the same BTP subaccount. For more information, see the SAP documentation on parameters influencing communication behavior.
Optimize SAP Cloud Connector sizing, throughput, and isolation
Default SAP Cloud Connector settings suit most environments. Tune it before you go live when Microsoft Sentinel ingestion is high volume, bursty, or shares an SAP Cloud Connector with other integrations.
- Confirm sizing for the Cloud Connector master instance: Sizing for master instance.
- If SAP Cloud Integration (CPI) reports
IOError on tunnel socket during connect attempt, use SAP note 3403815 to tune throughput and request limits. - Enable runtime monitoring: Cloud Connector monitoring.
- Recover stale or stuck SAP Cloud Connector sessions by following SAP note 2485510.
Tip
Dedicate an SAP Cloud Connector instance to Microsoft Sentinel traffic when the shared connector runs close to saturation, when other integrations cause volatile load patterns, or when security or regulatory requirements mandate isolation. A dedicated instance protects ingestion from noisy-neighbor incidents and simplifies capacity planning, change control, and audit scope.
Run the prerequisite checker
Run the prerequisite checker to validate that your SAP system is ready for integration with Microsoft Sentinel.
The Prerequisite checker iflow is included in the Microsoft Sentinel Solution integration package. Configure and deploy this iflow before continuing to the next step, so your SAP system meets the system prerequisites before integration with Microsoft Sentinel. After deployment, the iflow runs on a schedule in SAP Cloud Integration; review the latest run status to confirm success.
To configure and deploy the tool:
- Open the integration package, navigate to the Artifacts tab, and select the Prerequisite checker iflow > Configure.
- Set the target destination name for the remote function call (RFC) to the SAP system you want to check. For example,
A4H-100-Sentinel-RFC. - Deploy the iflow as you would otherwise for your SAP systems.
- For best results run the checker for 24 hours with 1min frequency to catch any anomalies like rogue overnight batch jobs, or any unknown usage spikes.
To review the check status:
- In SAP Cloud Integration, open Monitor > Integrations and locate the runs of the Prerequisite checker iflow as per your watch period (e.g. 24h). Confirm that the runs completed with status Completed (HTTP 200) and that the response payload doesn't contain warnings or errors. The scheduler may produce messages with state "Discarded" due to internal workings of SAP Cloud Integration. These messages can be ignored and contain text like "Message processing has been discarded because the triggering timer event was already handled by another process."
- Inspect the message processing log (MPL) Attachments and properties for the per-check results. Open the file attached to the MPL entry.
Use the following table to interpret the results:
Status What it means Next step Completed, no warnings All prerequisites are met. Continue connecting your SAP system to Microsoft Sentinel. Completed, with warnings Prerequisites are partially met. Review the response details and remediate before connecting. Failed or non-200 status The checker couldn't reach the target SAP system or hit a configuration error. Verify the RFC destination and credentials, then redeploy and rerun the iflow. If any findings remain, consult the response details for guidance on remediation steps. Legacy SAP systems often require extra SAP notes. Furthermore, see the troubleshooting section for common issues and resolutions.
After completion:
Undeploy the scheduled Prerequisite checker iflow once SAP system check was completed successfully. Repeat this sequence for every new SAP system that shall be onboarded.
On the Sentinel portal, scroll further down in the Configuration area, and expand and follow the instructions in the Add monitored SAP Systems - Run the steps below for each monitored SAP system: area for each SAP system you want to monitor.
In the Add monitored SAP Systems wizard in Microsoft Sentinel, at the step named Connect SAP System to Microsoft Sentinel / SOC Engineer, continue with Connect your SAP system to Microsoft Sentinel.