27
Wed, Nov
0 New Articles

How Did IBM Enhance Security in 7.1?

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

Some changes have system administrators in mind; others benefit ISVs.

 

Version 7.1 of the IBM i operating system introduces several not quite jaw-dropping but nonetheless useful security enhancements. ISVs will find certain enhancements particularly interesting, while others will be of greater interest to customer IT shops.

Automated Profile Disablement

For the average customer, the enhancement of greatest interest may be the new "automated profile disablement" feature integrated into user profiles. The system will not allow anyone to log in with a disabled profile, even if the correct password is provided. In previous releases, the only ways to disable a profile were by a user repeatedly attempting to authenticate using an incorrect password or by an administrator explicitly setting a profile's status to *DISABLED.

The new user profile function allows an administrator to specify the length of time a user profile will remain enabled or, alternatively, the date on which the user profile will be disabled. This will be especially useful for managing profiles for temporary employees, contractors, and IBM support personnel.

 

Similar support has been available in the Security Toolkit functions available on the IBM i since the mid-1990s. But that function, found in the DSPACTSCD and CHGEXPSCDE commands, was provided on top of rather than integrated into the OS. Many customers were not aware it even existed.

In V7.1, two new, mutually exclusive attributes, USREXPDATE (User expiration date) and USREXPITV (User expiration interval), have been added to user profiles. Both values can be set or changed by an administrator on the CRTUSRPRF and CHGUSRPRF commands. If the USREXPITV attribute is set, the user profile will remain enabled for the number of days specified. If the USREXPDATE attribute is set, the user profile will be disabled on the specified day at about midnight.

 

The DSPACTSCD and CHGEXPSCDE commands from the security toolkit continue to provide the same function as they always did, but their function is now integrated into the system. You can still delete (rather than disable) an expired user profile, but that function is available only through the CHGEXPSCE command. DSPUSRPRF provides the same information as DSPACTSCD for a specific profile.

 

All of the user profile expiration information is displayed via DSPACTSCD and DSPUSRPRF. The commands, CHGEXPSCDE and DSPACTSCD, work as they always did but are now tied together, from a code perspective, with the new user profile parms (you can use either). *DELETE is still supported on CHXGEXPSCDE. If you use CHXGEXCPSCDE PAT on a profile and then DSPUSRPRF PAT, you will see the expiration date and option (*DISABLE or *DELETE). 

Encrypted Storage Enhancements

Also of potential interest to customers is additional support for encrypted auxiliary storage pools (ASPs). V6.1 introduced software encryption for newly created ASPs. Existing ASPs, however, couldn't exploit encryption. V7.1 allows a customer to turn software encryption on—and off—for existing ASPs, which provides much more flexibility. Encryption keys used to encrypt data on ASPs—and protected by a master ASP encryption key—can also be changed beginning in V7.1. This enables periodic key rotation.

V7.1 supports new hardware-based disk encryption as well. The support requires Tivoli Key Lifecycle Manager (TKLM). Encryption Key Manager (EKM), which is used for encrypting tape drives, is still supported, but TKLM is now considered strategic by IBM. TKLM does not run natively on IBM i. The vast majority of customers run encryption key managers on cheaper Windows or Linux boxes as there are numerous scenarios (especially disaster recovery) where this makes sense. The DS8000 and DS5000 series disk drives provide encryption in the drive. More choices are now available for encrypting tape drives too. The Redbook IBM System Storage Data Encryption is a good reference for more information on this topic.

Database Field Procedures

Of particular interest to ISVs and to the more advanced IT shops is a new database feature IBM calls "field procedures." Similar to triggers, they are user programs called during read, update, and insert operations for defined columns in a database table. Field procedures can be used for any purpose; however, they include an extra twist: an internal data space independent of the I/O buffers used for the "external" column data. This will be especially useful for encrypting database fields holding sensitive data.

 

Field procedures are defined for specific columns using CREATE/ALTER TABLE SQL statements. During CREATE/ALTER TABLE processing, the system calls the field procedure program. The program returns the length of the data to be stored in the internal data space. The internal data length can be longer or shorter than the length of the data in the field itself.

 

During update and insert operations, the system calls the procedure with the data intended to be stored in the field. The field procedure can return the same or different data back to the system.

 

During read operations, the system also calls the procedure. The procedure can return the data currently "officially" stored in the field, or it can return modified or completely different data as long as it matches the field definition.

 

So how would a procedure use the internal data space? That's easiest answered by an example. Assume you have a column in a table defined as 11 characters and intended to hold Social Security numbers. A field procedure is defined for this field. An application inserts a new row with a valid Social Security number, say, 123-45-6789. The system calls the field procedure, passing it (among other information) the data provided by the application to be stored in the field. The field procedure uses an encryption package to encrypt the Social Security number. The encrypted string is 16 bytes long. The procedure stores the encrypted value in the internal data space. It returns the string ***-**-6789 to the system, and this value is stored in the field. Note that this means that fields don't have to be redefined to accommodate encrypted versions of any data not matching the field definition.

 

During read operations, the system calls the procedure with the data "officially" stored in the field. In our example, the procedure receives ***-**-6789 from the system. The procedure, however, decrypts the data stored in the internal data space (yielding 123-45-6789) and returns this value to the system, which, in turn, returns this value to the caller.

 

The Display File Field Definition (DSPFFD) command shows whether a field procedure is defined for the field or not. Queries of the DB Cross-Reference Catalogs will also show defined field procedures.

 

The SQL Programming Guide offers a sample field procedure and discusses usage and restrictions.

TCP/IP Transport Security Extensions

Since V3R1, the Telnet server has provided a "connection time" exit point. The system passes TCP/IP connection information (e.g., addresses, ports) associated with the accessing (i.e., remote) system and the local system involved in the potential connection. Customers and vendors can build exit point programs that decide whether to allow or deny the connection, based on the information passed to it. This capability was only available to a few system-provided TCP/IP applications.

 

In V7.1, IBM provides exit point support for the TCP/IP accept(), connect(), and listen() APIs. These exit points allow the same connection time function as is available for Telnet to any arbitrary user-written TCP/IP application.

SSL Support for IBM i Telnet Client

The IBM i Telnet server has long supported SSL connections. However, the Telnet client on the i has not been able to use SSL connections. That is no longer the case in V7.1. New parameters have been added to the Telnet command to allow SSL connections.

 

Digital Certificate Manager (DCM) is used to associate a client certificate with the Telnet client. This means that a single certificate is used for all Telnet-over-SSL connections originating on the i. This isn't much of a restriction since most Telnet servers only require a valid certificate from a trusted CA and don't use certificates for client-side authentication.

 

This support is also PTFed to V6.1 and V5.4, although it is enabled through environment variables. By setting the QIBM_TELNET_CLIENT_SSL environment variable, you can force everyone who uses the Telnet client to use SSL connections or you can turn it on for specific jobs.

 

IBM also added a new encryption mode option, AES-XCBC-MAC, for VPN and updated SNMP to V3 in V7.1.

Something for Everyone

The new field procedure support is probably the biggest security enhancement in V7.1. But the automated profile disablement support might be the most widely used new security function in the release. Given the collection of security enhancements in V7.1, I suspect a lot of customers, Business Partners, and ISVs will be able to find something valuable in the bunch.

Pat Botz

Patrick Botz, an internationally known information security expert, is the President and CTO of Botz & Associates, a firm specializing in information security services for IBM i, AIX, UNIX, and Linux environments. 

With decades of experience in key system security positions, Patrick's expertise includes security strategy; security policy enforcement; password management and single sign-on; industry and government compliance; and biometrics.

As Lead Security Architect at IBM and founder of the IBM Lab Services security consulting practice, Patrick worked with IBM customers worldwide and achieved intimate knowledge of system security capabilities and pitfalls on a broad spectrum of platforms, with special emphasis on IBM i (formerly AS/400), AIX, Linux and Unix operating systems. He architected the SSO solution for OS/400 and i5/OS, and he holds several security-oriented patents. 

Early in his tenure at IBM, Patrick lead the AIX workstation tools team for CAD/CAM systems in Rochester, MN. Previous to IBM, he worked for Control Data Corporation with responsibility for CDC's Basic compiler, and for ETA Systems, Inc., a wholly owned supercomputer manufacturing subsidiary of CDC, where he was the team leader for the distributed, Unix-based Electronic Computer-Aided Design (ECAD) tools.

Patrick is the author of numerous trade press articles and a co-author of the book Expert's Guide to OS/400 and i5/OS SecurityIn addition, he is a worldwide speaker on various platform-specific and general security topics.

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: