Mainframe Access Control Migration: Carrying RACF Permissions, Batch Identities, and Audit Records to a New Platform
Access rules on a mainframe sit in a security database outside the application, and they do not move when the code does. How RACF decisions differ from role-based models on modern platforms, and what a government program should inventory and test before cutover.
On a mainframe, the rules that decide who can read or change a file are usually not in the application. They sit in a separate security database, most often IBM’s Resource Access Control Facility (RACF) or a comparable product, and they have been adjusted one request at a time for decades.
A migration plan that covers programs and data moves neither the rules nor the audit trail they produce. Both have to be rebuilt on a platform whose access model works differently. This post covers what to inventory and test before cutover.
Why the rules do not translate one for one
RACF reaches a decision by walking a fixed sequence of checks. IBM’s authorization checking documentation lists them in order. Several steps grant access without any entry naming the user:
- If the requesting user’s ID is the first qualifier of the data set name, “RACF grants the request.”
- If the profile’s default access level (the universal access authority) is high enough and the user is not marked restricted, “RACF grants the request.”
- If the profile’s warning flag is on, “RACF grants the request,” and logs what would otherwise have been a denial.
One step works the other way. When a user is named on the access list with less authority than the request needs, RACF skips the group, default, and operations checks that follow. IBM’s text says this “prevents access based on ID(*), UACC, or the OPERATIONS attribute.” A person listed with read access is therefore held to read access, even when a group they belong to can update the file.
Modern platforms make different assumptions. The Kubernetes authorization reference states: “Permissions are purely additive (there are no “deny” rules).” In a model like that, a narrower grant to one person does not reduce what the same person receives through a role. The restriction has to be rebuilt another way, usually by taking the person out of the broader role.
Defaults also sit in different places. The PostgreSQL privileges documentation says that no privileges are granted to PUBLIC by default on tables, and that the defaults for other objects include “EXECUTE privilege for functions and procedures.” A team that moves logic into stored procedures and checks only table grants can leave those procedures callable by every database user.
Where access rules sit in the legacy system
| Where the rule sits | What it decides | What to confirm on the target |
|---|---|---|
| Access list on a profile | Access for named users and groups | Each entry maps to a role or grant, and individual entries lower than the group’s are kept as restrictions |
| Default access level on a profile | Access for everyone not on the list | Each default becomes an explicit grant or is removed, with a recorded decision |
| User ID as first qualifier of a data set name | Access to a person’s own work files | Whether personal work files exist on the target, and who owns them |
| OPERATIONS attribute | Broad access to protected data sets for storage maintenance | Replaced by narrower backup and administration roles, with their use logged |
| Warning mode | Access that is granted and logged where the rule would deny it | A decision per profile to permit or deny, made before cutover |
| Surrogate job submission | Who may submit a job that runs under another user ID | Which identities batch jobs run under, and who may start them |
Two of these deserve a closer look. IBM describes the OPERATIONS attribute as “full access authorization to all RACF-protected resources” in the data set class and several others, limited where an access list names the user or their groups. There is rarely a single equivalent role on the target.
Warning mode is the other. A profile left in warning mode for years documents a restriction that was never enforced, and the migration team has to decide which version is correct.
Batch identities and shared service accounts
On the mainframe a batch job runs under a user ID, and that ID has its own permissions. IBM’s documentation on surrogate job submission explains how one user may submit a job on behalf of another: “The job runs with the user ID that the jobcard specifies,” and the audit record “identifies both the surrogate user and the jobcard user ID.”
Migrated systems often replace this with one service account that runs every job and can reach every table. That loses two things at once. The first is least privilege, which NIST SP 800-53 defines in control AC-6 as “allowing only authorized accesses for users (or processes acting on behalf of users) that are necessary to accomplish assigned organizational tasks.” The second is the link between a job and the person who started it. Control IA-2 asks systems to identify users and “associate that unique identification with processes acting on behalf of those users.”
The identity each job runs under belongs in the same inventory as the batch job stream.
Audit records are part of the migration
RACF writes its audit events as System Management Facilities records. IBM’s reference for record type 80 lists the events, including unauthorized attempts to enter the system and authorized or unauthorized attempts to access protected resources. Whether a successful access is logged depends on an option set in each resource profile. The logging policy therefore lives in the same database as the access rules.
Two questions follow. The first is whether the target produces equivalent events. NIST SP 800-53 control AU-12 requires audit record generation for the event types the organization selects, and AC-6(9) reads: “Log the execution of privileged functions.”
The second concerns the old records. Control AU-11 requires retaining audit records “to provide support for after-the-fact investigations of incidents and to meet regulatory and organizational information retention requirements.” The legacy records have to stay readable after the mainframe is gone, which belongs in the disposition plan.
An illustrative example: one case management system
The system and figures below are illustrative. A case management system has about 2,400 data set profiles, 310 groups, and 5,200 user IDs. The target design has nine application roles and one batch service account. An export of the security database finds the following.
| Item found in the security database | Count (illustrative) |
|---|---|
| Profiles whose default access level is read or higher | 140 |
| Profiles in warning mode | 37 |
| User IDs with the OPERATIONS attribute | 12 |
| User IDs used only by batch jobs | 64 |
| Individual access list entries lower than the user’s group entry | 220 |
The team adds roles, splits the batch account into several with separate grants, and records a decision for each of the 37 warning-mode profiles.
It then runs a decision comparison. For a sample of 18,000 combinations of user, resource, and action, the team records the answer the legacy rules give and the answer the target gives. The answers differ in 1,150 cases. Most are intended, because default access was removed. In 210 cases the target allows something the mainframe denied. Most trace back to the 220 individual restrictions, which the role mapping had dropped. Those are fixed before go-live.
What to ask for before cutover
- An access rule inventory. Exported from the security database, not taken from documentation, with defaults, warning-mode profiles, and broad attributes listed separately.
- A mapping table. Each legacy profile and group mapped to a role or grant on the target, approved by the system owner.
- A batch identity plan. The identity each job runs under, what it can reach, and who can start it.
- A decision comparison. Legacy and target answers for a sample of users, resources, and actions, with every difference classified as intended or as a defect.
- An audit event mapping. Each legacy event type matched to a target event, and a retention plan for the legacy records.
A migrated system is a changed system under the Risk Management Framework in NIST SP 800-37, so assessors will ask for this evidence either way.
How QuantumWorks approaches this
PRISM analyzes a legacy codebase and maps its entry points, behavior, dependencies, and outputs, each anchored to file and line. A map of which programs read and write which data gives a team a factual starting point when deciding what each role and batch identity needs on the target.
If your program is moving a system off a mainframe and needs to show that access and audit rules came with it, we would be glad to talk. Contact QuantumWorks.