Mainframe security is protecting the large central computers that run payments, bookings and records for big organisations.
This guide is for students, managers and newcomers who keep hearing that banks still run mainframes and want to know how they are kept safe. You do not need to work in IT to be affected: when you pay by card or book a flight, a mainframe may handle part of it.
In short
- A mainframe is a large computer built to handle huge numbers of transactions without stopping.
- Banks, insurers and airlines still use them because they are fast, reliable and hold core records.
- Most mainframe security comes down to who may log in, what each login may touch, and what gets recorded.
- Old unused logins, logins with too much power and unwatched records are the usual weak spots.
What you will learn
- Explain what a mainframe is and why banks still use them.
- Describe the three main jobs of mainframe security in plain words.
- Spot the common weak spots in a list of mainframe logins.
- Ask sensible questions about how your organisation protects its mainframe.
- Big central computer (mainframe)
- a large computer built for nonstop, high-volume work such as payments.
- Gatekeeper program (RACF)
- IBM's program that checks who you are and what you may use on a mainframe.
- Login ID (user ID)
- the name a person or program uses to sign in to the mainframe.
What is mainframe security?
Think of the engine room of a big ship. Few passengers ever see it, but everything on board depends on it. So only trained crew may go in, each one may touch only certain controls, and the log book records what they did.
A mainframe is a large, powerful computer built to run all the time and handle a huge number of transactions.[1] Banks use them for card payments, cash machine withdrawals and account updates. Insurers use them for claims, and airlines for bookings.[1]
Mainframe security is the work of keeping that engine room safe. On IBM mainframes, a gatekeeper program called RACF (Resource Access Control Facility) does much of this job. It checks who is logging in, decides what each login may use and records attempts to get in.[2]
Where the comparison stops working: a ship has one engine room with a door you can watch. A mainframe can be reached by thousands of people and programs at once, often from far away, so the checks have to be automatic.
Why does it matter?
Mainframes often hold an organisation's most important records. IBM says 43 of the world's top 50 banks rely on the mainframe as their core platform.[1] If someone misuses a mainframe login, they may be able to read or change money and customer records.
If you are a student or new to IT
What could happen: you assume mainframes are old news and skip a field that still needs skilled people.
Check this: learn the basics of logins, access rules and records. They carry over to every system.
If you manage a team that uses the mainframe
What could happen: staff who changed jobs or left still have logins that can change customer records.
Check this: review who in your team has mainframe access, and remove what is no longer needed.
If you work in security but not on mainframes
What could happen: the mainframe's records never reach your monitoring, so a misuse goes unseen.
Check this: ask whether mainframe security records feed into the same monitoring as other systems.
Next: SIEM for Beginners
What does it look like?
Here is a made-up, simplified list of mainframe logins, like one a reviewer might be given.
Example only. All values are made up.
LOGIN ID OWNER LAST USED WHAT IT MAY DO PAYTEAM1 Payments team today read payment files OLDTEST0 unknown 2019 full admin powers (1) NIGHTJOB overnight batch today update all accounts (2) STCFAKE system program today skips access checks (3) EXAMPLE9 left in 2024 last month change customer records (4)
- In a real file, this line would show an old test login with no owner and too much power.
- A user ID used by a program that runs overnight. It may need access, but perhaps not to every account.
- A system program allowed to skip the normal checks. IBM advises giving this only where its documentation says to.[5]
- A login for someone who has left, yet it was used last month.
Why this is risky: unused, ownerless and overpowered logins give an intruder or insider more ways to do harm.
The safer way: every login has an owner and only the access its job needs. Unused logins are removed. Special powers are rare, approved and watched.
How does it work?
Mainframe security follows the same three questions as other systems, done very carefully.
- Who are you? A person or program signs in with a login ID. The gatekeeper checks a password, passphrase, certificate or similar proof.[2]
- What may you use? The gatekeeper holds rules, called profiles, about each login and each file or program. It allows only what the rules say.[2]
- Who should have it? Sensitive files should be open only to people whose job needs them. Unused login IDs may be switched off, and leavers' IDs should be removed.[3]
- What happened? The gatekeeper records attempts to get in, both allowed and refused.[2] The mainframe also collects activity records through a feature called SMF (System Management Facilities). IBM lists security as one of its uses.[4]
- Who checks the records? Someone has to read the records and act on anything odd. Unread records protect nobody.

Many mainframe user IDs belong to programs, not people. A program that starts with the system, called a started task, needs its own user ID before it can be given access to anything.[6] These program user IDs are non-human identities (NHIs). A non-human identity is a digital identity, or the credential behind it, that represents a machine, application, automated process, service or AI agent. They need owners and reviews just like people's logins.

A worked example
Darius Bergmann has just joined the security team at a fictional building society as a graduate. He has never touched a mainframe. His mentor, Cyrus Gallardo, has looked after it for twenty years.
Cyrus hands Darius a list of mainframe user IDs for the payments area. "Start here," he says. "Most problems on this machine are about who can do what."
Darius thinks of the engine room. Who is allowed in, which controls can they touch, and is the log book being read?
He sorts the list by "last used" and by owner. Three things stand out. An old test login from 2019 still has full admin powers. A login for a contractor who left last year is still switched on. And an overnight program can update every account, when it only needs the payment files.
Cyrus explains that removing user IDs on a live banking system needs care. A program user ID might be used by a job that runs once a month. So they agree a plan. The test login and the contractor's login are switched off first, with a note on how to switch them back on if something breaks. The overnight program's access is narrowed after its owner confirms what it needs.
Darius also asks whether the mainframe's security records reach the main monitoring team. They do not. Cyrus adds it to the team's list of work for next quarter.
A month later, nothing has broken, and the list is shorter.
Myths and mistakes
| What people think | What is true |
|---|---|
| Mainframes are old and nobody uses them now. | Banks, insurers and airlines still run core work on them.[1] |
| Mainframes are too obscure to be attacked. | Being unfamiliar to most staff can mean fewer people notice problems. Obscurity is not protection. |
| The mainframe team has it covered, so security can ignore it. | Mainframe records should reach the same monitoring as other systems. |
| Program user IDs do not need reviews because no person uses them. | Program user IDs can be misused too. Each needs an owner and only the access its job needs. |
| Giving a program powers to skip checks is the quick fix. | IBM advises giving that power only where its documentation says to.[5] |
What can I do this week?
- Find out if your firm uses a mainframe, and who looks after its security.
- If your staff use the mainframe, check that each person still needs it.
- Ask whether logins for leavers are removed on the day they go.
- Ask whether mainframe security records are read by a monitoring team.
- If you are learning, read the guide below to see what the experts check.
Checklist
- Every mainframe user ID, human or program, has a named owner.
- Logins that have not been used for a long time are reviewed and switched off.
- Leavers' logins are removed through a formal process.
- Sensitive files are open only to logins whose job needs them.
- Powers to skip security checks are rare, approved and recorded.
- Security records are collected and someone reviews them.
- Changes to access go through approval by the resource owner.
Common questions
Why do banks still use mainframes?
Because they are built to handle huge numbers of payments without stopping. IBM says they are made to run all the time and to process a very high volume of transactions.[1] Many banks also have years of core work built on them, so they keep them at the centre.
What is RACF?
RACF is IBM's security program for its main mainframe system, called z/OS. It checks who is signing in. It uses rules in its own store to decide what each login may use. It also records attempts to get in.[2] Some firms use other products that do a similar job.
Is mainframe security very different from other security?
Not in its ideas. You still check who someone is, give only the access they need and keep records. The tools, words and screens are different, so the work often sits with experts. The basics you learn on other systems still help.
Can I learn mainframe security without a mainframe?
Partly, yes. You can learn the ideas and the words from free guides, such as IBM's own z/OS pages. To practise for real, you usually need access through a job, a university or a training course.
What are started tasks?
Started tasks are programs that run as part of the mainframe system. An operator often starts them. Each one needs its own user ID before it can be given access.[6] So they are program user IDs, and they need owners and reviews like any other user ID.
Where next?
Ready for the detail? Read the practitioner guide: IBM z/OS Security Hardening Guide. It goes further into system integrity settings, privileged roles, detection rules and a hardening baseline.
Also useful:
- Mainframe Identity and RACF Security Guide
- Mainframe Service Accounts and Batch Job Identity Guide
- Service Accounts for Beginners
- Least Privilege for Beginners
Related NHI Mgmt Group resources: Mainframe SMF Security Monitoring · Mainframe Incident Response and Forensics Guide · Mainframe Modernisation Security Guide
Key terms
- Mainframe
- A large central computer used for high-volume transactions and shared business work.
- RACF
- IBM's access control program for mainframe users and resources.
- Least privilege
- Giving each person or program only the access it needs to do its job.
- Service account
- An account used by a program rather than a person.
- Privileged access
- Extra powers that can change systems, data or security settings.
- Logging
- Recording what happens on a system so it can be checked later.
- Started task
- A program that runs as part of the mainframe system and needs its own user ID.
Sources and further reading
- What Is a Mainframe? IBM Think, IBM. https://www.ibm.com/think/topics/mainframe, accessed 28 Nov 2026.
- IBM Resource Access Control Facility (RACF). IBM. https://www.ibm.com/products/resource-access-control-facility, accessed 28 Nov 2026.
- What is RACF? z/OS Basic Skills, Security on z/OS, IBM Documentation. https://www.ibm.com/support/knowledgecenter/zosbasics/com.ibm.zos.zsecurity/zsecc_042.htm, accessed 28 Nov 2026.
- Introduction to SMF. z/OS MVS System Management Facilities, IBM Documentation. https://www.ibm.com/docs/SSLTBW_2.4.0/com.ibm.zos.v2r4.ieag200/intro.htm, accessed 28 Nov 2026.
- Assigning the RACF TRUSTED attribute. z/OS 3.2, IBM Documentation. https://www.ibm.com/docs/SSLTBW_3.2.0/com.ibm.zos.v3r2.ieae200/trusted.htm, accessed 28 Nov 2026.
- Using started procedures. z/OS 3.2 Security Server RACF, IBM Documentation. https://www.ibm.com/docs/SSLTBW_3.2.0/com.ibm.zos.v3r2.icha700/stproc.htm, accessed 28 Nov 2026.