SSH 失敗アラート ルール

Microsoft.AIX.7.LogFile.Syslog.SSHAuth.Root.Failure.Alert (Rule)

SSH as root メッセージの失敗のアラート ルール

Knowledge Base article:

概要

ルートとしての SSH 認証の失敗がシステム ログ ファイルで検出されました。

構成

このルールは、既定では無効になっています。このルールを監視用に有効にするには、上書きを使用してログ ファイルのパスを構成し、ルールを有効にします。ログ ファイルのパスは LogFile という上書き可能なプロパティによって設定されます。値は syslog の構成で定義されている、これらのイベントが出力されるログ ファイルの完全なパスに設定する必要があります。上書きを使用して、すべてのインスタンスまたは特定のインスタンスやグループに対してパラメーターの値を変更できます。

原因

この失敗は、パスワードの入力の間違いや、無効なユーザー名を使用したことが原因であることがあります。ただし、失敗が引き続き発生する場合は、だれかが許可されないアクセスを試みている可能性があります。

解決策

アラートや出力データ項目の説明には、発生した問題に関する情報が含まれています。エラーが発生した場合に問題を診断するには、関連イベントの詳細およびこのエラーとほぼ同時刻に発生したその他のイベントを確認してください。

Element properties:

TargetMicrosoft.AIX.7.Computer
CategoryEventCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
ルートとしての SSH の失敗が検出されました
{0}

Member Modules:

ID Module Type TypeId RunAs 
EventDS DataSource Microsoft.Unix.SCXLog.Datasource Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.AIX.7.LogFile.Syslog.SSHAuth.Root.Failure.Alert" Target="Microsoft.AIX.7.Computer" Enabled="true" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<!-- [TYPE] AIX7 SSH False -->
<!-- [INPUT] Jun 2 14:25:55 scxomd-aix7-01 auth|security:info sshd[6357224]: Failed password for root from 10.195.175.198 port 47282 ssh2 -->
<!-- [INPUT-MISS] Jun 2 14:26:26 scxomd-aix7-01 auth|security:info sshd[6357228]: Failed password for scxuser from 10.195.175.198 port 47283 ssh2 -->
<DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.Datasource">
<Host>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Host>
<LogFile>/var/adm/ras/syslog.caa</LogFile>
<RegExpFilter>[[:space:]]sshd\[[[:digit:]]+]: Failed password for root from</RegExpFilter>
<IndividualAlerts>false</IndividualAlerts>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.AIX.7.LogFile.Syslog.SSHAuth.Root.Failure.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>