The Compliance Auditor collects, filters, and generates reports of audit data for analysis and sign-off by authorized personnel. The Compliance Auditor can be used in conjunction with Command Control to enable auditors to view security transactions and playback recordings of user activity. Auditors can record notes against each record, creating permanent archives of activity.
Rules can be configured to pull any number of audit events matching a given filter into the Compliance Auditor at specific intervals. Examples of filters include username, host, and command for Command Control. Roles can be assigned to each rule to ensure that an auditor is able to view only extracted records with a matching role defined in his or her user account. In addition, Access Control Levels (ACLs) can be defined to restrict access to individual events, and to prevent users from auditing their own activity.
When an audit event is viewed, auditors can authorize the event, or mark it as unauthorized, escalate it, and assign it to someone else. Each change is recorded in an indelible audit trail within each record, along with any notes made by the auditor. Automatic reports can be generated and e-mailed to the appropriate personnel, and can be used, for example, for daily Reports to managers on audit activity awaiting sign-off, or hourly reporting triggered by an escalation value to notify senior management of activity.
To use the Compliance Auditor:
Define roles in user groups to control user access to the Compliance Auditor. See Controlling Access to the Compliance Auditor.
Create one or more rules to pull the required events into the Compliance Auditor. See Adding or Modifying an Audit Rule.
Define ACLs for individual user.
View event records and authorize them, or mark them as unauthorized and define further action. See Compliance Auditor Records.
Configure auditing reports to be automatically e-mailed to the appropriate personnel. See Adding, Copying and Modifying an Audit Report.
Provide failover and load balancing by installing the Compliance Auditor on multiple hosts. See Deploying the Compliance Auditor.
Export and import compliance auditing settings. See Section 10.7.1, Exporting and Importing Compliance Auditor Settings.
Roles can be used to restrict the Compliance Auditor options available to Framework users. For example, you might want users to be able to audit events, but not administer rules, ACLs, or reports.
To define roles for a user group to control the use of Compliance Auditor:
Click Framework User Manager on the home page of the console.
(Conditional) To add a new group, click Groups > Create, specify a name, then click Add.
To modify an existing group or configure the group you just created, select the group, then click Edit.
Select the users you want to be members of this compliance auditing group.
In the Roles option, click Add, then add the following roles
|
Module |
Role |
Description |
|---|---|---|
|
secaudit |
console |
View the Compliance Auditor console. |
|
secaudit |
audit |
View and edit records. |
|
secaudit |
<audit role name> |
(Optional) Custom role. Allows the users to access records retrieved by the Audit Rules configured to use this Audit Role. If you do not add the <audit role name> role, the users can only access records generated by rules with no Audit Role defined. |
|
audit |
read |
View a keystroke replay. |
Users belonging to this group can access the Compliance Auditor console, view and edit records, and review keystroke logs. If you do not add the <audit role name> role, the users can access all records. If you add the <audit role name> role, the users can access only the records retrieved by the Audit rules configured to use this Audit Role.
With these roles, the users cannot manage rules, reports, or ACLs. For the roles required for these additional tasks, see Audit Reports Permissions.
Click Update.
To continue setting up the Compliance Auditor, see Adding, Copying and Modifying an Audit Report.
Audit rules specify the events to be pulled in to the Compliance Auditor for viewing and authorization. You can specify:
The filters to display the type of event
The number of events
The time and frequency when the events are pulled in
An audit role to restrict access to records of events pulled in by a specific rule
To add or modify a rule, see Adding, Copying and Modifying an Audit Report.
You can add, modify, and disable audit rules, but you cannot delete them.
Click Compliance Auditor on the home page of the console.
Click Audit Rules in the task pane.
Select one of the following:
To add a new rule, click Add in the task pane
To modify an existing rule, select the rule, then click Modify
To copy an existing rule and modify it, select the rule, then click Copy.
Configure the following fields:
Rule Name: Specify a name for your rule.
Disabled: Select the check box to disable the rule. By default, disabled rules are not shown in the rule list. You cannot delete a rule.
Records and All Records: To collect all records, enable the All Records check box, or deselect the All Records option and set the number of records to be collected on each audit run.
Audit Role: (Optional) Specify the audit role that has been assigned to a group. For configuration information, see Step 5 in Controlling Access to the Compliance Auditor.
Run Filter: To determine the time and frequency of each audit run, use the calendar to set the initial date, then set the frequency as required.
Audit Category: Select the category of events to audit.
Add Filter: (Optional) Select one or more filters from the Add Filter drop-down list for the type of event you want this rule to pull in, and configure them as required
The filters and configuration options depend on the Audit Category selected. For example, you can choose to pull in only those Command Control events that have been submitted by a particular user and that include a session capture.
Filters: Filters section displays all the filters added by you. You can add more than one filter of the same type for filters such as the Command Control Submit User, then select the logic you require from AND or OR. You can also set these filters to be inclusive or exclusive using matches or does not match.
You can remove a filter by clicking the button to the right of the filter.
Click Finish.
You can configure customized reports of events that require compliance auditing. The reports are dynamically created and e-mailed to selected users at defined intervals. You can use filtering and Perl template scripting to extract the appropriate event information and format it into an e-mail for each target user. Based on time and available capacity, Privileged Account Manager automatically archives session recording data to external storage or media.
Audit reporting uses a tokens object that contains all the user information and other information. You can use keyword anchors in your report configuration, which are replaced by the appropriate values from the tokens object. It is also possible for the Perl code in the report template to set values in the tokens object. Sample report templates are supplied to assist you with creating your own.
To use this feature, you must provide details of your e-mail server to the Messaging Component (msgagnt) so that reports can be e-mailed.
To add or modify an audit report:
Click Compliance Auditor on the home page of the console.
Click Audit Reports in the task pane.
Select one of the following:
To add a new report, click Add in the task pane.
To modify an existing report, select the required report, then click Modify in the task pane.
To copy an existing report, select the report, then click Copy in the task pane.
Configure the following fields:
Report Name: Specify a name for the report.
Disabled: To disable the report, select the Disabled check box. By default, disabled reports are not shown on the report list.
Run Report: To determine the time and frequency of each audit report, use the calendar to set the initial date, then set the frequency as required
Report Category: To limit the report to one category, select the category, or to include all categories, select All.
Report Target: (Conditional) To send the report to a user or all users in a group, click User Report in the Report Target section, then select the user or group from the drop-down list. Ensure that the users’ e-mail addresses are defined in the Account Details section in the Framework User Account definitions. You must define a keyword anchor in the Email To field.
Report Filter: Set the Report Filter to include the required event records:
Select one or more from New, Pending, Authorized, and Unauthorized.
Select the age of events you want to include in the report. Events older than the number of days you specify are included.
Select the escalation level of events you want to include in the report. Events at this escalation level and above are included.
Age(Days): Enter the Age of the report in days.
Escalation Level: Enter the Escalation Level of the report.
Email To: Specify the e-mail address of the user who is to receive the report:
If you want the report to be sent to a user who is not defined as a Framework user, specify the user’s e-mail address in the Email To field.
If you want the report to be sent to a user or group defined as the Report Target above, specify the following keyword anchor in the Email To field:
$User.ACT_EMAIL.value$
You can view the format in XML of the object tokens passed into the audit report by entering $<>$ in the Report Template field, deselecting the HTML check box, then clicking Test Report (ensure that you have defined a Report Target). To view just the user subtree, use $<User>$.
The tokens that appear are dependent upon what has been configured for the users. If the ACT_EMAIL.value token is not present for the target, an email address has not been defined for the user. For user configuration information, see Section 3.2.2, Modifying User.
Email From: Specify the email address of the user sending the report. You can also use a keyword anchor in the Email From field.
Receipt: Select if you want to enable notification when the receiver has read the message. The message is sent to the email address specified in the Email From field.
Email Subject: Specify a subject for the email message. This can be a text string, or you can use a keyword anchor in the Email Subject field. For example, if you wanted to display the target user’s name in the e-mail subject, you could enter the following in the Email Subject field.
Report for $User.ACT_FULL_NAME.value$
Report Template: Specify a Perl script in the Report Template field to control how the e-mail messages are formatted and what they contain. If you want the messages to be displayed in HTML, select the HTML check box.
For an example report template, see Sample Command Control Report Template.
Click Test Report to view the report that is sent to each e-mail target.
Use the arrow buttons with the mouse to page through the reports. In the test, the reports are not shown in HTML format. If there are errors in the Report Template, these are shown.
Click Back to return to the report configuration screen.
Click Finish.
If you are using this sample as a base for your own report templates, select HTML to correctly display the messages. The sample displays a message to the recipients of the e-mail messages, requesting them to log in to the Compliance Auditor and review activity. It extracts selected events and lists them in tables according to the age of the events, and provides information about the events.
As shown in the sample, you can use the user name keyword anchor $User.ACT_FULL_NAME.value$ to display a user’s name in the e-mail, if you are using the Report Target option. You must ensure that a Display name is entered for the user in the Account Details section in the Framework User Account definitions.
<%!
my @lvl0;
my @lvl1;
my @lvl2;
my @lvl3;
my @gt0;
my @gt5;
my @gt10;
my @gt20;
%>
<%
my @audit_records = @{$tokens->{'AuditRecords'}->{'AuditRecord'}} if (defined($tokens->{'AuditRecords'}) && defined($tokens->{'AuditRecords'}->{'AuditRecord'}));
foreach my $ar (@audit_records) {
my $age = $ar->{'age'};
my $lvl = $ar->{'level'};
if ($age > 5 && $age < 10) {
push(@gt5,$ar);
} elsif ($age >= 10 && $age < 20) {
push(@gt10,$ar);
} elsif ($age >= 20) {
push(@gt20,$ar);
} else {
push(@gt0,$ar);
}
if ($lvl == 1) {
push(@lvl1,$ar);
} elsif ($lvl == 2) {
push(@lvl2,$ar);
} elsif ($lvl >= 3) {
push(@lvl3,$ar);
} else {
push(@lvl0,$ar);
}
}
%>
<%
my $total = @audit_records;
if ($total > 0) {
%>
<style type="text/css">
<!--
.style1 {
color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style2 {
color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
}
.style4 {
color: #000000
}
-->
</style>
<p class="style1"> Hello $User.ACT_FULL_NAME.value$,<br/>
<br/>
This is an automated event notification email from the Compliance Auditor. <br/>
<br/>
It is the responsibility of management to log into the Compliance Auditor each day and review their team's keystroke logs. <br/> <br/>
Please log on to the Compliance Auditor at your earliest convenience using this link: <a href="https://admin.company.com">https://admin.company.com</a></p>
<%
my $gt0 = @gt0;
%>
<span class="style2">Events < 5 days old (<%= "$gt0" %>)</span>
<table border="1">
<tr class="style1">
<td>Time</td>
<td>User</td>
<td>Run As</td>
<td>Host</td>
<td>Command</td>
</tr>
<%
foreach my $ar (@gt0) {
my $cmd = $ar->{'cmdctrl'}->{'cmd'};
my $usr = $ar->{'cmdctrl'}->{'user'};
my $ras = $ar->{'cmdctrl'}->{'runAs'};
my $hst = $ar->{'cmdctrl'}->{'host'};
my $tme = $ar->{'cmdctrl'}->{'time'};
$tme = localtime($tme);
%>
<tr class="style1">
<td><%= "$tme" %></td>
<td><%= "$usr" %></td>
<td><%= "$ras" %></td>
<td><%= "$hst" %></td>
<td><%= "$cmd" %></td>
</tr>
<%
}
%>
</table>
<br/>
<%
my $gt5 = @gt5;
%>
<span class="style2">Events > 5 days old (<%= "$gt5" %>)</span>
<table border="1">
<tr class="style1">
<td>Time</td>
<td>User</td>
<td>Run As</td>
<td>Host</td>
<td>Command</td>
</tr>
<%
foreach my $ar (@gt5) {
my $cmd = $ar->{'cmdctrl'}->{'cmd'};
my $usr = $ar->{'cmdctrl'}->{'user'};
my $ras = $ar->{'cmdctrl'}->{'runAs'};
my $hst = $ar->{'cmdctrl'}->{'host'};
my $tme = $ar->{'cmdctrl'}->{'time'};
$tme = localtime($tme);
%>
<tr class="style1">
<td><%= "$tme" %></td>
<td><%= "$usr" %></td>
<td><%= "$ras" %></td>
<td><%= "$hst" %></td>
<td><%= "$cmd" %></td>
</tr>
<%
}
%>
</table>
<br/>
<%
my $gt10 = @gt10;
%>
<span class="style2">Events > 10 days old (<%= "$gt10" %>)</span>
<table border="1">
<tr class="style1">
<td>Time</td>
<td>User</td>
<td>Run As</td>
<td>Host</td>
<td>Command</td>
</tr>
<%
foreach my $ar (@gt10) {
my $cmd = $ar->{'cmdctrl'}->{'cmd'};
my $usr = $ar->{'cmdctrl'}->{'user'};
my $ras = $ar->{'cmdctrl'}->{'runAs'};
my $hst = $ar->{'cmdctrl'}->{'host'};
my $tme = $ar->{'cmdctrl'}->{'time'};
$tme = localtime($tme);
%>
<tr class="style1">
<td><%= "$tme" %></td>
<td><%= "$usr" %></td>
<td><%= "$ras" %></td>
<td><%= "$hst" %></td>
<td><%= "$cmd" %></td>
</tr>
<%
}
%>
</table>
<br/>
<%
my $gt20 = @gt20;
%>
<span class="style2">Events > 20 days old (<%= "$gt20" %>)</span>
<table border="1">
<tr class="style1">
<td>Time</td>
<td>User</td>
<td>Run As</td>
<td>Host</td>
<td>Command</td>
</tr>
<%
foreach my $ar (@gt20) {
my $cmd = $ar->{'cmdctrl'}->{'cmd'};
my $usr = $ar->{'cmdctrl'}->{'user'};
my $ras = $ar->{'cmdctrl'}->{'runAs'};
my $hst = $ar->{'cmdctrl'}->{'host'};
my $tme = $ar->{'cmdctrl'}->{'time'};
$tme = localtime($tme);
%>
<tr class="style1">
<td><%= "$tme" %></td>
<td><%= "$usr" %></td>
<td><%= "$ras" %></td>
<td><%= "$hst" %></td>
<td><%= "$cmd" %></td>
</tr>
<%
}
%>
</table>
<br/>
<p class="style2">Total Events = <%= $total %></p>
<%
}
%>
Click Compliance Auditor on the home page of the console.
Click Audit Reports in the task pane.
Select the report you want to delete.
Click Delete in the task pane.
Click Finish to confirm the deletion.
The Compliance Auditor main page lists the records (events) collected according to defined audit rules.
By default, all new and pending events are displayed, as indicated in the Status column. To view authorized and unauthorized events, select the appropriate check boxes and click the refresh icon. Pending events are events that have been viewed and their records edited, but they have not been classified as authorized or unauthorized. You can click any of the column headings to sort by that column.
To view events for a specific time period, select the From and To check boxes, select the required dates, specify the required times and click Refresh.
The table displays the following information about each event:
|
Column |
Description |
|---|---|
|
Risk |
The color-coded indicators for Command Control command risk level and rule risk level, ranging from green (low) to red (high). For more information, see Setting the Command Risk. |
|
Level |
The escalation level set by the auditor editing the event record. |
|
Status |
The status of the event, indicating whether an auditor has classified the event as authorized or unauthorized. New events have not been viewed. Pending events have been viewed and edited, but have not been marked as authorized or unauthorized. |
|
Time |
The date and time the event occurred. |
|
Event |
A description of what the record contains. |
|
Note |
Any notes made by the auditor when editing the event record. |
|
Assigned |
The user the event has been assigned to by the auditor of the event record. |
|
Rule |
The audit rule that is pulled in the event. |
|
Type |
The type of event. |
|
Size |
The size of the keystroke capture with the total time of the session displayed between parentheses. |
|
Event ID |
The unique event ID. |
From this page, you can perform the following tasks:
Click Compliance Auditor on the home page of the console.
Select the record you want to view.
Click View Record in the task pane.
Record data for this event is shown, including the submit user and host, the run user and host, the command, whether it was authorized by Command Control, and whether the session was captured.
From here you can view a Command Control keystroke report, if it exists, or edit the record. If a keystroke report exists, you must review it before you can edit the record. See Viewing and Editing a Command Control Keystroke Report for more information.
Click Compliance Auditor on the home page of the console.
Select the record for which you want to view a keystroke report.
Click View Record in the task pane.
Click View Keystroke Report in the task pane, or click the Keystroke button.
The text that the user entered during the session is shown on the Input page. The first column displays color-coded indicators for command risk level and rule risk level, ranging from green (low) to red (high). For more information, see Setting the Command Risk and Modifying a Rule.
On the Command Control Keystroke Report page, edit the following fields:
Terminal Type: Change the terminal type if it is set incorrectly.
Find: To find a specify command or string in the report, specify the text in the text box, then click Find.
Show control characters: Use the Show control characters check box to show or hide control characters on the screen.
Show audited commands: Use the check box to show or hide the full list of audited commands. If this option is enabled, the screen shows the actual commands that are being run when a user types a command. You can also view each input command individually by mousing over the command.
Show profile commands: Use the check box to show or hide the commands run in the user’s login profile when the user’s pcksh login shell has auditing configured to level 2.
(Optional) To see the keystroke text being played back with the screen output, click Output.
You can start the playback from a specific line in the input by selecting that line before clicking Output.
Click Play to play the keystroke entries and view the output.
Click Rewind to go back to the beginning.
Click Pause to pause the playback.
Click Forward to skip any pauses in the playback where the user might have taken a break from typing.
Set the Playback Speed to Real Time, Double Speed, or Full Speed.
Set the Scrollback field to the amount of text you want to be able to scroll back through, in kilobytes.
Change the Terminal Type to the one you want.
Click Cancel to return to the record list.
Click Compliance Auditor on the home page of the console.
Select the Command Control Change Management record you want to view.
The record type is shown in the Type column. You might need to scroll to the right to see this column.
Click View Record in the task pane.
Information about the Change Management action is displayed, including the name of the user who made changes to the database, and any entries the user made when committing the Command Control transaction.
To edit the record, see Editing an Audit Record.
Click Compliance Auditor on the home page of the console.
Click the record you want to view.
The record type is shown in the Type column. You might need to scroll to the right to see this column.
Click View Record in the task pane.
Record data for this report is shown, including the contents of the report sent.
To edit the record, see Editing an Audit Record.
For each event listed in the Compliance Auditor, you can edit the audit record to authorize the event, or mark it as unauthorized, escalate it, and assign it to another user. You can also add notes for display in the event record, and comments that are permanently recorded in the event history.
NOTE:For Command Control events for which a keystroke report exists, you must view the keystroke report before editing the audit record.
To edit an audit record:
Click Compliance Auditor on the home page of the console.
Select the record you want to edit.
Click View Record in the task pane.
Click Edit Record.
(Optional) Authorize the event:
Select the Authorized check box.
In the Note field, specify a note to be displayed on the event list and event record.
In the Comment field, specify a comment to be permanently displayed in the History on the View Record page.
(Optional) Mark the event as unauthorized:
Select the Unauthorized check box.
If necessary, set an Escalation Level to be displayed on the event list.
This can be used as a report filter when setting up reports. See Adding, Copying and Modifying an Audit Report.
If necessary, use the Assigned to field to assign the record to a different user.
Specify a Note or a Comment to explain why the event is unauthorized.
Click Finish.
Audit records can be archived from the console or from the command line. For information about the command line options, see Section 10.7.2, Managing Compliance Auditor Records.
To archive records from the console:
Click Compliance Auditor on the home page of the console.
Select the records you want to archive.
To select multiple records, press the Ctrl key and select the records one at a time, or press the Shift key to select a consecutive list of records.
Click Archive Records in the task pane.
A list of the selected records is displayed.
Configure the following fields:
Comment: (Required) Specify the reason for the archive.
Keep Online: (Optional) Select if you want the archived records to continue to be displayed in the list of records.
Configure the types of records to archive.
By default, authorized and unauthorized records are selected. New and pending records are not displayed. If you want to archive these records, select the New and Pending options.
IMPORTANT:After a record is archived, it cannot be modified. If you archive new or pending records, their status can never change.
Click Finish.
From the Framework Manager console, you can restore an archive and move archives from an online state (viewable in the console) and to an offline state (not viewable in the console) and from an offline state to an online state. You must use the command line options to purge an archive. See Section 10.7.2, Managing Compliance Auditor Records.
NOTE:When you archive secaudit events, the archived events are only stored on the primary secaudit manager and not on the backup secaudit manager. Back up these files for fault tolerance.
To manage archived records from the console:
Click Compliance Auditor on the home page of the console.
Click Manage Archives in the task pane.
To restore an archive to an online status, select the archive, then click Make Online.
To move an archive from an online status to an offline status, select the archive, then click Make Offline.
Click Close.
Live Risk view displays the hosts on which any malicious or risky activity was performed based on the configurations in the Compliance Auditor.
To view the hosts on which a malicious activity was performed, you must create corresponding audit rules in the Compliance Auditor.
You can click on the host that is displayed in the Live Risk view to view the complete audit details. When you click on the host in Live Risk view, it displays the corresponding Compliance Audit records, which can be used for further analysis of the malicious activity.
For more information about Deployment Dashboard, see Deployment Dashboard.
Click Compliance Auditor on the home page of the console.
Click Access Control in the task pane.
To add a new ACL, click Add User ACL in the task pane. To modify an existing ACL, select the required User and click Modify ACL in the task pane.
When creating a new user ACL, select the user from the Username drop-down list.
At the bottom of the table, select the attribute from the drop-down list that describes the entity to which you want to control access for the selected user.
For example, if you do not want this user to be able to audit Command Control events involving a particular command, click Command.
In the Matches field, specify the value of the attribute you want to control access to.
For example, if you do not want this user to be able to audit any Command Control events that involve SSH session, specify command <ssh> in this field. You can use wildcard characters in this field.
Set the Action to allow or deny.
Click Add.
(Optional) Use the arrow buttons to move entries up and down the list.
You might want to do this if, for example, you are allowing the user to access a restricted list of commands, and using the wildcard * to deny access to all other commands. The allowed commands entries must be above the deny all entry. By default, all commands are allowed.
(Optional) Remove an attribute by selecting it and then clicking the Remove button.
(Optional) Modify an entry by selecting it, then specifying the changes. Click Update to save the changes.
Click Finish.
Click Compliance Auditor on the home page of the console.
Click Access Control in the task pane.
Select the user for whom you want to delete an ACL.
Click Delete User ACL in the task pane.
Click Finish to delete the ACL for the user.
You can provide failover and load balancing by installing the Compliance Auditor on multiple hosts. Fully automatic failover from a single active instance to a backup/standby instance with a fully replicated repository is possible using compliance auditor. The Compliance Auditor consists of the following packages:
Compliance Auditor (secaudit): Holds the compliance auditor rules and audit information.
Compliance Auditor Console: Installed into the Framework Manager console. Required for configuring Compliance Auditor rules and for viewing audit information.
The Compliance Auditor has the following dependencies:
The Compliance Auditor package is shown as an available package only on hosts that have the Audit Manager (audit) deployed.
If you want to use the Compliance Auditor reporting facilities, you need to install the Access Manager (auth) on the host with the Compliance Auditor.
To deploy the Compliance Auditor:
Download the required packages to your local Package Manager.
Install the Audit Manager package on the host you want to be the Audit Manager, then install the Compliance Auditor package on the same host.
This can be on any operating system, including Windows. See Section 2.6.6, Installing Packages on a Host for details. The auditing packages can be deployed to as many hosts as you need in order to build an environment with load balancing and failover.
If you need reporting facilities, install the Access Manager package on the same host as the Compliance Auditor package.
The Compliance Auditor is now deployed and ready to use.