Security Compliance
SEM integration with Solaris 10 using BSM
This article describes how to integrate SEM with Solaris 10 using BSM.
First published date
Last published date
Overview
Product section
Resolution
Solaris 10 BSM setup
This document describes how to configure Solaris 10 Basic Security Module (BSM) to log via syslog. The SolarWinds LEM agent for Solaris can then read this file via the Solaris BSM tool. We will outline the steps necessary to configure BSM to do this along with a reference section with more detailed information about the various options. We will assume that BSM is already installed on the Solaris 10 server. Solaris versions 8 and 9 need additional software installed for BSM to log via syslog (Snare) and will not be covered in this document.
Configure BSM to send to syslog
You will need to have root access to the Solaris server. This process will require the reboot of the server.
- Assume a role that includes the Audit Control profile or become superuser and open a terminal window if you have not already.
- Run the script that enables the auditing service.
# cd /etc/security # ./bsmconv This script is used to enable the Basic Security Module (BSM). Shall we continue with the conversion now? y/n *y* bsmconv: INFO: checking startup file. bsmconv: INFO: turning on audit module. bsmconv: INFO: initializing device allocation. The Basic Security Module is ready. If there were any errors, please fix them now. Configure BSM by editing files located in /etc/security. Reboot this system now to come up with BSM enabled.
Do NOT reboot yet. You need to adjust some settings first.
Save a backup copy of the audit_control file:
# cp /etc/security/audit_control /etc/security/audit_control.orig
- Modify the audit_control file found in /etc/security to include flag settings for what you wish to audit and to log events via syslog. Sample settings are listed below.
# vi /etc/security/audit_control ... dir:/var/audit flags:am,cl,ex,fc,fd,fm,lo,pc,ss,ua minfree:20 naflags:lo plugin:name=audit_syslog.so.1; p_flags=am,cl,ex,fc,fd,fm,fr,fw,lo,pc,ss,ua
These settings are for success and failure. If you precede a setting with a dash ( i.e. --lo,-ex ) then the system with report failures only. More information about each flag provided at the bottom of this document.
- Save a backup copy of the syslog.conf file.
# cp /etc/syslog.conf /etc/syslog.conf.orig
-
Add an audit.notice entry to the syslog.conf file. The log location is included in the entry.
# vi /etc/syslog.conf … audit.notice /var/adm/auditlog
- Create the log file.
# touch /var/adm/auditlog
-
Reload the syslog service with the new changes.
# svcadm refresh system/system-log
- Save a backup copy of logadm.conf
# cp /etc/logadm.conf /etc/logadm.conf.orig
-
Auditing generates a lot of information, so we will need to make and entry for log maintenance.
# vi /etc/logadm.conf … /var/adm/auditlog --C 8 --a ‘kill --HUP `cat /var/run/syslog.pid`’
This will keep the last 8 days of audit logs.
- Reboot the Solaris server to activate changes.
- Log back in to the server and check for audit activity. You should see some entries in the auditlog file.
# tail /var/adm/auditlog
If the file is blank, consult your Solaris documentation. “System Administration Guide: Security Services” Chapter 30 or your Solaris support provider.
Configure the agent and connector
In the HTML5 SEM Events Console:
- Install the SEM Solaris agent on the machine (if not already installed).
- In the SEM Events Console, click the Nodes tab.
- Under Refine Results, expand the Type group, and then select the Agent check box.
- Select an agent, and then click Manage node connectors.
- In the search box, enter Solaris 10.
- Select the Solaris 10 BSM Auditing connector, and then click Add Connector.
- Enter a custom alias name for the new connector, or accept the default.
- Verify that the Log File path is pointed to the correct path for your audit log, and then click Add.
- Under Configured connectors, select your configured connector, and then click Start.
In the SEM Flash console:
- Install the SEM Solaris agent on the machine (if not already installed).
- Once the agent has successfully connected in your console, navigate to Manage > Nodes.
- Next to the agent node, click the gear icon, and then select Connectors.
- From the Category drop-down list, select Operating Systems.
- Next to Solaris 10 BSM Auditing, click the gear icon, and then select New.
- Create a new connector configuration, and verify that the Log File path is pointed to the correct path for your audit log.
- Click Save.
- Next to the connector, click the gear icon, and then select Start.
- Log out of the Solaris server and log back in to generate some log entries and verify that you see them in the Console.
Audit Reference
Suggested audit classes|
Abbrev |
Description |
|
am |
Administrative Actions (meta-class) |
|
cl |
Close System Call |
|
ex |
Program Execution |
|
fc |
Create Object |
|
fd |
Delete Object |
|
fm |
Change of Object Attribute |
|
fr |
Read Data, open for reading |
|
fw |
Write Data, open for writing |
|
lo |
Login and Logout events |
|
pc |
Process (meta-class) |
|
ss |
Change System State |
|
ua |
User Administration |
Suggested audit classes
We suggest you do NOT audit the following audit classes
|
Abbrev |
Description |
|
all |
All classes (meta-class) |
|
ap |
Application-defined events |
|
fa |
Access of object attributes |
|
io |
ioctl() System Calls |
|
ip |
system VIPC operations |
|
na |
Nonattributable events |
|
nt |
Network events: bind, connect, accept |
|
ot |
Miscellaneous, such as device allocation and memcntl() |
Integration of Solaris and Snare
Due to the type of internal logging carried out by Solaris, one of the two solutions must be applied before Solaris can be integrated into SEM: A. Snare agent is installed on Solaris, followed by a SEM agent, or B. BSM is installed on Solaris, followed by a SEM agent.
Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment. You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.