When people talk about SAP security they usually mean roles, authorizations and segregation of duties. Those control what users can do inside the application. The application itself runs on a kernel, network services, RFC connections, a gateway, configuration files and custom ABAP code, and that layer can be attacked independently of any role design.
"SAP sits behind the firewall, so it is safe" has not been true for years. SAP systems talk to each other and to the outside over RFC and HTTP, the gateway starts external programs, standard users ship with known default passwords, and SAP fixes critical vulnerabilities every month. Below are the platform controls that sit underneath the authorization concept.
The SAP attack surface
What is typically exposed:
- Unpatched vulnerabilities. SAP Security Notes fix real flaws, many of them exploitable remotely. Every month of delay leaves them open longer.
- Gateway and message server. If left open, unauthorized external programs can register and run operating-system commands on the SAP host.
- RFC connections. Trusted RFC relationships and destinations with stored credentials let an attacker move from a low-value system into production.
- Standard users.
SAP*,DDIC,SAPCPIC,EARLYWATCHandTMSADMship with well-known default passwords. - Web services. ICF services active in
SICFthat were never needed. - Custom ABAP code. Injection, directory traversal and missing authority checks in your own developments.
- Unencrypted traffic. SAP GUI (DIAG) and RFC traffic in clear text on the network.
All of these can be fixed. The sections below go through them.
1. SAP Security Notes and patch management
SAP publishes Security Notes on SAP Security Patch Day, the second Tuesday of every month. Each note has a priority: Hot News (the most critical, typically CVSS 9–10), High, Medium or Low.
A patch process that works in practice:
- Use System Recommendations (in SAP Solution Manager or Focused Run) to list the missing security notes per system instead of going through the monthly list by hand.
- Handle Hot News and High first, starting with internet-facing and productive systems.
- Include security notes in the regular maintenance cycle so they do not pile up into a once-a-year project.
- Keep a record of applied notes. Auditors will want the note-by-note record, not a statement that you patch.
Patching is tedious, but it has more impact than any other SAP security control. Most publicly known SAP compromises used a vulnerability for which a patch already existed.
2. System hardening: profile parameters
Much of SAP hardening is done through profile parameters. The ones that matter most:
- Password and logon policy:
login/min_password_lng, thelogin/password_*parameters,login/fails_to_user_lock, and disabling the weak downward-compatible password hashes. login/no_automatic_user_sapstar = 1: prevents the hardcodedSAP*fallback logon (default passwordPASS) if theSAP*user record is ever deleted.auth/no_check_in_some_casesand related switches control how authorization checks behave. Set them on purpose rather than leaving legacy defaults.rfc/reject_expired_passwdandsnc/*tighten RFC and communication security.
Rather than setting these one by one from memory, use the SAP Security Baseline Template and Configuration Validation (in Solution Manager or Focused Run) to define a target configuration and measure drift against it on an ongoing basis.
3. Gateway and message server security
The gateway starts and talks to external programs, and an open gateway is one of the most frequently abused SAP attack paths. Two access control lists govern it:
reginfo(parametergw/reg_info): which external programs may register with the gateway.secinfo(parametergw/sec_info): which programs the gateway may start.
Write both as allow-lists. Turn on gateway logging (gw/logging) first so you can see what actually connects before you tighten, and apply the relevant hardening Security Notes.
The message server should use separate internal and external ports (rdisp/msserv_internal) and restrict access with a message server ACL (ms/acl_info), so that only application servers can talk to it on the internal port.
4. RFC security and UCON
RFC is how SAP systems talk to each other, which also makes it a standard lateral-movement path. Three points to address:
- Trusted RFC. Keep trust relationships to a minimum and one-directional. Production should never trust a loosely secured sandbox.
- Stored credentials. RFC destinations (
SM59) holding a user and password are a permanent risk. Use trusted RFC instead, or technical users with narrowly scopedS_RFCauthorizations. - UCON (Unified Connectivity). The RFC basic scenario lets you build an allow-list of the RFC-enabled function modules that are actually called from outside and block the thousands of others. This cuts the remotely reachable surface considerably.
5. Secure communication (SNC / TLS)
By default, SAP GUI (DIAG) and RFC traffic can cross the network unencrypted. Secure Network Communications (SNC) encrypts DIAG and RFC; TLS/HTTPS covers Fiori and other web traffic. Most SAP systems hold regulated or financial data, so encryption should be the default setting. Auditors also ask for evidence of it more and more often.
6. Security monitoring: the Security Audit Log and beyond
Prevention will never cover everything, so you also need to see what happens on the system:
- Security Audit Log (SAL): configured in
RSAU_CONFIG(or the olderSM19) and read withRSAU_READ_LOGorSM20. Log failed logons, use of critical transactions, changes to sensitive configuration and, in particular, Firefighter / emergency-access sessions. - Enterprise Threat Detection (ETD) or a SIEM: forward SAP security events to a monitoring platform for real-time correlation across systems, instead of reading logs after the fact.
- Custom code scanning: the Code Vulnerability Analyzer (CVA) finds injection and authority-check flaws in ABAP before it goes to production.
How this ties into access governance
Platform hardening and access governance cover different halves of the same problem. A hardened system with a bloated role catalogue full of SAP_ALL is still open from the inside. A clean SoD ruleset on an unpatched system with an open gateway gives a false sense of security.
The two also depend on each other. Emergency access shows this well: a properly designed SAP Firefighter process is an access-governance control, but its evidence is only reliable if the Security Audit Log records the sessions and the platform underneath is sound. Continuous access-risk monitoring, which is what our tool MTC Skopos does, links who has access to what is actually done with it.
A practical hardening sequence
For a typical landscape that has never been hardened, this order works well:
- Get patching under control: System Recommendations, Hot News first.
- Close the gateway and message server: reginfo/secinfo allow-lists, ACLs, logging.
- Lock down standard users: passwords,
SAP*fallback, unused accounts. - Baseline the configuration: Security Baseline Template plus Configuration Validation, then manage drift.
- Reduce the RFC surface: trusted RFC cleanup, UCON.
- Encrypt communications: SNC and TLS.
- Set up monitoring: Security Audit Log configured for meaningful events and forwarded to a SIEM or ETD.
These do not have to happen at the same time, but they should be planned as one program, not as seven unrelated tickets.
How MTC helps
We assess and harden SAP platforms for Swiss and international organizations:
- setting up patch management
- configuration baselining
- reducing gateway and RFC exposure
- secure communication
- security monitoring
We handle this together with access governance (SoD, Firefighter, authorizations), so platform and access security are covered by the same team. On large programs we work alongside leading global audit, risk and technology consulting firms, with a senior Swiss-based team responsible for the security outcome.
Related reading
- SAP Security Consulting, our full SAP security scope
- SAP Firefighter Role Design: Best Practices for Emergency Access
- SAP S/4HANA Migration in Switzerland
- SAP Segregation of Duties: Conflicts, Risks & How to Fix Them
- Critical SAP transactions and tables: a security reference
- SAP security: a practical guide to authorizations, SoD and hardening
Frequently Asked Questions
What is SAP cybersecurity?
The protection of the SAP platform itself (kernel, communications, configuration and code) against misuse and attack, as opposed to authorization management, which governs who can do what inside the application. It covers SAP Security Notes and patching, hardening through profile parameters, gateway and RFC security, secure communication (SNC/TLS) and monitoring with the Security Audit Log.
How often does SAP release Security Notes?
On SAP Security Patch Day, the second Tuesday of every month. Notes are rated Hot News (the most critical), High, Medium or Low. Hot News and High notes that apply to your systems should be assessed and scheduled promptly. System Recommendations (in SAP Solution Manager or Focused Run) shows which notes are missing on each system.
What is the difference between SAP security and SAP authorizations?
Authorizations control who can do what inside the application, through roles and authorization objects. SAP security in the wider sense also covers the platform those authorizations run on: patching, gateway and RFC hardening, secure communication, standard-user lockdown and monitoring. Good authorizations on an unpatched, open system are not enough; both layers need to be secured.
How do you secure the SAP gateway?
Mainly through its two access control lists: reginfo (which external programs may register, parameter gw/reg_info) and secinfo (which programs may be started, gw/sec_info). An open gateway lets unauthorized external programs register and execute commands. With these ACLs, gateway logging (gw/logging) and the relevant SAP Security Notes in place, one of the most common SAP attack paths is closed.