Successful SSH Authentication from Unusual User

Last updated 4 months ago on 2025-04-07
Created 6 months ago on 2025-02-21

About

This rule leverages the new_terms rule type to detect successful SSH authentications by a user who has not been authenticated in the last 10 days. This behavior may indicate an attacker attempting to gain access to the system using a valid account.
Tags
Domain: EndpointOS: LinuxUse Case: Threat DetectionTactic: Initial AccessData Source: Elastic DefendLanguage: kuery
Severity
low
Risk Score
21
MITRE ATT&CK™

Initial Access (TA0001)(opens in a new tab or window)

False Positive Examples
This rule may trigger in cases where a user has routine work patterns that result in infrequent authentications.
License
Elastic License v2(opens in a new tab or window)

Definition

Rule Type
New Terms Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-system.auth-*filebeat-*
Related Integrations

system(opens in a new tab or window)

Query
event.category:authentication and host.os.type:linux and event.action:ssh_login and event.outcome:success

Install detection rules in Elastic Security

Detect Successful SSH Authentication from Unusual User in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).