失败的 su (Solaris 10)

Microsoft.ACS.Solaris.10.Su.Failed (Rule)

用于收集 su 的失败调用事件的规则

Knowledge Base article:

摘要

在系统日志文件中检测到不成功的“su”命令。

原因

试图授予用户特权帐户的访问权限。该监视器允许系统管理员跟踪 'su' 使用率。

解决方法

警报和/或输出数据项的描述包含有关遇到的事件的信息。如果活动显得可疑,请检查关联的事件详细信息以及此事件时间附近发生的任何其他事件。

Element properties:

TargetMicrosoft.ACS.Solaris.10.ACSEndPoint
CategoryEventCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
EventDS DataSource Microsoft.Unix.SCXLog.Privileged.Datasource Default
WA WriteAction Microsoft.ACS.Unix.SecureEventLogWriter Default

Source Code:

<Rule ID="Microsoft.ACS.Solaris.10.Su.Failed" Enabled="false" Target="Microsoft.ACS.Solaris.10.ACSEndPoint" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.Privileged.Datasource">
<Host>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</Host>
<LogFile>/var/log/authlog</LogFile>
<!-- [TYPE] Solaris SU False -->
<!-- [INPUT] Oct 29 17:11:22 scxsun12 su: [ID 810491 auth.crit] 'su root' failed for jeffcof on /dev/pts/1 -->
<!-- [EXPECTED] date="Oct 29 17:11:22"; hostname="scxsun12"; process="su"; clientUser="root"; user="jeffcof" -->
<RegExpFilter>[[:space:]]+su: \[.*\] \'su [^[:space:]]+\' failed for [^[:space:]]+ on</RegExpFilter>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="ACS.Unix!Microsoft.ACS.Unix.SecureEventLogWriter">
<RegExp>(?'date'\S+\s+\d+\s+\d+:\d+:\d+)\s+(?:\S+:)?(?'hostname'\S+)\s+(?'process'su): \[.*\] \'su (?'clientUser'\S+)\' failed for (?'user'\S+) on</RegExp>
<EventType>0</EventType>
<EventId>27003</EventId>
</WriteAction>
</WriteActions>
</Rule>