24
Wed, Apr
0 New Articles

Security Patrol: Current OS/400 Security Issue Q&A

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

OS/400 Virus?

Q: Can OS/400 itself be infected by a virus?

A: A virus that could do damage throughout OS/400 would have to be written specifically for OS/400. Can that be done? Yes. But you can take many configuration options to protect yourself from having programs that would do this type of damage restored to your system.

The Integrated File System (IFS) is a different story. Files in the IFS can be infected with common viruses, but this is nothing new. Documents in shared folders have long been virus "carriers." For more details about viruses and OS/400, see the white paper I wrote with IBM's Patrick Botz, "Virus Got You Down?"

What Are SSL and VPN?

Q: What is the difference between Secure Sockets Layer (SSL) and Virtual Private Networks (VPNs), and when would I use one rather than the other?

A: SSL enables a TCP/IP application such as FTP to transmit data between the client and server in an encrypted form. A VPN is another way to have data flow from point A to point B in an encrypted form.

The difference between the two is where they are implemented in the IP stack. VPNs are implemented low in the IP stack. Once the connection from point A to point B is established, it doesn't matter what application runs over the connection. Everything that flows between points A and B is encrypted. SSL must be implemented by the application itself. In other words, SSL is implemented much higher in the IP stack; in fact, it is implemented at the IP application layer. That means that each IP application, such as FTP or TELNET, that is going to use SSL has to be "SSL-enabled." You can install and run an SSL-enabled FTP server, which will then communicate to some SSL-enabled FTP client. Everything that flows between that FTP client and server is encrypted. Telnet may be enabled on the same systems as the SSL-enabled FTP client and server. But even though they reside on the same systems and possibly run over the same communication lines, unless the Telnet server and client are also SSL-enabled, the Telnet session will send data in clear text, not encrypted. To use SSL, it must be enabled by the server, and that server must communicate to an SSL-enabled client. VPNs, on the other hand, are application-agnostic. VPNs, once the session is established, do not care what application uses the session; everything using that session will be encrypted.

When to use one technology rather than the other is one of those "it depends" questions. I often see a VPN where a leased line was once used. VPNs are good when you must establish a connection between two distinct points, such as between a corporation and one of its subsidiaries, and you need to have more than one type of application flowing over this connection. I often see SSL, such as SSL-enabled FTP, used when one type of data or a specific file is being transmitted--for example, between a retailer and a credit card company.

Most of the TCP/IP servers on OS/400 as well as the iSeries Access for Windows servers are SSL-enabled. The FTP client on OS/400 was SSL-enabled in V5R2. OS/400 also provides support for VPN connections, and iSeries Navigator provides a wizard to help you configure them.

Encryption on OS/400

Q: What is available to do encryption on OS/400? Or do I have to implement my own algorithm?

A: First, coming up with your own encryption algorithm is not a good idea. Industry-standard encryption schemes are always a much more secure solution. These algorithms have come under tremendous scrutiny, and they've withstood the test of time. When placed under scrutiny, "user-derived" encryption schemes are usually broken very quickly.

You have two hardware options for encryption on OS/400. One is the 2058 hardware crypto accelerator card. This hardware card is not intended for general encryption use. Rather, is it intended for use in conjunction with a Web server that requires heavy use of HTTPs and is HTTP-secure. This is where the Web page is served using an SSL session. In other words, the data between the Web server and the browser is encrypted. The slowest part of using SSL is not in the encryption of the data flowing across the session. The slowest part of SSL is the establishment of the actual SSL session. This card significantly speeds up this process.

The 4758 e-Business Cryptographic Coprocessor can be used as a general-purpose crypto card. You can use it to encrypt/decrypt data and generate and store encryption keys. This sophisticated card was originally designed to be used in mainframes to provide secure encryption implementation for banks. While APIs are provided to interface with this card, using those interfaces and managing the card itself is not trivial. The APIs are complex and using them can be difficult, especially if you are unfamiliar with encryption concepts and terminology.

You can find more information about both of these cards on the IBM Information Center Web site. Choose the Security category and then Cryptographic hardware.

If you are running V5R2, you have the option of using a software solution. Encryption support has been provided via PTFs SI10060 (APIs) and SI10105 (header files). These PTFs provide support for the MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hash algorithms as well as the DES, Triple DES, and AES encryption algorithms. APIs providing MAC generation and pseudo random-number generation are also provided with these PTFs. These APIs provide a much more simple and straightforward encryption option than the hardware encryption options.

Delete User Profiles That Aren't Being Used

Q: I have written a tool that looks at a user profile's last sign-on date and deletes the profile if the user has not signed on in the last 90 days. However, it looks like this value does not always get updated, and I have deleted some profiles that are used for FTP transmissions. Help!

A: The profile's last sign-on date is only updated when the user actually signs on to the system through the sign-on screen. Even though you must provide a user profile name and password to use FTP, the sign-on date is not updated. However, the profile's last-used date is updated in this case. I suggest that you modify your tool to look at the user's last-used date rather than the last sign-on date. This should give you a more accurate picture of the profiles that have not be "used" in the last 90 days.

Avoid Default Passwords

Q: How do I get rid of default passwords? This seems like an issue I am fighting constantly.

A: It sounds like you already know about the OS/400 command Analyze Default Passwords (ANZDFTPWD). This tool produces a report of all profiles that have default passwords. In addition, when running the report, you can choose to set the profile's status to *DISABLED and/or set the profile's password to *EXPIRED so that it will have to be changed the next time the user signs on. But I gather that you would like to prevent them from happening in the first place.

The best way to prevent default passwords is to change the default value for the PASSWORD parameter on the Create User Profile (CRTUSRPRF) command. I recommend that you set this value to *NONE. Before changing this parameter on their systems, many of our clients had problems with profiles being created for users who never actually needed the profile. The profile would exist with a default password until the profile was flagged as not being used for the last 60 or 90 days, and then it was deleted. The profile is still created but without a password. This requires that all users--or their manager--call the Help Desk or system administrator to have a password assigned to the profile so the user can sign on. This step has been a trivial issue to our clients compared with the exposures that profiles with default passwords presented them.

When running ANZDFTPWD, you may notice profiles associated with a vendor package. In many cases, the profiles do not even need a password. In the cases where a password is required, I have yet to see a vendor package that requires the password to be the same as the profile name. Before changing the password to *NONE or to a different value, I encourage you to call the vendor to find out its requirements. If a password is required, I have seen cases where you also have to change the password in a configuration file in the vendor application.

Carol Woodbury is co-founder of SkyView Partners, a firm specializing in security consulting, services, and the OS/400 security assessment software SkyView Risk Assessor for OS/400. Carol has over 13 years in the security industry, 10 of those working for IBM's Enterprise Server Group as the AS/400 Security Architect and Chief Engineering Manager of Security Technology. Look for Carol's second book, Experts' Guide to OS/400 Security, to be released in the first half of 2004. Carol can be reached at This email address is being protected from spambots. You need JavaScript enabled to view it..

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: