SSH 실패 경고 규칙

Microsoft.HPUX.11iv3.LogFile.Syslog.SSHAuth.PAM.Root.Failure.Alert (Rule)

SSH 루트 실패 메시지에 대한 경고 규칙입니다.

Knowledge Base article:

요약

시스템 로그 파일에서 루트 계정에 대한 SSH 인증 실패가 검색되었습니다.

원인

잘못 입력된 암호나 잘못된 사용자 이름을 사용하려는 시도 때문에 오류가 발생한 것일 수 있습니다. 그러나 오류가 지속되는 경우 다른 사용자가 무단으로 액세스하려는 것일 수 있습니다.

해결 방법

경고에 대한 설명 및/또는 출력 데이터 항목에 발생한 문제에 대한 정보가 포함되어 있습니다. 오류가 발생하면 관련 이벤트 세부 정보와 이 오류와 비슷한 시기에 발생한 다른 이벤트를 검토하여 문제를 진단하십시오.

Element properties:

TargetMicrosoft.HPUX.11iv3.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.HPUX.11iv3.LogFile.Syslog.SSHAuth.PAM.Root.Failure.Alert" Target="Microsoft.HPUX.11iv3.Computer" Enabled="true" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<!-- [TYPE] HP SSH False -->
<!-- [INPUT] Nov 9 14:37:21 scxhpi1 sshd[19330]: error: PAM: Authentication failed for root from scxhpr2 -->
<!-- [INPUT] Nov 9 13:47:22 3E:scxhpr2 sshd[2866]: error: PAM: Authentication failed for root from scxhpr3.scx.com -->
<!-- [INPUT-MISS] Nov 9 14:46:36 scxhpi1 sshd[19671]: error: PAM: Authentication failed for illegal user jonas from scxhpr2 -->
<!-- [INPUT-MISS] Nov 9 13:56:41 3E:scxhpr2 sshd[3029]: error: PAM: Authentication failed for illegal user jonas from scxhpr3.scx.com -->
<DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.Datasource">
<Host>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Host>
<LogFile>/var/adm/syslog/syslog.log</LogFile>
<RegExpFilter>[[:space:]]sshd\[[[:digit:]]+\]: error: PAM: Authentication failed for root from [^[:space:]]+</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.HPUX.11iv3.LogFile.Syslog.SSHAuth.PAM.Root.Failure.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>