fhg
Volume 10, Number 27 -- September 15, 2010

Admin Alert: Getting Started with i/OS Security Auditing, Part 1

Published: September 15, 2010

by Joe Hertvik

Sometimes you need more information about what's happening on your system. Who changed their password? Have any system values been changed recently? Who added an entry to the System Reply list? For company security and auditor information, sometimes you need to gather information about system events. That's where i/OS security auditing comes in.


Security Auditing in Two Paragraphs

IBM i/OS security auditing allows you to collect information about system events that can affect system security and integrity. To implement auditing, a user configures his system and specifies what types of information he wants to collect. After turning auditing on, he can retrieve information on a number of critical i/OS functions including authorization failures, security configuration changes, program failures, save restore information, and object management information. He can also collect information for individual users or for individual objects.

This week and next, I'll look at how to configure security auditing on an i/OS V5R4Mx system. Today, I'll look at how to set up the system. Next week, I'll look at how to retrieve the data, giving you a broad overview of the entire process. Let's get started.


Configuring Your System for Auditing

To get started with system security auditing, you need to perform the following steps. But don't worry about creating these objects and turning on system settings just yet. In the next section, I'll show you a command that will perform all these tasks and turn on security auditing with just one command.


1. Determine if auditing is already active on your system. You can do this by running the Display Security Auditing (DSPSECAUD) command. This option can also be reached by entering Option 11 (Display Security Auditing) off the Security Tools menu. This will show all your current security auditing values on a display that looks something like this.



If auditing is active, you can skip to step four to modify which values you are auditing for. If auditing isn't active, continue to step two.


2. Create an initial journal receiver to receive the auditing entries for the items that you want to monitor. To create a new receiver in the library of your choice, run the following Create Journal Receiver (CRTJRNRCV) command.

CRTJRNRCV JRNRCV(lib/jrnrcvname) TEXT('Journal receiver for system audits')

The next step is dependent on creating this journal receiver.


3. If necessary, create the QAUDJRN journal object (type *JRN) in library QSYS. The system uses the QAUDJRN journal to capture and record the information that you are auditing for. It places that information into the journal receivers attached to the journal. This journal is not necessarily shipped with i/OS and if it isn't present on your system, you can create it by using the following command.

CRTJRN JRN(QSYS/QAUDJRN) JRNRCV(lib/jrnrcvname) MNGRCV(*SYSTEM) DLTRCV(*NO) 
TEXT('Auditing Journal') AUT(*EXCLUDE)

It's critical that the journal's name is QAUDJRN and that it resides in the QSYS library. System auditing cannot function if it doesn't have that name and location. In this example, the journal receiver name equals the name of the receiver I created in step two. I set the Manage Receivers (MNGRCV) parameter to *SYSTEM, which tells the system to automatically create a new receiver and swap it in for the current receiver when the current receiver's size becomes too large.

Even though I set MNGRCV to *SYSTEM, I made a point to set the Delete Receivers (DLTRCV) parameter to *NO. This tells the system not to automatically delete old receivers after they have been detached from the QAUDJRN journal file. This is important because the journal receivers contain all the audit history for my system, and I don't want to automatically lose that history because my journal receiver file gets swapped out. Keep in mind, however, that this obligates me to manually review and delete old journal receiver objects as needed. I can clean up my receivers by manually reviewing and deleting the old receiver objects every year or by setting up a custom-written program that automatically evaluates and deletes the old receivers for me, as necessary. It's important to occasionally clean old auditing receivers as excessive receivers can take up a lot of system storage.


4. Tell the system what actions you want to audit by configuring the Security Auditing Level (QAUDLVL) system value list and (if necessary) the Security Auditing Level Extension (QAUDLVL2) system value list. You can configure these system values by using the following work with system value command.

WRKSYSVAL SYSVAL(QAUDLVL*)

Start by configuring the list in the QAUDLVL system value. If there are too many values for QAUDLVL, place the overflow values in the QAUDLVL2 system value. The values tell i/OS auditing exactly what actions you want to audit for. The list of possible values you can add to the list and what they do include the following:

  • *AUTFAIL--Authorization failures including access failures, incorrect password, or user IDs entered from a device.
  • *CREATE, *DELETE--Object creations and deletions.
  • *OBJMGT--Generic object tasks including moving and renaming objects.
  • *PGMFAIL--Program failures.
  • *SAVRST--Save/restore information.
  • *SECCFG--Creating, changing, deleting, and restoring user profiles; program changes that run the program under the owner's profile; and changes to system values, environment values, and network attributes.
  • *SECURITY--All security-related functions are audited.

You can find descriptions of all possible security auditing values for QAUDLVL and QAUDLVL2 in the iSeries Information Center.


5. After performing the other steps, you can now flip the switch to start security auditing. Do this by turning on the Auditing Control (QAUDCTL) system value. Although there are five values you can set QAUDCTL to, your best move is to set it to *AUDLVL, which tells i/OS to take its auditing parameters from the QAUDLVL and QAUDLVL2 system value lists you set up in step four. By default QAUDCTL is set to *NONE, which means system auditing is turned off. Provided you have performed the other three steps correctly, this will activate auditing on your system.


These are the basic steps to start auditing on your system. However, IBM offers several other system values for setting up object auditing for specific users, including: the Change User Auditing (QCHGUSRAUD) system value, controlling what happens when the system cannot access the audit journal; and the Auditing End Action (QAUDENDACN) system value. You can read more about setting up additional values by going to the setting up security auditing page in the iSeries Information Center.


The Easy Way To Start Auditing

If you want to skip entering these four steps and configure security auditing with one command, you can use the Change Security Audit (CHGSECAUD) command for an even easier configuration on your system. For example, if I wanted to configure my system to log authorization failures, program failures, security configuration changes, and generic object management tasks, I could execute CHGSECAUD with the following parameters.

CHGSECAUD QAUDCTL(*AUDLVL) QAUDLVL(*OBJMGT *SECCFG *AUTFAIL *PGMFAIL) 
INLJRNRCV(LIB/JRNRCVNAME)

In one fell swoop, CHGSECAUD will do the following:

  1. Create the journal receiver specified in the Initial Journal Receiver (INLJRNRCV) parameter.
  2. Check to see if the QAUDJRN journal exists in library QSYS. If it doesn't exist, it will create it and attach your journal receiver to QAUDJRN.
  3. Change the QAUDLVL system value and if necessary, the QAUDLVL2 system value to contain the list of audit actions shown in the Auditing values (QAUDLVL) parameter.
  4. Turn on system auditing by changing the QAUDCTL system value to *AUDLVL, which will point to the QAUDLVL and QAUDLVL2 system values for the audit actions to report.

You can also use CHGSECAUD to check your current values and change them, if necessary. When the command comes up, it also displays your current values.

And that's it. One command configures object and user auditing on your system. To implement, make sure you read the above section to understand what you're turning and then use CHGSECAUD to turn it on.


Okay, It's On, Now What?

This week, we covered configuring security auditing on your system. In part two of this article next week, I'll show you how to use the auditing journal entries to determine when questionable actions are taking place on your system.


RELATED STORY

iSeries Security Journal Receiver Management, Part 1



                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
inFORM DECISIONS

Go Paperless & Save

Nothing against paper and preprinted forms, but they can really suck an organization's money down the drain.

You can deliver vital reports, checks and forms FASTER and save significant time and money with inFORM's paperless and web-based document management solutions.

The affordable iDocs Suite eliminates the cost of paper from AP, customer service, sales and more for fast ROI. Create and immediately distribute critical business documents, without the expense. In no time you can:

                  · Generate electronic forms, checks, reports, PDFs and more
                     directly from System i spool files

                  · Intelligently burst, format, sort, bundle and distribute
                     via email, fax, printer and/or web repository

                  · Provide immediate and secure browser-based access to
                     e-documents from anywhere in the world, 24x7

Let inFORM show you how easy it is to save time and money going paperless!

Paperless solutions by inFORM Decisions include iDocs, iForm, iPDF, iMail, iFax, SmartRouter, iCheck, CheckSecure, Positive Pay, iScan and the iView web-based document storage and retrieval system.


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Erwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

iSeries DevCon2010:  Get 3 days of IBM i training and 365 DAYS OF VALUE, Nov 15-17, Las Vegas
looksoftware:  RPG OA & Beyond Webinar. Sept 28 & 29. Enter to win an Amazon Kindle™
COMMON:  Join us at the Fall 2010 Conference & Expo, Oct. 4 - 6, in San Antonio, Texas


 

IT Jungle Store Top Book Picks

Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
The iSeries Express Web Implementer's Guide: List Price, $49.95
The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
The System i Pocket RPG & RPG IV Guide: List Price, $69.95
The iSeries Pocket Database Guide: List Price, $59.00
The iSeries Pocket SQL Guide: List Price, $59.00
The iSeries Pocket Query Guide: List Price, $49.00
The iSeries Pocket WebFacing Primer: List Price, $39.00
Migrating to WebSphere Express for iSeries: List Price, $49.00
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00
Can the AS/400 Survive IBM?: List Price, $49.00
Chip Wars: List Price, $29.95


 
The Four Hundred
IBM Adds New SSD and Fat SFF Disk to Power Systems

Power7 Planning Beyond the Bells and Whistles

Companies Buy Lots of Disk Storage--At Cheap Prices--in Q2

As I See It: Introducing the New Quarterlife Crisis (with Cheese)

CIOs Are a Little More Optimistic About IT Hiring--But Not Much

Four Hundred Stuff
VAI Positions ERP Suite for Business Recovery

Vision Merges HA Products Into MIMIX Availability 7

Document Management Cuts Paper and Saves Money at Top Ranked City

Trilobyte Keeps the Original 5250 Emulator Alive

Oracle Adds DB2/400 Support to GoldenGate Data Integration Tool

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
September 4, 2010: Volume 12, Number 36

August 28, 2010: Volume 12, Number 35

August 21, 2010: Volume 12, Number 34

August 14, 2010: Volume 12, Number 33

August 7, 2010: Volume 12, Number 32

July 31, 2010: Volume 12, Number 31

TPM at The Register
Ex-IBM heir apparent gets six months in the slammer

SGI readies first Project Mojo supers

HP eyes $1.46bn ArcSight security buy

IBM wheels and deals on servers

Oracle sneaks out Solaris 10 refresh

Dell launches Opteron 4100s into Boxes-o-Cloud

Appro sells another flash-happy HPC cluster

Netezza, Symantec jump on takeover rumors

HP punts MicroServer for SMBs

Cisco & Citrix marry on virty PCs

What does the Hurd mentality bring to Oracle?

Oracle rings up new Netra servers

THIS ISSUE SPONSORED BY:

WorksRight Software
Profound Logic Software
inFORM Decisions


Printer Friendly Version


TABLE OF CONTENTS
Get Thee to the Web, Part 2

Basing Pointer Variables in RPG: The Basics

Admin Alert: Getting Started with i/OS Security Auditing, Part 1

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2010 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement