Failed ssh login (AIX 5.3)

Microsoft.ACS.AIX.5.3.Ssh.Failed (Rule)

Rule to collect events for failed ssh login

Knowledge Base article:

Summary

An unsuccessful ssh command has been detected in the system log files.

Causes

User was not granted access to the system remotely. This monitor allows system administrators to track 'ssh' usage.

Resolutions

The description of the alert and/or the output data item contains information on the event encountered. If the activity appears suspicious, please check the associated event details and any other events that happened around the time of this event.

Element properties:

TargetMicrosoft.ACS.AIX.5.3.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.AIX.5.3.Ssh.Failed" Enabled="false" Target="Microsoft.ACS.AIX.5.3.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/syslog.log</LogFile>
<!-- [TYPE] AIX SSH False -->
<!-- [INPUT] Oct 30 15:28:00 scxaix3-1 auth|security:info sshd[241816]: Failed password for scxuser from 172.30.182.212 port 41908 ssh2 -->
<!-- [EXPECTED] date="Oct 30 15:28:00"; hostname="scxaix3-1"; process="sshd"; processId="241816"; user="scxuser"; clientHost="172.30.182.212" -->
<!-- [INPUT] Oct 30 15:28:07 scxaix3-1 auth|security:info sshd[241818]: Failed password for root from 172.30.182.212 port 41909 ssh2 -->
<!-- [EXPECTED] date="Oct 30 15:28:07"; hostname="scxaix3-1"; process="sshd"; processId="241818"; user="root"; clientHost="172.30.182.212" -->
<!-- [MISS] Oct 30 15:22:27 scxaix3-1 auth|security:info sshd[483338]: Failed none for invalid user ccrammo from 172.30.182.212 port 57623 ssh2 -->
<RegExpFilter>sshd\[[[:digit:]]+\]:[[:space:]]*Failed password for [^[:space:]]+ from [^[:space:]]+</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+).+ (?'process'sshd)\[(?'processId'\d+)\]:\s*Failed password for (?'user'\S+)+ from (?'clientHost'\S+)</RegExp>
<EventType>0</EventType>
<EventId>27003</EventId>
</WriteAction>
</WriteActions>
</Rule>