29
Fri, Nov
0 New Articles

Security Patrol

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

How to Achieve Authority

Question: How is authority over newly created objects assigned? How does the AS/400 know what the object authority should be for something that never existed before?

Answer: Authority other than that provided to the object owner and to *PUBLIC must be explicitly granted. The owner of an object has *ALL rights by default. It’s where *PUBLIC authority is concerned that things get a little complicated, as there are three different places where the default *PUBLIC authority may be specified.

First, the Create Object (CRTOBJ) command itself contains an Authority (AUT) parameter, which permits *PUBLIC authority to be specified at the time of object creation. This parameter exists for all Create commands, regardless of the object’s type. If the AUT parameter is not specified, the new object’s authority comes from the Library create authority (*LIBCRTAUT) parameter associated with the object’s library. You can view this value by using the Display Library (DSPLIB) command.

The *LIBCRTAUT parameter may specify a particular value, such as *USE or *CHANGE, for *PUBLIC authority. Alternatively, it may “pass the buck” to the System Value Create Authority (QCRTAUT) value through the *LIBCRTAUT parameter value of *SYSVAL.

Ultimately, it is the QCRTAUT system value that determines *PUBLIC authority for an object. In specific cases, this value can be overridden either at the library level or for each individual object newly created through the CRTOBJ command.

Telnet Tells Too Much

Question: Our network administrator used a “sniffer” program to demonstrate that AS/400 passwords could be revealed by listening over the network. We found, however, that using Telnet 5250 (TN5250) did not reveal the password. Does TN5250 use some sort of encryption that ordinary Telnet doesn’t?

Answer: First, I should explain exactly what the function is of a so-called “sniffer” program, which is named after the original sniffer program, the Network General Sniffer.


Network-traffic sniffers (or snoopers as I prefer to call them) eavesdrop on all network traffic on a particular subnet. The snooper software places the PC’s Ethernet card into promiscuous mode, whereby it retrieves all traffic passing by, whether or not it is addressed to that particular machine. The traffic is then formatted into ASCII to make it more human-readable. A network eavesdropper can read passwords or other sensitive information passing from system to system, with neither the source nor the target system any the wiser. The information observed by a snooper is determined by the method the workstation uses to communicate with the host. In your case, you have a couple of alternatives: Telnet and TN5250.

Telnet is a longtime Internet standard for terminal emulation. It provides host-to- terminal communication similar to that of an old-style dumb ASCII terminal, such as a Digital VT100. Telnet sends each character entered at the keyboard to the host computer in plain, easily understood ASCII code. To a network snooper, it is thus easy to eavesdrop on traditional Telnet traffic.

The other standard used for AS/400 terminal communications is TN5250. The TN5250 data stream is a standard for terminal and printer communications with AS/400 systems over TCP/IP networks. It is described in the Internet Engineering Task Force (IETF) document RFC 1205 (www.ietf.org/ rfc/rfc1205.txt?number=1205), which is supported by related IBM documentation, notably Functions Reference. Availability of this documentation has enabled third-party vendors to provide some fairly decent TN5250 products; a freeware version of TN5250 even exists for Linux.

Unfortunately, TN5250 does not encrypt the data stream between the terminal and the AS/400. You were unable to view the password because the 5250 data stream is more complex than standard ASCII-based Telnet. To illustrate, I have replicated your network administrator’s experiment. Figure 1 (on page 119) shows the results of a common snooping tool called sniffit; user ID and password are shown clearly. Figure 2 (on page
119) shows the same logon procedure using MochaSoft (www.mochasoft.dk), a common third-party TN5250 application. No obvious user information is displayed; the 5250 data stream obscures information in two ways. First, included with the information itself is a variety of “metainformation” describing screen formatting, display attributes, field attributes (e.g., underlining and column separators), screen operations, and all the various other items you could code in a DDS display file. Second, buried within all this metainformation is the clearly visible screen data (clearly visible if you can read EBCDIC).

The good news here is that standard, off-the-shelf, network-snooping software can’t easily grab AS/400 passwords off the wire. Off-the-shelf snooping software is unaware of the metainformation embedded in the 5250 data stream and, moreover, is ignorant of EBCDIC. Your typical network hacker is also most likely unfamiliar with the EBCDIC character set and 5250 data stream format and is hence unable to make sense of Figure 2. The bad news is that someone who is knowledgeable about TN5250 could probably figure it out. The 5250 data stream format used by TN5250 is documented, and, even if it weren’t, it would take just a little experimentation to figure out where the password is hidden in Figure 2. Obscuring data is not the same as encrypting it. Encryption creates true security in that, even if you know the encryption method and general format of the result, you still cannot decipher the message hidden within it.

Grabbing passwords off a local network is a proven technique for breaking into systems. When my company does security assessments, I find that listening to a network hub often provides user IDs and passwords quickly.

To guard against password sniffing, you have several options:

• Use switched hubs. This limits both the range over which information is broadcast and the opportunities for snooping around any given sign-on process.

• Use encrypted protocols for user access. As of V4R4, the AS/400 provides Secure Sockets Layer (SSL) with clients for FTP and Telnet. SSL negotiates an encrypted session


before you are even provided a sign-on screen. Client Access Telnet clients support SSL, as do some third-party TN5250 products. Standard Web browsers also support SSL, so applications that require sign-on via a Web-enabled form should establish an SSL session before prompting the user to sign on. Just make sure that you’re both using the same level of SSL, which comes in several flavors.

• Consider using Client Access for online AS/400 network access. Client Access can provide password security by authenticating use of a cryptographic token rather than by sending a clear-text password over networks.

• Consider using sniffer detection tools. Tools such as L0pht’s “antisniffer” software (www.l0pht.com) note anomalies in how snoopers respond to network traffic, and they provide leads as to the possible existence of snoopers on a network. These tools are new, and their effectiveness has yet to be proven in widespread use, so use some caution. (By the way, L0pht is spelled with a zero, not with the letter O.)

Lastly, it should be noted that the TN5250 standard is constantly being revised and updated. The IETF has published a draft of proposed TN5250 enhancements (RFC 1205), among which are included provisions for a strong, cryptographically based authentication method similar to that used for Advanced Program-to-Program Communications (APPC) and Client Access.

Security_Patrol703-00.png 400x319

Figure 1: There’s nothing up the sleeve: User ID and password are shown clearly with the sniffit tool.


Security_Patrol704-00.png 405x323

Figure 2: The 5250 data stream throws off typical hackers by camouflaging security information in a bunch of “metainformation.”


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: