检测 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>