FortiGate Administrator Login from Multiple IP Addresses

Last updated 5 days ago on 2026-01-29
Created 6 days ago on 2026-01-28

About

This rule detects successful logins to the FortiGate management interface using the same Administrator account from multiple distinct source IP addresses within an 24-hour period. Administrator logins from multiple locations in a short time window may indicate credential sharing, compromised credentials, or unauthorized access and should be investigated.
Tags
Use Case: Threat DetectionTactic: Initial AccessDomain: NetworkDomain: IdentityData Source: FortinetData Source: Fortinet FortiGateLanguage: esql
Severity
high
Risk Score
73
MITRE ATT&CK™

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

License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

fortinet_fortigate(external, opens in a new tab or window)

Query
text code block:
FROM logs-fortinet_fortigate.*, filebeat-* metadata _id | WHERE event.dataset == "fortinet_fortigate.log" and event.category == "authentication" and event.action == "login" and event.outcome == "success" and source.user.roles == "Administrator" and source.user.name is not null and source.ip is not null | stats Esql.logon_count = count(*), Esql.source_ip_count_distinct = COUNT_DISTINCT(source.ip), Esql.max_timestamp = MAX(@timestamp), Esql.source_ip_values = VALUES(source.ip), Esql.message_values = VALUES(message), Esql.source_geo_country_name_values = VALUES(source.geo.country_name) by source.user.name // last logon event timestamp is within 6m of the rule execution time to avoid duplicates | eval Esql.recent = DATE_DIFF("minute", Esql.max_timestamp, now()) | where Esql.recent <= 6 and Esql.logon_count >= 2 and Esql.source_ip_count_distinct >= 2 // move dynamic fields to ECS equivalent for rule exceptions | eval source.ip = MV_FIRST(Esql.source_ip_values) | keep source.ip, source.user.name, Esql.*

Install detection rules in Elastic Security

Detect FortiGate Administrator Login from Multiple IP Addresses 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(external, opens in a new tab or window).