Join our Newsletter — 33% off our NHI Course
Home› Guides› SAP Threat Detection and Monitoring Guide: Getting SAP…
Guide SOC & Detection Engineering

SAP Threat Detection and Monitoring Guide: Getting SAP Signals into the SOC

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 15 min read
On this page

Most security operations centres watch the network, endpoints and cloud closely, yet treat the SAP system that holds payroll, payments and supplier data as a black box. SAP produces rich security telemetry, but it lives in application-layer logs that standard collectors do not read and that analysts outside the Basis team rarely understand. This guide explains which SAP log sources matter, how to get them into a SIEM (security information and event management platform) reliably, which detection use cases to build first, and how to measure coverage. It is written for detection engineers, SOC leads and SAP Basis and security teams working together. Hardening settings are covered in the SAP NetWeaver and S/4HANA Basis Hardening Guide, and tool selection in the SAP and ERP Security buyer's guide; this page focuses on the detection pipeline.

Key takeaways

  • Start with the Security Audit Log. It is the main AS ABAP security event source, but it records only what its filters select, so filter design decides what the SOC can ever see.
  • Combine several SAP sources. Security Audit Log, gateway logs, table change logs, change documents and Read Access Logging each answer different questions; no single log covers logons, configuration change and data access together.
  • Move logs off the SAP host quickly. SAP administrators can change audit configuration and files, so forward events to a store the Basis team cannot edit and alert on gaps in the feed.
  • Translate SAP events into SOC language. Map transaction codes, user types and message IDs to use cases and ATT&CK techniques so analysts can triage without calling Basis for every alert.
  • Treat technical users as first-class identities. RFC, system and communication users carry broad access and rarely log on interactively, which makes their behaviour a strong detection signal.

Why SAP is a blind spot for the SOC

An SAP landscape is several layers at once: the ABAP or Java application server, the SAP Gateway that brokers RFC (Remote Function Call) traffic, the database (often SAP HANA), the operating system, and increasingly SAP BTP cloud services. Operating system and database logs reach the SIEM through normal agents, but they show little about business activity. A user who creates a vendor bank account, assigns themselves SAP_ALL or starts a debugger in production generates events only inside SAP's own logs.

Three things make SAP harder than other applications:

  • Proprietary formats: audit files are written per application server in an SAP format and are read with SAP transactions such as SM20N or reports such as RSAU_READ_LOG, so a generic file collector does not parse them without an SAP-aware connector or extraction job.
  • Domain language: alerts are expressed as transaction codes (SU01, SE16N, SM59), authorisation profiles and client numbers. Analysts need a lookup to know whether an event is routine.
  • Ownership: the Basis team owns configuration and often sees logging as a performance and storage cost. Detection only works when Basis, the SAP security team and the SOC agree on a shared logging standard.

The SAP log sources that matter

The table lists the sources most SOCs need, what each one answers and where it is configured. Names are from SAP's own documentation for AS ABAP; check the release you run, because transactions changed between releases (for example RSAU_CONFIG replaced SM19 for audit configuration from release 7.52).

SourceWhat it answersConfiguration and viewingPriority
Security Audit Log (SAL)Who logged on (dialog and RFC), failed logons, transaction and report starts, user master changes, critical system eventsParameter rsau/enable; filters in RSAU_CONFIG (7.52 and later) or SM19; read with SM20N or RSAU_READ_LOG; event texts in SE92First
Gateway logRFC connections opened, external programs registered or started, security setting reloadsParameter gw/logging with ACTION letters, or SMGW (Goto, Expert Functions, Logging)First
Table change loggingChanges to customising and critical tables, written to table DBTABPRTParameter rec/client (ALL, a client list or OFF) plus the Log Data Changes flag in SE11 technical settings; read with SCU3Second
Change documentsBusiness object changes, including user and authorisation changes and master data such as vendor bank detailsWritten by applications; user changes reviewed through SUIM reportsSecond
Read Access Logging (RAL)Who viewed sensitive fields, across RFC, Dynpro, Web Dynpro and web service channelsConfigured per channel and field set; scope deliberately, as volume grows fastTargeted
SAP BTP Audit Log serviceActions by BTP platform services on subaccount dataAudit Log Viewer or the Audit Log Retrieval API with an Audit Log Management service instanceWhere BTP is used
Web Dispatcher and ICM HTTP logsHTTP access to Fiori, OData and web services from the internet or partnersHTTP logging parameters on ICM and Web DispatcherWhere internet-facing

Security Audit Log filter design

The SAL writes only events that match its filters, held either as static profiles loaded at start-up or as dynamic changes pushed to running application servers. SAP documents a generic user selection that accepts wildcards, so the SAP* user is audited with the escaped pattern SAP#*. A practical baseline, consistent with common SAP practitioner guidance:

  • Selection slots: set rsau/selection_slots to at least 10 so there are enough filters for the layers below, and enable rsau/user_selection for generic user patterns.
  • Privileged and emergency users: one filter for SAP#* in all clients, one for emergency and firefighter IDs, one for DDIC and other standard users, all event classes.
  • Client 066 and unused clients: audit all users, because no normal activity should occur there.
  • Everyone else: all clients and users for logon failures, RFC logons, user master changes and critical transaction starts, with low-value successful events switched off to control volume.
  • Integrity: enable rsau/integrity where your release supports it, so tampering with audit files can be detected.
  • Coverage report: RSAU_INFO_SYAG lists every audit event and whether it is active, which gives the SOC an auditable view of what is and is not logged.

Storage matters: SAP's configuration options include one audit file per day or several files per day with a maximum size per file and in total, and files stay until deleted. Plan the forwarding job so files are collected before rotation or clean-up.

Gateway and table logging

The gateway is how external programs and other systems reach SAP over RFC, and it features in many SAP attack paths. SAP documents the gw/logging parameter with ACTION letters including S (security settings and reloads), R (registered programs), E (external programs), O (open RFC connections) and P (dynamic parameter changes). SAP's recommended value logs signals, parameter changes and security actions; SOCs usually add R and E so unexpected program registrations are visible. Settings made only in SMGW live in shared memory and are lost when the instance stops, so set the profile parameter for permanence.

Table logging records every update and delete to flagged tables in DBTABPRT, once rec/client enables it for the client. SAP's guidance is not to switch logging off for customising objects, and notes a performance cost on heavily changed tables, so log configuration and security tables rather than high-volume transactional ones.

Building the pipeline into the SIEM

There are three common integration patterns. The choice depends on landscape size and whether the organisation wants SAP-specific analytics or a single SOC console.

PatternHow it worksSuitsTrade-offs
SIEM-native SAP connectorAn agent or RFC-based collector reads SAL and other sources and sends parsed events to the SIEMOrganisations with a mature SIEM and a few SAP systemsNeeds a technical SAP user for collection; parsing quality varies by connector and release
SAP-specific threat detection platformA dedicated product normalises SAP logs and runs SAP attack patterns, forwarding alerts to the SIEMLarge SAP estates and regulated sectorsExtra platform to run; analysts work across two consoles unless alerts are forwarded with context
File or job based extractionScheduled jobs (for example RSAU_READ_LOG output) or file shipping of audit files to a collectorSmall estates, early phasesLatency of minutes to hours; fragile when files rotate; parsing is your own work

SAP Enterprise Threat Detection is SAP's own option in the second category. SAP describes it as collecting logs from SAP and non-SAP systems into SAP HANA, pseudonymising users with resolution available only under special authorisation, normalising and enriching events, and running predefined attack detection patterns (for example brute force and unauthorised debugging) that customers can extend. SAP also offers a managed cloud edition. Whichever pattern you choose, the same engineering rules apply:

  1. Collection identity: the collector uses a dedicated technical user with read-only authorisations for audit data, a strong secret held in a vault, and its own SAL filter so its activity is visible. See the SAP S/4HANA Non-Human Identities guide.
  2. Every application server: SAL files are per application server, so confirm that the collector covers all instances, including ones added later.
  3. Normalisation: map SAP fields to your SIEM schema (user, terminal or source IP, client, transaction code, message ID, user type) and enrich with HR status and user type from SU01.
  4. Time: keep all SAP hosts on the same time source, and record the server time zone, because SAP timestamps may be local.
  5. Tamper protection: store forwarded events where SAP administrators have no write or delete rights, matching NIST SP 800-53 AU-9.
  6. Feed health: alert when any SAP source sends nothing for a set period, and when SAL configuration changes.

Detection use cases to build first

Start with use cases that have clear signals and high impact. The ATT&CK mappings below are to Enterprise techniques that describe the behaviour; they are a triage aid, not a claim that ATT&CK covers SAP specifically.

Use caseSignal (SAP source)ATT&CKAnalyst first question
Standard or default user logon (SAP*, DDIC, EARLYWATCH)SAL logon events for these IDsT1078.001 Default AccountsWas there an approved change ticket?
Password guessing against dialog or RFC logonsSAL failed logon bursts, user locksT1110 Brute ForceOne user many sources, or one source many users?
Technical user used interactivelySAL dialog logon by a system or communication userT1078 Valid AccountsWhich person holds this credential?
Privilege grantSAL user master change, change documents showing SAP_ALL, SAP_NEW or critical roles assignedT1098 Account ManipulationWho approved it, and is it a firefighter session?
Debugging or direct table edit in productionSAL transaction and debug events; table changes in DBTABPRTT1059 Command and Scripting Interpreter (closest fit)Is this an emergency fix with a ticket?
Bulk data viewing or export of sensitive recordsRAL entries, SAL report and table browser starts (SE16, SE16N)T1213 Data from Information RepositoriesDoes the volume match the user's job?
Unexpected external program registrationGateway log R and E actionsT1078 where a trusted connection is reused; otherwise investigate as gateway misuseIs the program and host on the allow list?
Audit logging switched off or filters changedSAL configuration events, feed gap alert, parameter changes in gateway log P actionsDefense Impairment tactic (TA0112)Who changed it, and what happened in the gap?

Firefighter sessions deserve their own handling: tag them in the SIEM so their activity is reviewed against the ticket, not suppressed. See the SAP Firefighter Access guide. For a fraud-oriented view, combine the privilege grant and bank detail change signals, because an attacker or insider who changes a vendor's bank account usually needs both.

Where identity fits

Many SAP attack paths run through non-human identities: RFC destinations with stored credentials, trusted system relationships, communication users for interfaces and the collector's own account. These users are often exempt from password change rules and multi-factor authentication, and they rarely change behaviour, which makes baselining effective. Build an inventory of system and communication users with their expected source hosts and function modules, and alert on any logon from a new host or any dialog logon. Read the SAP Identity and Access Security Guide for the access model these detections assume.

Rolling it out

  1. Agree the logging standard (weeks 1 to 2): Basis, SAP security and the SOC sign off SAL filters, gateway ACTION letters, rec/client and RAL scope per system tier, with storage estimates.
  2. Pilot one production system (weeks 3 to 6): enable dynamic SAL filters first (no restart), measure daily volume and performance, and confirm parsing in the SIEM for each source.
  3. Build five use cases: default user logon, brute force, privilege grant, technical user dialog logon and logging tampering. Run them in alert-only mode and tune against two weeks of history.
  4. Write runbooks: for each use case, what the analyst checks, which SAP contact to call and what evidence to preserve. Link the SAP and ERP Compromise Response Playbook for escalation.
  5. Extend to all production and connected systems: then non-production systems that hold copies of production data.
  6. Rollback: if logging causes performance problems, revert the dynamic filter change on the affected servers rather than switching SAL off, and narrow the filter by event class or user before re-enabling.

Small organisations with one or two SAP systems can usually start with a SIEM connector and file extraction. Large estates with many systems, strict segregation of duties requirements or a fraud history tend to justify an SAP-specific detection platform that forwards alerts to the SOC.

Detection and measurement

  • Source coverage: percentage of production SAP application servers sending SAL, gateway and table logs to the SIEM (target 100 percent).
  • Feed latency: median time from SAP event to SIEM availability, per source.
  • Filter coverage: number of agreed critical events active in RSAU_INFO_SYAG against the standard.
  • Technical user baseline coverage: share of system and communication users with a documented expected source host.
  • Use case fidelity: true positive rate and median triage time for SAP alerts, compared with other SOC alert types.
  • Feed gap incidents: number and duration of periods with no data from a production SAP source.

Framework mapping

FrameworkReferenceHow it applies
NIST CSF 2.0PR.PS-04, DE.CM-03, DE.CM-09, DE.AE-02, DE.AE-03Generate SAP log records, monitor user and application activity, analyse and correlate SAP events with other sources
NIST SP 800-53 Rev 5AU-2, AU-6, AU-9, AU-11, AU-12, SI-4Event selection, review, protection of audit information from SAP administrators, retention, generation, monitoring
CIS Controls v8.18.2, 8.9, 8.11Collect audit logs, centralise them, review them
ISO/IEC 27001:2022 Annex AA.8.15, A.8.16Logging and monitoring activities
MITRE ATT&CK v20T1078, T1078.001, T1110, T1098, T1213Behaviour mapping for SAP use cases

Common failure patterns

  • SAL on, filters useless: the log is enabled but filters only cover a few named users, so new administrators and technical users are invisible.
  • One application server collected: the collector reads the central instance only, missing logons balanced to other servers.
  • Logs stay on the SAP host: files are deleted or rotated before collection, or an administrator can remove them, so the evidence trail ends where it is most needed.
  • Raw events with no context: analysts receive transaction codes and message IDs without a lookup table, close alerts as noise and stop escalating SAP events.
  • Technical users excluded as noisy: RFC and communication users are filtered out to save volume, removing the most useful signal.
  • Collector account over-privileged: the integration user is given broad authorisations and a static password, turning the monitoring path into an access path.

Practitioner checklist

  • Agree a written SAP logging standard covering SAL filters, gw/logging, rec/client and RAL scope per system tier.
  • Enable SAL in all production clients with filters for SAP#*, emergency IDs, standard users, client 066 and critical events for all users.
  • Set rsau/selection_slots to at least 10 and enable rsau/integrity where available.
  • Set gw/logging permanently in the profile, including security, registered and external program actions.
  • Forward every application server's logs to a store SAP administrators cannot modify, and alert on feed gaps.
  • Run the collector under a least-privilege technical user with a vaulted secret and its own audit filter.
  • Build and tune the first five use cases, with runbooks and SAP contacts for each.
  • Baseline every system and communication user's expected source hosts and alert on deviations.
  • Review RSAU_INFO_SYAG output quarterly against the standard and report coverage metrics to the SOC lead.

Standards and references

Related NHI Mgmt Group resources: SAP NetWeaver and S/4HANA Basis Hardening Guide · SAP and ERP Security · Detection Engineering Guide · CIS Control 8 Audit Log Management Guide · SAP S/4HANA Non-Human Identities

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.