Invalid ssh login (AIX 7)

Microsoft.ACS.AIX.7.Ssh.Invalid (Rule)

Rule to collect events for invalid ssh login

Knowledge Base article:

Summary

An invalid ssh request 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.7.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.7.Ssh.Invalid" Enabled="false" Target="Microsoft.ACS.AIX.7.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 4 18:06:20 scxomd-aix7-01 auth|security:info sshd[11075832]: Failed password for invalid user monuser from 172.30.170.215 port 36253 ssh2 -->
<!-- [EXPECTED] date="Oct 4 18:06:20"; hostname="scxomd-aix7-01"; process="sshd"; processId="11075832"; user="monuser"; clientHost="172.30.170.215" -->
<RegExpFilter>sshd\[[[:digit:]]+\]:[[:space:]]*Failed password for invalid user [^[: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 invalid user (?'user'\S+)+ from (?'clientHost'\S+)</RegExp>
<EventType>0</EventType>
<EventId>27003</EventId>
</WriteAction>
</WriteActions>
</Rule>