08
Tue, Oct
2 New Articles

Security Patrol

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

Passwords that Pass Security

Question: Our auditors recently reviewed our AS/400, and their report criticized our system values for setting password characteristics. They want us to increase our password length, expire passwords every 30 days, and prevent people from using ordinary words as passwords. I understand why they think this would improve security, but I know our users, and they will either just write down the passwords or be constantly calling support because they have forgotten them. Is it necessary to be so strict about passwords?

Answer: How sensitive is the information? What are the chances that someone would want to steal or guess a password? How would he get caught if he did? How well do you really know your users? Would they really rebel, or are you just assuming they will? You should know the answers to these questions so that you can develop a realistic password policy. The standards used by auditors represent generally accepted practices and do not take into account your specific needs. Your own standards may be either weaker or stronger than what the auditors recommend. Documenting the risk and the decision behind your organization’s password policy will go a long way toward helping you pass an audit.

See Tim Johnston’s “Password System Security Values Demystified” (MC, May
1998) for more information on setting password characteristics. Many of the password characteristics for which systemwide defaults may be set can be overridden at the individual profile level. You can, for example, set a default password expiration interval of 90 days, but you’ll want to set it at 30 days for more powerful accounts, where the risk is higher. Prudent practices generally include the following:

• Set a minimum password length of at least six characters by setting the system value QPWDMIN to 6. This will decrease the chance that trivial passwords will be selected.

• Set a password expiration time between 30 and 90 days by setting the system value to the appropriate time range. Instead of using the systemwide default, individual profiles can be set through the Password expiration interval (PWDEXPITV) option of the individual profile, using the Change User Profile (CHGUSRPRF) command.

• Require differences in consecutive passwords so that users are not recycling old passwords. Setting the system value QPWDRQDIF to 6 will prevent the previous six


passwords from being chosen as a new password. This will force a certain amount of originality in passwords, making them more difficult to guess.

• Set QMAXSIGN to a number no greater than 5. Someone who cannot type in his password correctly after five attempts has probably forgotten it and should have it reset rather than waste his time trying again and again. A limit of five will also seriously slow down someone trying to guess another person’s password.

You are right in stating that there is a trade-off. The very things that make it easy for users to remember their passwords make it easy for others to guess what they are. Changing passwords frequently also makes it more difficult for users to remember nonobvious passwords. These are simple facts of human cognitive psychology. Password strength must take these facts into account. My own belief is that AS/400 passwords should not be easily guessed, but they need not be purely random, nonsensical strings to provide adequate security.

The exact nature and degree of trade-offs varies depending on your security requirements, how your systems are used, and the nature of your user community. These trade-offs between stronger security and other needs are not appropriate for technical staff or management to make on its own. They are basic business decisions that should be made by the managers who are ultimately responsible for your business’s information assets.

Question: Can AS/400 passwords be cracked the same way that UNIX passwords are cracked?

Answer: The ease with which passwords can be cracked and the ability to do so offline directly affect your password policy. Many times, password recommendations are based on systems whose password files are easily downloaded and broken offline. UNIX and, to an extent, Windows NT fall into this category. For these systems, the strongest-possible passwords are necessary. If you use a standard word from a dictionary, your password will be cracked within a matter of minutes. A random collection of characters may take days, however. You need the strongest-possible passwords to make a dictionary attack as time-consuming as possible.

It is possible to use published APIs (or other methods) to obtain encrypted AS/400 passwords. Recently, postings to the MIDRANGE-L Internet mailing list (www.midrange.com) indicated that the encryption used for AS/400 passwords is breakable. The poster demonstrated the possibility but (fortunately) did not post step-by- step directions. I hope that IBM clears this up; this exposure certainly does not put the AS/400 on the same footing as many UNIX systems when it comes to cracking passwords. Although you should know that this exposure exists, it should not drive your password policy in the short run.

Obtaining AS/400-encrypted passwords requires system privileges. The attacker requires either an account equivalent to QSECOFR or the ability to crack the AS/400’s state/domain protection, which prevents user-created programs from accessing privileged IBM system resources. This is in contrast to many UNIX systems, where encrypted passwords in /etc/passwd are world-readable, and even to Windows NT, where a boot floppy and a few utilities will permit downloading of encrypted passwords that are present in the Security Account Manager (SAM) file. In both of these cases, breaking passwords is part of a strategy designed to increase the attacker’s system privileges. On the AS/400, you need the privileges before you can get the encrypted passwords.

Cracking AS/400 passwords is, therefore, more difficult than cracking those of the aforementioned systems, and, even when it is possible, the intruder is not provided the same benefit. My personal belief is that passwords on an AS/400 should be strong enough to prevent a coworker or other knowledgeable party from guessing a person’s password


within a few attempts. Increasing the difficulty of passwords to the point at which users feel they must write them down to remember them is probably counterproductive. The risk of someone else finding a written password is much greater than the risk of someone with privileges downloading and cracking the password file. Your policy should forbid the use of user IDs, user names, family member names, favorite sports teams, or other obvious facts as passwords. One vendor makes a product that ferrets out obvious passwords in violation of your policy. The program requires privileges to run and uses the authorized IBM APIs.

AS/400 password-cracking is not a high security risk; however, this could change. All it takes is someone to figure out how to reliably bypass OS/400 operating system protections and then publicize the methods. It’s unlikely but not impossible. The use of authorized APIs poses risks as well. If you require these APIs for legitimate purposes, you need to ensure that they are used only for authorized purposes and that they do not become a password-cracking toolkit. Tools, such as the one mentioned earlier, should be controlled properly.

Question: If passwords are so terribly flawed, what can I do to keep my systems secure in the long run?

Answer: You are correct. Passwords are seriously flawed as a secure authentication method. For the most secure applications, companies have increasingly turned to other means of authenticating users. These means include biometrics and tokens, which provide the user with one-time passwords. The most popular token devices are those made by RSA Security. These tokens generate a numeric password every minute or so. The password is good only once and only for a couple of minutes before it expires. Even an attacker sniffing my network connection could not steal a useful password under these conditions.

I use RSA Security’s SecurID key-chain token to access my employer’s network, retrieve email, and access shared files remotely. It’s much more convenient than memorizing a random-character password. The device is physically about the size of a car alarms remote control. It has an LCD display, which shows a six-digit number that changes every minute. To access my employer’s network remotely, I type a secret four-digit PIN, followed by the SecurID “number of the minute.” It works through time synchronization of my key-chain device and a central authentication server. When the device is initialized for use, the synchronization is set. Other types of token authentication devices, the challenge response tokens, rely on a cryptographic question and answer protocol that does not depend on time synchronization.

I’ve found a product, made by DetectIT (www.detect-it.com), that does allow the use of SecurID tokens for AS/400 logons. When used together, DetectIT-ACF and RSA SecurID provide an interface between the widely used SecurID system and AS/400 native authentication so that the constantly changing code allows you to log onto the AS/400 rather than use a fixed password.

I have no direct experience with DetectIT’s products. However, it is good to know that someone out there has tackled the job of integrating a secure password substitute into our favorite midrange computer. If you require something stronger than static password authentication, you should definitely evaluate DetectIT’s offerings.


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: