SSH 認証失敗を検出するためのアラート ルール
ルート アカウントの SSH 認証の失敗がシステム ログ ファイルで検出されました。
この失敗は、パスワードの入力の間違いや、無効なユーザー名を使用したことが原因であることがあります。ただし、失敗が引き続き発生する場合は、だれかが許可されないアクセスを試みている可能性があります。
アラートや出力データ項目の説明には、発生した問題に関する情報が含まれています。エラーが発生した場合に問題を診断するには、関連イベントの詳細およびこのエラーとほぼ同時刻に発生したその他のイベントを確認してください。
Target | Microsoft.Linux.SLES.10.Computer | ||
Category | EventCollection | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
|
ID | Module Type | TypeId | RunAs |
---|---|---|---|
EventDS | DataSource | Microsoft.Unix.SCXLog.Privileged.Datasource | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.Linux.SLES.10.LogFile.Syslog.SSHAuth.PAM.Root.Failure.Alert" Target="Microsoft.Linux.SLES.10.Computer" Enabled="true" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<!-- [TYPE] SUSE SSH False -->
<!-- [INPUT] Oct 12 15:50:50 sles-101-cjc sshd[12959]: error: PAM: Authentication failure for root from 192.168.233.130 -->
<!-- [INPUT] Oct 12 15:54:57 sles-101-cjc sshd[13159]: error: PAM: Authentication failure for illegal user root from 192.168.233.130 -->
<!-- [INPUT-MISS] Oct 12 15:50:43 sles-101-cjc sshd[12936]: error: PAM: Authentication failure for ccrammo from 192.168.233.130 -->
<!-- [INPUT-MISS] Oct 12 15:55:06 sles-101-cjc sshd[13164]: error: PAM: Authentication failure for illegal user ccrammo from 192.168.233.130 -->
<DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.Privileged.Datasource">
<Host>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Host>
<LogFile>/var/log/messages</LogFile>
<RegExpFilter>\s+sshd\[[[:digit:]]+\]: error: PAM: Authentication failure for (illegal user )?root from \S+</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.Linux.SLES.10.LogFile.Syslog.SSHAuth.PAM.Root.Failure.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>