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

Security Patrol discusses security topics and implementation tips and answers your security questions. I welcome questions, recommendations, and suggestions for security topics you would like discussed in detail. You can submit your correspondence through MC-BBS at 619-931-9909; by E-mail at This email address is being protected from spambots. You need JavaScript enabled to view it.; or by fax at 520-578-7786. I cannot answer every question, but I'll try to publish those questions of a general nature. Please include your phone number.

-Wayne O. Evans, chief of security

Q: During an audit of our AS/400, one of the findings was the use of default user profiles named in the communications entries. The default user profile in several different communications entries names the user profile OWNPROD. This profile is the owner of production data files and has a password of *NONE. If I change the entries in the communications subsystem QCMN to replace this default user profile with *NONE, jobs from other systems that use DDM or ICF to access data on our system fail.

I do not fully understand how default user profiles work with communications entries. Are default user profiles in communications a security exposure? If so, how can I remove them without causing disruption to our production applications?

A: The default user in the communications entry of a subsystem has three possible values:

*NONE-Security information must be entered. Requests without security information will be rejected.

*SYS-All user-evoked requests require security information. A default user profile will be used for IBM-defined transaction programs.

User Profile-The name of the default user profile used for evoked requests that enter the subsystem through this entry and contain no security information. (This option is a potential security exposure).

If the display of your communications entries in your communications subsystem is similar to that shown in 1, where a default user profile such as OWNPROD is specified, then there is a security exposure.

If the display of your communications entries in your communications subsystem is similar to that shown in Figure 1, where a default user profile such as OWNPROD is specified, then there is a security exposure.

If a default user profile name is specified and the remote system did not provide any security information, the job will start using the default user profile. If the default user profile has authority to production data, as your OWNPROD profile does, the communications job will have full access to production data.

The exposure is that a remote system can start a job on your AS/400 using the default user profile. A hacker can easily exploit the default user profile because there is no password or user profile name required to start a job as the default user.

Correcting this security exposure is the challenge. From a security standpoint, the best solution is to change the communications entries to remove the default user. However, if you do, production applications are likely to fail. The applications that depend upon the default user profile to access production data need to be started using the profile name of the default user. I have two potential solutions:

1. Create an explicit device specification.

2. Remove the default user.

This first solution reduces the security exposure so only specific systems can use the default user profile. The initial subsystem description shown in 1 allows *ANY communications device to start jobs with the default user profile OWNPROD. You can limit the exposure to specific systems by changing the subsystem description to remove the default user profile name for the *ALL devices entry. Next, create a configuration entry with an explicitly named communications device associated with the remote system you want to communicate with and place the user profile name in that entry. 2 illustrates this configuration for two remote systems: SYSTEM1 and SYSTEM2.

This first solution reduces the security exposure so only specific systems can use the default user profile. The initial subsystem description shown in Figure 1 allows *ANY communications device to start jobs with the default user profile OWNPROD. You can limit the exposure to specific systems by changing the subsystem description to remove the default user profile name for the *ALL devices entry. Next, create a configuration entry with an explicitly named communications device associated with the remote system you want to communicate with and place the user profile name in that entry. Figure 2 illustrates this configuration for two remote systems: SYSTEM1 and SYSTEM2.

If you use this option, I recommend the use of a location password (LOC-PWD) for the device descriptions for systems (SYSTEM1 and SYSTEM2) that use the default user profile. The LOCPWD ensures that the communication is with the desired systems.

Before I describe the second solution, I want to explain some details about communications configurations so you understand this solution. The communications configuration on your AS/400 defines the Advanced Program-to-Program Network (APPN) devices that determine which remote systems can connect to your AS/400. Two communications configuration parameters (Secure location and Location password) control the security of remote communications. There are two ways to specify these security parameters. The device description or the remote configuration list specifies the attributes of the communications configuration. For more detail, refer to these commands:

o Change Device APPC

(CHGDEVAPPC)

o Create Device APPC (CRTDEVAPPC)

o Add Configuration List Entries

(ADDCFGLE)

o Change Configuration List Entries (CHGCFGLE)

The Secure location (SECURELOC) parameter determines if your system will accept security information from a remote system. The default value of *NO indicates that your system requires remote systems to supply security information. When *NO is specified for SECURELOC, the remote system must supply both a user profile and a password to start a job on your system or send no security information (blanks as user profile and password). Sending blanks will be accepted only if your system has configured a default user (which we want to avoid). When *YES is specified for the SECURELOC parameter, your system will accept a user profile name and no password from the remote system. Your system "trusts" the remote system to validate the user profile as correct.

The communications experts refer to this support as "already verified." The remote system has already verified the user profile password, so no password is required. You do not want to specify SECURELOC(*YES) for another system unless you are confident about the security implementation at the other system. Specifying SECURELOC(*YES) is reasonable for systems within your own company but should never be specified for systems of outside vendors. Since you are trusting the remote computer, you need to be assured that the system you are communicating with is actually the computer you intend. The second parameter of the device configuration, LOCPWD, validates the remote computer as the system intended. LOCPWD is 1-16 hexadecimal numbers that must be the same at both the local and remote systems, or the communications session will be rejected. If you attach to multiple locations, the LOCPWDs should be unique and random. I recommend that you not record the LOCPWDs. Should you need to reconfigure the system, contact the remote system to assign a new LOCPWD.

You may be wondering why I spent so much time on SECURELOC and how it relates to your problem of removing the default user profile names in your system. The Secure location parameter value of *YES is required to be able to start a communications job from a remote system without sending the password on the communications evoked. The IBM DDM support does not allow you to specify a user profile and password. I will use Secure location in the second method.

The second method to remove the default user in the communications entries is shown in 3.

The second method to remove the default user in the communications entries is shown in Figure 3.

If the communications device description specifies SECURELOC(*YES) and the remote system is running a job as user OWNPROD, the SECURELOC(*YES) allows the job to perform DDM operations using the user profile OWNPROD when the remote system opens a DDM file. Starting jobs using the OWNPROD user profile depends upon two conditions.

1. The device or location description must be created with SECURELOC(*YES).

2. The job at the remote system runs with user profile OWNPROD.

You can change the device description using the CHGDEVAPPC, Change Configuration List (CHGCFGL), or the Work with Configuration Lists (WRKCFGL) command to specify a secure location. Vary off the communications device to change the SECURELOC parameter. Changing SECURELOC is adequate, but I recommend specifying a LOCPWD at the same time. If you specify a LOCPWD, you will need to change the corresponding device description on the remote system.

The job on the remote system should be running with the user profile OWNPROD. The remote system jobs are either batch jobs or interactive sessions. Individual users should sign on with their user profiles, not OWNPROD. The challenge is to change the job prior to doing a communications function. The program SWAP, shown in 4, swaps the OWNPROD profile before opening the DDM or ICF file. You should add the following command to the user's initial program.

The job on the remote system should be running with the user profile OWNPROD. The remote system jobs are either batch jobs or interactive sessions. Individual users should sign on with their user profiles, not OWNPROD. The challenge is to change the job prior to doing a communications function. The program SWAP, shown in Figure 4, swaps the OWNPROD profile before opening the DDM or ICF file. You should add the following command to the user's initial program.

 CALL PGM(SWAP) PARM('*OWNER') 

You should restrict access to the program SWAP since it changes the job on the remote system to run as user OWNPROD. If the OWNPROD profile can enter commands, you should swap the users back to their original user profiles by specifying the following command prior to allowing any command access.

 CALL PGM(SWAP) PARM('*USER') 

(For more information about the subject of communications configurations, see Security Patrol, MC, September 1994.)

Security Patrol

Figure 1: All Devices with Default User


Security Patrol

Figure 2: Specific Devices for Default User


Security Patrol

Figure 3: Subsystem Communications Entries with No Default User



Security Patrol

Figure 4: CL Program to Swap User Profiles

 /*==================================================================*/ /* To compile: */ /* */ /* CRTCLPGM PGM(XXX/SWAP) SRCFILE(XXX/QCLSRC) + */ /* USRPRF(*OWNER) */ /* */ /* CHGOBJOWN OBJ(XXX/SWAP) OBJTYPE(*PGM) + */ /* NEWOWN(QSECOFR) */ /* */ /*==================================================================*/ PGM PARM(&OPTION) DCL VAR(&OPTION) TYPE(*CHAR) LEN(10) DCL VAR(&NEWUSR) TYPE(*CHAR) LEN(10) + VALUE('OWNPROD') DCL VAR(&HANDLE) TYPE(*CHAR) LEN(12) IF COND(&OPTION *NE '*OWNER') THEN(RTVJOBA + USER(&NEWUSR)) CALL PGM(QSYGETPH) PARM(&NEWUSR '*NOPWD' &HANDLE) CALL PGM(QWTSETP) PARM(&HANDLE) CALL PGM(QSYRLSPH) PARM(&HANDLE) ENDPGM 
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: