SSH 失敗アラート ルール

Microsoft.Solaris.10.LogFile.Syslog.SSHAuth.PAM.Root.Failure.Alert (Rule)

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

Knowledge Base article:

概要

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

原因

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

解決方法

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

Element properties:

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

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Solaris.10.LogFile.Syslog.SSHAuth.PAM.Root.Failure.Alert" Target="Microsoft.Solaris.10.Computer" Enabled="true" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.Privileged.Datasource">
<Host>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Host>
<LogFile>/var/log/authlog</LogFile>
<RegExpFilter>.*sshd.*Failed.*keyboard-interactive.*for.*root.*</RegExpFilter>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Solaris.10.LogFile.Syslog.SSHAuth.PAM.Root.Failure.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>