Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› What are the key z/OS security best practices?
Governance, Ownership & Risk

What are the key z/OS security best practices?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 17, 2026 Domain: Governance, Ownership & Risk

Key z/OS security best practices are to enforce least privilege, secure administrative access, protect system datasets, review RACF configuration, and monitor privileged activity. Patch and tune the platform carefully, separate duties for operations and security, and validate logging and recovery controls. The main risk is overbroad access that lets one account affect critical workloads.

What “good” z/OS security looks like in practice

The core idea is not to make z/OS “locked down” in the abstract, but to make access narrowly scoped, reviewable, and recoverable. On mainframe estates, security fails when operational convenience gradually becomes standing privilege, shared IDs, or broad dataset access. Strong practice means every powerful capability has a named owner, a clear business purpose, and a review path that can prove why it still exists.

That is why least privilege is the anchor control. z/OS environments often support critical batch, transaction, and system functions from a small number of highly privileged accounts, so the real objective is to reduce the blast radius of each account and each permission. A practical target is to separate daily administration from emergency elevation, and to make high-risk access both time-bound and visible.

Protecting system datasets is equally important because dataset exposure can turn into system-wide compromise quickly. Security teams should treat high-value libraries, configuration datasets, JCL repositories, and security databases as control points, not just storage objects. If these assets are writable by too many users or processes, the platform can be altered in ways that defeat higher-level policy.

Why RACF review, segregation of duties, and privileged monitoring matter

RACF review is where policy becomes operational. The most common failure is not a single missing rule, but accumulated exceptions, stale profiles, and broad generic access that no one revisits. Reviewing RACF configuration means checking both the intended design and the effective rights that are actually inherited through groups, defaults, and special authorisations.

Separation of duties matters because z/OS operations can concentrate too much power in too few hands. If the same person or function can change security policy, deploy workloads, and approve exceptions, then mistakes and misuse become hard to detect and harder to unwind. Good practice is to keep security administration, system operations, and application ownership distinct enough that no single role can quietly change the whole posture.

Monitoring privileged activity should focus on the actions that matter most, not just on log volume. Administrative commands, security dataset updates, profile changes, and unusual access to sensitive system resources deserve closer attention than routine user activity. For reader guidance on authentication strength and access control design, MFA Guide and Workforce Identity Security Guide provide adjacent control patterns that help reduce account misuse around privileged access.

Patch discipline, recovery, and the controls that are easiest to overlook

z/OS patching and tuning should be handled carefully because availability pressure often tempts teams to defer change, especially on production systems that run core business workloads. The best approach is to treat patching as a controlled change process with rollback planning, validation testing, and explicit sign-off for security-relevant components. Delay is sometimes acceptable, but only when the risk is tracked and the compensating controls are real.

Logging and recovery controls are often the difference between an incident and a durable loss. If audit trails are incomplete, retained for too short a time, or not reviewed after privilege changes, the organisation may miss both malicious activity and accidental damage. Recovery also needs to be tested, not assumed, because the ability to restore a system dataset or security configuration is only valuable if the restore path is known and rehearsed.

Teams also underestimate how quickly “temporary” access becomes permanent on mainframes. Emergency IDs, exception rules, and vendor access can persist long after the original need has passed. That is why periodic review, ownership validation, and clean revocation processes are part of security hygiene, not optional admin work. API Key Management Guide is useful here as a general model for rotating and retiring high-value credentials and access material when lifecycle control matters.

Risk and Threat Considerations

The main security risk on z/OS is privilege concentration. If one account, group, or security profile can alter system datasets, security definitions, or privileged workloads, an error or compromise can propagate across the platform far faster than on a distributed system.

Failure mechanism: Excessive authority, stale RACF entitlements, or weakly controlled administrative access lets a single actor bypass intended separation of duties and change security-relevant state without timely detection.

Impact: The result can be unauthorized workload manipulation, data exposure, weakened auditability, and loss of confidence in the integrity of production processing and recovery.

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.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-6 — Least Privilegez/OS best practices center on limiting powerful access to what each role needs.
AU-6 — Audit Review, Analysis, and ReportingMonitoring privileged activity and validating logs are central to the answer.
CM-5 — Access Restrictions for ChangePatching, tuning, and controlled change on production z/OS map to restricting unauthorized changes.
Recommendation — Enforce least privilege for privileged z/OS accounts and security-relevant dataset access. Review privileged activity logs and investigate anomalies promptly. Restrict who can change z/OS security-relevant settings and system datasets.
CIS Controls v8CIS-6 — Access Control ManagementThe answer stresses account, privilege, and separation-of-duties control.
Recommendation — Manage access lifecycle tightly and remove unnecessary administrative rights.
ISO/IEC 27001:2022A.5.15 — Access controlThe question is fundamentally about controlling who can do what on the platform.
Recommendation — Define and enforce access rules for high-value z/OS resources and administrators.

Practitioner Guidance

What to prioritise: Start with the privileges that can change security state, dataset content, or execution control. Those accounts and profiles determine whether the rest of the control set is meaningful.

What to verify: Confirm that every privileged role has a clear owner, a documented purpose, and a reviewable approval path. If you cannot explain why a high-power entitlement exists, treat it as a remediation candidate rather than a harmless legacy setting.

Decision rule: If an access path can affect production workloads, security definitions, or recovery material, require stronger review and shorter-lived access than for ordinary operational rights.

Practitioner takeaway: z/OS security is strongest when privilege is narrow, exceptional access is visible, and recovery is as disciplined as prevention.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org