20
Sat, Apr
5 New Articles

Why Does It Matter Which Profile Owns IBM i Objects?

IBM i (OS/400, i5/OS)
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Carol describes security considerations one should make when deciding which profile will own IBM i objects.

By Carol Woodbury

We seem to always focus on the *PUBLIC authority of objects and whether they’re secured with an authorization list. But little is said about ownership. I thought you might find a brief tutorial and considerations that you’ll want to make helpful.

Ownership Facts

First, let’s look at some facts about object ownership on IBM i.

Fact #1: All objects must have an owner. In fact, this is the purpose of the IBM-supplied profile QDFTOWN. For example, when an object is restored to the system where the object on the media is owned by a profile that doesn’t exist on the system, the object is owned by QDFTOWN. You’ll often see vendor fixes owned by QDFTOWN because they’re developed one-off from their normal build process, so the developer who created or tested the fix owns the objects associated with the patch. But since that developer profile won’t exist on customer systems, when the fix is restored, the system changes the owner to be QDFTOWN.

Fact #2: When you own an object, you have *ALL authority to the object.

Fact #3: When a group owns an object, every member in effect owns the object. In other words, group members have *ALL authority to the objects owned by their group(s).

Fact #4: While you can remove the authority an owner has to its objects, the owner can always give it back to itself. (This is the only time you can give yourself authority you don’t have.)

Fact #5: Information about the object owner is stored in the object’s header, which means it’s saved and restored with the object.

When Can Ownership Make a Difference?

Probably the most obvious case where ownership makes a difference is when programs and service programs are configured to adopt authority—that is, the User Profile attribute of the program is set to *OWNER. Obviously, if a program is owned by and adopts QSECOFR, a user has significantly more power available when the program runs than when running a program owned by a profile that has no special authorities and owns no other objects. This is the most obvious example. Let’s look at some other, less-obvious examples.

Ownership also matters when the owner is a group profile. For example, the ownership of user profile objects requires consideration. As facts 2 and 3 state, the owner and the owner’s members have *ALL authority to the objects owned by the group. If an end-user group owns user profiles, for example, then it’s quite easy to run remote commands or submit jobs to masquerade (run as) a different user or even elevate your rights using someone else’s profile to do your dirty work.

When a group profile is the owner of an application and, to use the application, one has to be a member of this owner group profile, every user of the application has *ALL authority to all application objects. Stop and think about this for a moment (or two or ten until it really sinks in as to what this means). In the good ol’ green-screen days, this was not an issue. But today, our systems are accessed by many types of connections, such as FTP, ODBC, and DDM. In addition, remote commands can be run against the system via a Windows command line, rexec, DDM, etc. Users can easily discover how to download data into an Excel spreadsheet using ODBC or an Access Client Solutions (ACS) data transfer; a simple Internet search brings up step-by-step instructions. In this configuration (that application users are a member of the owning group), it doesn’t matter what the *PUBLIC authority setting is—even if it’s *EXCLUDE. The authority their group provides them will give the application users *ALL authority. With *ALL authority, they can (obviously) do anything with the data—download it, upload it, clear the file, replace a program. In other words, the application is not at all secure!

A far less obvious issue is when a group profile owns an authorization list. Often, users added to an authorization list have been carefully reviewed and only added when they have a business need to access the data secured by the list. When a group profile owns the authorization list, the group members have *ALL authority to everything secured by the list (not just *ALL to the authorization list). This access is usually quite unintended. I ran into this problem at a client’s company not long ago. An authorization list was securing some sensitive files. Users authorized to the authorization list were added only via an approved access request. However, the list wasn’t owned correctly and unbeknownst to the data owners, members of the owning group profile with no business need had access to the sensitive data secured by the authorization list.

When System-Supplied Profiles Own Objects

I am not a fan of having applications owned by system profiles because system-supplied profiles are often made to be group profiles. See discussion above for the dangers of having a group profile own an application! In addition—right or wrong—many vendors have used the system-supplied profiles to own their applications. QPGMR seems to be the most popular…and typically creates the most exposures. QPGMR tends to be the group profile for developers, so developers end up owning everything that QPGMR owns. When QPGMR owns vendor products, you have developers owning the vendor products. If nothing else, this causes separation-of-duty issues because the developers have *ALL authority to products that are used to log or control their access! Worse is when ownership allows developers to surreptitiously change configuration settings.

How Can I Tell What Objects a Group Owns?

If you’re thinking you should take a look to see what your group profiles own, I’d say that’s a good idea! A couple methods exist for listing the objects owned by a group. You may be familiar with the option on Display User Profile (DSPUSRPRF) that allows you to list the objects owned by a profile. The following lists the objects owned by GROUP_A:

DSPUSRPRF USRPRF(GROUP_A) TYPE(*OBJOWN)

The problem with using this command is that it doesn’t list objects that reside in the IFS. A better interface is the Work with Objects by Owner (WRKOBJOWN) command, which lists objects in both libraries and directories.

Summary

You may not have considered the ownership of objects to be a significant security setting prior to this, but I hope you’ll make ownership of objects a consideration going forward.

Carol Woodbury

 

Carol Woodbury is President and CTO of DXR Security and has over 30 years’ experience with IBM i Security. She started her career as Security Team Leader and Chief Engineering Manager for iSeries Security at IBM in Rochester, MN. Since leaving IBM, she has co-founded two companies – SkyView Partners and DXR Security. Her current company - DXR Security - specializes in penetration testing for IBM i. Her practical experience together with her intimate knowledge of the system combine for a unique viewpoint and experience level that cannot be matched.

Carol is known world-wide as an author and award-winning speaker on security technology, specializing in IBM i Security topics. She has written seven books on IBM i Security. Carol has been named an IBM Champion since 2018 and holds her CISSP and CRISC security certifications.

 


MC Press books written by Carol Woodbury available now on the MC Press Bookstore.

IBM i Security Administration and Compliance: Third Edition IBM i Security Administration and Compliance: Third Edition
Don't miss the newest edition by the industry’s #1 IBM i security expert.
List Price $71.95

Now On Sale

IBM i Security Administration and Compliance: Second Edition IBM i Security Administration and Compliance: Second Edition
Get the must-have guide by the industry’s #1 security authority.
List Price $71.95

Now On Sale

IBM i Security Administration and Compliance IBM i Security Administration and Compliance
For beginners to veterans, this is the definitive security resource.
List Price $69.95

Now On Sale

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: