An External Security Manager (ESM) is the access-control product on an IBM z/OS mainframe, such as RACF, ACF2 or Top Secret, that makes authorisation decisions for users and resources. z/OS calls it through the System Authorization Facility. Overly broad profiles, excess privileged attributes and unreviewed resource rules in the ESM can expose critical data and system functions.
What the External Security Manager does in z/OS authorization
An External Security Manager sits at the centre of z/OS access control, deciding whether a user or process can reach a dataset, transaction, command or system function. On IBM mainframes, the ESM is not just a policy store, it is the enforcement point that translates resource rules into allow or deny decisions through SAF.
Because the ESM is authoritative for access decisions, its rule design affects the entire machine. A narrow rule set can support least privilege, while an overly broad one can quietly grant far more access than operators intended.
Common ESM products and how z/OS uses them
The term is product-agnostic, but in practice it usually refers to RACF, ACF2 or Top Secret. Each product implements the same broad function with different administration models, syntax and reporting styles, so the operational discipline matters more than the brand name.
z/OS invokes the ESM through SAF, which means applications and system services generally rely on the same authorisation layer rather than inventing their own controls. That centralisation is useful, but it also makes consistency, change control and naming discipline critical.
For readers hardening a mainframe, the ESM fits naturally into broader z/OS integrity work. The IBM z/OS Security Hardening Guide covers the surrounding integrity controls that help keep authorization decisions trustworthy.
Profiles, attributes and resource rules
ESM authorisation is usually expressed through profiles, access lists, privileged attributes and resource rules. The security outcome depends on how precisely those rules map to real business and system needs, especially when datasets, started tasks, commands and sensitive subsystems share the same policy space.
Overly permissive profiles are dangerous because they scale silently. Once a broad rule is in place, many applications can inherit access without any individual change request, which makes accidental overexposure hard to spot until an audit or incident exposes it.
Privilege attributes are equally important because they can bypass normal resource checks or expand what an identity can do once authenticated. On a mainframe, that can move a mistake from a single dataset to broad system reach.
Why ESM governance is a security control, not just administration
ESM governance is really about controlling trust in a high-value platform. Rule review, change approval, ownership of profiles and periodic recertification are necessary because the authorization layer directly determines who can read protected data, modify operational settings or execute privileged work.
When the ESM is poorly governed, the failure mode is not only unauthorized access. It can also include hidden privilege creep, stale rules left behind after application changes, and exceptions that become permanent because nobody revisits them.
That is why ESM administration should be treated as part of system security architecture rather than routine housekeeping. The product is a control plane for access, and control planes deserve their own scrutiny.
Risk and Threat Considerations
ESM weaknesses create direct exposure because the product defines who can reach critical data and commands on z/OS. If profiles are too broad, privileged attributes are overused, or resource rules are never reviewed, an attacker or insider can turn one authorization mistake into broad system access.
Failure mechanism: Misconfigured rules, excessive group membership or inherited privileges let an identity bypass intended separation of duties, which can expose sensitive datasets, operational commands and administrative functions.
Impact: The result can be data theft, unauthorized system changes, outage conditions or deeper compromise of mainframe trust boundaries, especially where the ESM is the final decision point for protected resources.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-2 — Account Management | ESM profiles and group access map to account lifecycle and entitlement control. |
| AC-6 — Least Privilege | Overbroad ESM rules and excess privileged attributes directly concern least privilege. | |
| AC-3 — Access Enforcement | The ESM is the enforcement point that allows or denies access to z/OS resources. | |
| Recommendation — Review and recertify ESM group memberships and profile assignments to remove stale access. Constrain ESM permissions to the minimum access needed for each role or task. Use the ESM as the authoritative enforcement layer for protected mainframe resources. | ||
| CIS Controls v8 | CIS-5 — Account Management | Mainframe access rules depend on accurate account and entitlement governance. |
| Recommendation — Inventory and regularly review ESM-controlled accounts, groups and privileged access. | ||
| ISO/IEC 27001:2022 | A.5.15 — Access control | ESM policy and rule governance are direct access-control activities. |
| Recommendation — Define and enforce access control rules consistently across z/OS resources. | ||
Practitioner Guidance
What to watch for: Focus reviews on broad generic access, special attributes, dormant profiles and resource rules that were created for a one-time exception. Those are the patterns most likely to outlive their original justification.
Governance implication: Ownership of ESM rules should be explicit, with clear accountability for who approves profile changes and who certifies that access still matches operational need. In mainframe environments, the weakest point is often not the product itself but the accumulation of old decisions.
Practitioner takeaway: If the ESM is your final authorization layer, then rule hygiene is not optional maintenance, it is core security engineering.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org