Join our Newsletter — 33% off our NHI Course

DIAG Protocol

DIAG is SAP GUI’s proprietary communication protocol for moving data between the presentation layer and the ABAP application server. In this case, it matters because malformed DIAG input can reach a privileged kernel parser before application controls have any opportunity to intervene.

Expanded Definition

DIAG Protocol is SAP GUI’s proprietary transport for exchanging presentation-layer input with the ABAP application server, which makes it materially different from HTTP-based application traffic or generic network protocols. In NHI and ERP security discussions, DIAG matters because it can carry user interaction, session state, and command sequences directly toward privileged SAP processing paths. That means malformed or deliberately crafted DIAG input may reach a kernel or dispatcher component before normal application-layer validation has a chance to intervene. For defenders, the important distinction is not simply that DIAG is “a SAP protocol,” but that it is part of a trusted enterprise execution path where identity, authorization, and parser safety must all be treated as security boundaries. Guidance across vendors varies on how much protocol inspection should occur at the network layer versus within SAP hardening controls, so implementations should be evaluated in context rather than by assumption. The most common misapplication is treating DIAG as ordinary application traffic, which occurs when teams secure only the business logic and ignore parser-facing attack surface.

For a control-oriented baseline, NIST’s NIST SP 800-53 Rev 5 Security and Privacy Controls remains useful for mapping access control, audit, and boundary protections onto SAP environments even though it does not define DIAG itself.

Examples and Use Cases

Implementing DIAG protections rigorously often introduces monitoring and compatibility constraints, requiring organisations to weigh deeper inspection and tighter controls against operational simplicity and legacy application dependence.

  • Securing SAP GUI endpoints so only managed workstations can initiate DIAG sessions, reducing exposure of privileged back-end flows.
  • Monitoring for malformed or unusual DIAG patterns that may indicate parser abuse, session manipulation, or an early-stage exploit attempt.
  • Applying network segmentation so DIAG traffic is restricted to approved application paths, rather than traversing broad enterprise networks.
  • Reviewing administrative SAP access after incidents such as the Schneider Electric credentials breach, where identity compromise can expose trusted enterprise protocols to misuse.
  • Aligning SAP hardening with NIST SP 800-53 Rev 5 Security and Privacy Controls to enforce logging, access restriction, and boundary defense around DIAG-enabled systems.

DIAG is especially relevant in environments where SAP GUI remains the primary operator interface and where privileged transactions are initiated from user workstations rather than via a web front end.

Why It Matters in NHI Security

DIAG is important in NHI security because it sits at the intersection of human authentication, service access, and privileged enterprise processing. If an attacker obtains credentials or session context for an SAP user, DIAG can become the route to high-value business operations, administrative functions, or sensitive data movement. NHI teams care because the same conditions that weaken service account governance also affect SAP ecosystems: excessive privilege, incomplete offboarding, poor visibility, and weak monitoring. NHIMG research shows that only 5.7% of organisations have full visibility into their service accounts, a signal that identity sprawl is already hard to contain before protocol-specific risk is considered. That visibility gap is amplified when long-lived access into SAP is not routinely reviewed, and when protocol traffic is trusted simply because it originates from an internal client. The result is that DIAG becomes a governance issue, not just a transport issue, and it should be treated as part of the identity attack surface. Organisations typically encounter the operational impact only after a compromised SAP session or suspicious transaction, at which point DIAG becomes operationally unavoidable to address.

In SAP-specific risk analysis, the protocol should be considered alongside Schneider Electric credentials breach-style credential compromise patterns and mapped to broader control expectations in NIST SP 800-53 Rev 5 Security and Privacy Controls.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 DIAG becomes risky when privileged identities and session trust are not tightly governed.
NIST CSF 2.0 PR.AC-3 DIAG traffic depends on strong access control over authenticated users and sessions.
NIST SP 800-63 AAL2 Session risk rises when SAP access is granted without strong authenticator assurance.
NIST Zero Trust (SP 800-207) SC-7 DIAG should be treated as a protected internal path, not implicitly trusted network traffic.
CSA MAESTRO Proprietary protocol access expands the agentic and enterprise trust boundary.

Constrain tool and session authority wherever agents or operators can reach SAP via DIAG.