02
Sat, Nov
2 New Articles

Security Patrol

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

Software Install as QSECOFR

Question: I am the security administrator at a small shop with one AS/400. In my department, other employees have responsibility for loading software packages. The installation instructions from software vendors always begin with the same four words: Sign on as QSECOFR. It has become common practice to share the QSECOFR password among several employees and use it for all software updates. I would like to see some discussion about why it is necessary (or desirable) to sign on as QSECOFR for all software updates. I would prefer if possible to use QSECOFR more selectively.

Answer: I understand your concern. First, let me explain why the powerful QSECOFR profile is required to install software applications. Then, I will give you two alternatives that I feel are better than sharing the QSECOFR password among several employees. Finally, I will recommend that the QSECOFR user profile be used only in rare cases.

Software install instructions specify “Sign on as QSECOFR” to avoid installation problems. Software applications frequently include programs that adopt their owner’s authority. When programs that adopt their owner’s authority are installed (restored) by a user other than the owner of the program or a security officer, OS/400 will revoke access to the programs. OS/400 considers a security officer to be any user with *ALLOBJ and *SECADM special authorities. The user profile QSECOFR has the special authorities required to restore programs that adopt, without revoking access to the programs. Rather than instruct you to sign on as a user with *ALLOBJ and *SECADM special authorities, the install instructions simply take a shortcut and ask you to sign on as QSECOFR. Most software applications can be installed by anyone with a user profile that has *ALLOBJ and *SECADM special authorities.

You are right to be concerned about sharing the password of the QSECOFR user profile among several employees. For accountability purposes, only one person should

know the password of QSECOFR. (A company usually has other user profiles with *ALLOBJ and *SECADM special authorities. These users can change the QSECOFR password if the person who knows the password is not available.) I recommend using one of these two alternatives: Create alternate profiles or use a program that adopts for the restore.

Create Alternate Profiles

Most software installations can be performed by anyone with a user profile that has *ALLOBJ and *SECADM special authorities. In rare cases—when communication configuration objects are created or modified—*IOSYSCFG special authority may also be required.

The first alternative is to simply create user profiles with the required special authority to perform the install. This alternative will mean that some individuals will have two user profiles: a normal profile to be used for most daily activities and a powerful security profile to be used for software installation. To maintain accountability of who made the change, these user profiles should not be shared. Use of individual user profiles also facilitates password change, since each person can change the password of their profiles without coordinating the change with other employees.

This first alternative gives equivalent function to a shared QSECOFR user profile, with improved accountability and profile management.

Use a Program That Adopts for the Restore

The problem with the first alternative is that the security officer access of the powerful user profile can be used not only for software installation but also for other functions that might be off-limits to the employee. This second alternative corrects that problem. It gives the users authority to perform software installation only, by allowing them to use a program that adopts the QSECOFR user profile. The program shown in Figure 1 prompts the user for the Restore Library (RSTLIB) command. The program adopts the authority of the owner QSECOFR, which allows the program to restore other objects that adopt. For an in-depth look at adopted authority, see “Object Security by Adoption” in this issue of MC.

Recommendations for QSECOFR User Profile

If you follow one of the previous recommendations, the QSECOFR user profile does not need to be shared. I recommend that no users sign on as QSECOFR. Change the password for the QSECOFR user profile, and write it down and store it in a safe place. I suggest that you store a copy of the QSECOFR password with the off-site copy of your disaster recovery plan. In the event of a fire or natural disaster, your AS/400 may not be available, and you will need the password of QSECOFR to load the backup copy. When the system first IPLs, other profiles will not be loaded, so you will need the QSECOFR password.

Security Level Should Be at Least 40

Question: We are currently running security level 20 on our production AS/400 and security level 30 on another system. In your lectures, you recommend setting the security level to 40. Please explain the advantages of security level 40 and describe the procedure to increase the security level.

Answer: If the system value QSECURITY is below 40, you are missing an essential layer of protection. Setting the security level to 40 or 50 eliminates the following potential security exposures:

• At security level 20, all users on the system are given *ALLOBJ special authority. *ALLOBJ special authority allows users to view, modify, and even delete the data objects either by accident or on purpose. Increasing the security level to 30 removes *ALLOBJ authority from user profiles other than those of user class security officer.

• At security level 30, if users have *USE authority to job descriptions (JOBDs) that name user profiles, they can use that JOBD to submit jobs and run them as the user named in the job description. (At security levels below 40, access to a JOBD that names a user profile is like knowing the user’s password, because jobs can be run in batch using that JOBD.) You should print a list of JOBDs that name user profiles using the Print JOBD Authority (PRTJOBDAUT) command (see “Track System Security with IBM’s Free AS/400 Security Tools” in this issue of MC). But securing the JOBDs that name user profiles requires more effort than moving to security level 40. At security level 40 or 50, the user must be authorized to both the JOBD and the user profile. Because user profiles are created with *EXCLUDE public authority, security level 40 or 50 prevents users from submitting jobs as other users—even if JOBDs exist that name user profiles.

• The JOBDs that name user profiles can cause another potential exposure. If the JOBD specified in the workstation entries of a subsystem description names a user profile, at security levels below 40, users can simply enter blanks for the user profile and password on the sign-on screen and sign on as the user named in the JOBD. (See the sidebar “Default User IDs Can Be a Potential Security Breach” in the article “Are Your AS/400 Passwords Really Secure?” elsewhere in this issue of MC). At security levels 40 and 50, the user must enter a user profile name and password.

State domain protection and hardware storage protection is not enforced at security levels below 40. This allows programs written in machine interface (MI) to modify space objects if the user has *USE access to the object. (*USE access is designed to allow read- only access, but, at security levels below 40, MI programs can modify objects.) OS/400 uses space objects for many objects, such as JOBDs, commands (CMDs), and data areas (DTAARAs). Many other OS/400 object types also consist of one or more space objects. (Please note that user space objects are not protected by state domain protection.)

Because your production system is at security level 20, you must authorize users to the objects they need to access to perform daily operations. Grant users this authority before you increase your security level to avoid authorization failures that could confuse the users. The recommended procedure is to remain at security level 20 and assign users to a group profile. Create the group profile without *ALLOBJ special authority. Create a test user profile that’s similar to other user profiles, but don’t give it *ALLOBJ special authority. Use the test profile to exercise application functions. Because this profile does not have *ALLOBJ authority, authorization failures will be detected. Authorize the group profile or *PUBLIC to the objects that cause authorization failures. Continue using the test user profile and authorizing the group profile to objects until you’ve removed all authorization failures. Then, remove *ALLOBJ authority from one production user profile and correct any remaining authorization failures before you increase the security level to 40.

If your application software directly accesses objects or IBM internal interfaces, increasing to security level 40 may cause the application to terminate. Your applications will function without failure if you remain at your current security level. Rather than risk failure of your production applications, remain at your current security level and turn on auditing to see if you can safely move to security level 40. Specifying *PGMFAIL in the system value QAUDLVL directs the system to record any potential failures in the audit journal. Run the audit journal through a month-end close. If no domain violations are reported, you can safely increase the security level to 40. If domain violations are reported,

you should not move to security level 40, because the affected programs will stop working. Most software runs at security level 40, but, if you have an older version of the software installed, you may need to upgrade before increasing your security level. Contact the vendor of your application to see if there’s a version that runs at security level 40

For more details on changing security levels, see “A Guide to Changing QSECURITY,” MC, March 1994. This article is included in chapter 8 of Wayne O. Evans on AS/400 Security.

/****************************************************/

/* Installation instructions */
/* 1. Compile program */
/* CRTCLPGM PGM(xxx/RESTORE) */
/* SRCFILE( xxx/RESTORE) USRPRF(*OWNER) */
/* AUT(*EXCLUDE) */
/* 2. Change owner of the program to user QSECOFR. */
/* Adopted authority allows the program to */
/* restore other objects that adopt */
/* CHGOBJOWN OBJ(xxx/RESTORE) */
/* OBJTYPE(*PGM) NEWOWN(QSECOFR) */
/* 3 Grant access to user that are allowed */
/* to perform software installs */
/* GRTOBJAUT OBJ( xxx/RESTORE) OBJTYPE(*PGM) */
/* USRPRF(user1) AUT(*USE) */
/* */

/****************************************************/

PGM

? RSTLIB OUTPUT(*PRINT)
EXIT :ENDPGM

Figure 1: Program adopt for library restore

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

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: