Detection rules for FortiGate Data sources. Every rule contains its MITRE ATT&CK mapping, an impact rating, and details on what it identifies.
This category lists 7 detection rules.
| Rule | Category | Technique | Impact (C/I/A) |
|---|---|---|---|
| Admin Account Compromise Indicators | Defense Evasion, Persistence, Privilege Escalation, Initial Access | T1078 - Valid Accounts | C:3 / I:3 / A:2 |
| Data Loss Prevention Trigger | Exfiltration | T1048 - Exfiltration Over Alternative Protocol | C:3 / I:2 / A:1 |
| FortiGate Admin Login from Unusual Source | Initial Access | T1078 - Valid Accounts | C:3 / I:2 / A:1 |
| FortiGate VPN Authentication Brute Force | Credential Access | T1133 - External Remote Services | C:3 / I:2 / A:1 |
| FortiSandbox Malicious File Detection | Execution | T1204 - User Execution | C:3 / I:3 / A:2 |
| Fortinet Antivirus Malware Outbreak Detection | Initial Access | T1566 - Phishing | C:3 / I:3 / A:2 |
| Fortinet IPS Critical Severity Detection | Execution | T1203 - Exploitation for Client Execution | C:3 / I:3 / A:2 |
Rule Example
Below is an example of a rule definition for Admin Account Compromise Indicators (view in repository):
# Rule version v1.0.0
dataTypes:
- firewall-fortigate-traffic
name: Admin Account Compromise Indicators
impact:
confidentiality: 3
integrity: 3
availability: 2
category: Defense Evasion, Persistence, Privilege Escalation, Initial Access
technique: "T1078 - Valid Accounts"
adversary: origin
references:
- https://attack.mitre.org/techniques/T1078/
- https://docs.fortinet.com/document/fortigate/7.4.1/fortios-log-message-reference/160372/list-of-log-types-and-subtypes
description: |
Detects multiple failed admin login attempts followed by a successful login from the same IP address, indicating potential account compromise through credential stuffing or brute force attacks.
Next Steps:
1. Review the source IP address and check if it's from an expected location
2. Contact the admin user to verify if the login was legitimate
3. Check for any suspicious activities performed after the successful login
4. Review other authentication logs from the same IP address
5. Consider implementing IP-based access controls for admin accounts
6. Enable multi-factor authentication if not already configured
7. Reset the compromised admin account password if unauthorized access is confirmed
where: |
equals("log.logid", "0100032001") &&
equals("log.type", "event") &&
equals("log.subtype", "system") &&
equals("log.logdesc", "Admin login successful") &&
exists("origin.ip") &&
exists("log.user")
afterEvents:
- indexPattern: v1-7-22-log-firewall-fortigate-traffic-*
with:
- field: origin.ip
operator: filter_term
value: '{{.origin.ip}}'
- field: log.logdesc
operator: filter_term
value: 'Admin login failed'
- field: log.user
operator: filter_term
value: '{{.log.user}}'
within: now-15m
count: 5
groupBy:
- adversary.ip
- target.user
Rule Details
Admin Account Compromise Indicators
Identifies several unsuccessful administrator sign-in attempts, followed by a successful sign-in from the same IP address, suggesting possible account takeover via credential stuffing or brute force.
Category: Defense Evasion, Persistence, Privilege Escalation, Initial Access
Technique: T1078 - Valid Accounts
Impact: C:3 / I:3 / A:2
Rule file: admin_account_compromise.yml
Reference: https://attack.mitre.org/techniques/T1078/
Data Loss Prevention Trigger
Identifies attempts to remove sensitive data in violation of DLP policies. This covers credit card numbers, social security numbers, PII, financial records, and other regulated data being sent outside the network.
Category: Exfiltration
Technique: T1048 - Exfiltration Over Alternative Protocol
Impact: C:3 / I:2 / A:1
Rule file: dlp_data_exfiltration.yml
Reference: https://docs.fortinet.com/document/fortigate/7.6.3/administration-guide/153498/data-loss-prevention
Reference: https://attack.mitre.org/techniques/T1048/
FortiGate Admin Login from Unusual Source
Identifies FortiGate administrator logins originating from uncommon or external IP addresses. Successful admin access from networks not used for management can point to compromised credentials.
Category: Initial Access
Technique: T1078 - Valid Accounts
Impact: C:3 / I:2 / A:1
Rule file: fortigate_admin_session_anomaly.yml
Reference: https://attack.mitre.org/techniques/T1078/
FortiGate VPN Authentication Brute Force
Identifies repeated SSL-VPN or IPsec VPN authentication failures originating from one source IP on FortiGate, suggesting brute force or credential stuffing attempts against remote access services.
Category: Credential Access
Technique: T1133 - External Remote Services
Impact: C:3 / I:2 / A:1
Rule file: fortigate_vpn_brute_force.yml
Reference: https://attack.mitre.org/techniques/T1133/
FortiSandbox Malicious File Detection
Identifies when FortiSandbox classifies a file as malicious through static scanning and behavioral analysis. This points to active malware trying to enter the network via file transfers or downloads.
Category: Execution
Technique: T1204 - User Execution
Impact: C:3 / I:3 / A:2
Rule file: sandbox_malicious_verdict.yml
Reference: https://attack.mitre.org/techniques/T1204/
Fortinet Antivirus Malware Outbreak Detection
Identifies a possible malware outbreak when multiple antivirus alerts originate from one source or target several destinations within a brief period. This may signal a broad infection attempt or a compromised system trying to propagate malware.
Category: Initial Access
Technique: T1566 - Phishing
Impact: C:3 / I:3 / A:2
Rule file: antivirus_outbreak_detection.yml
Reference: https://docs.fortinet.com/document/fortigate/7.4.1/administration-guide/198726/antivirus
Reference: https://attack.mitre.org/techniques/T1566/
Fortinet IPS Critical Severity Detection
Identifies critical severity IPS events that point to active exploitation attempts or serious security threats against the network.
Category: Execution
Technique: T1203 - Exploitation for Client Execution
Impact: C:3 / I:3 / A:2
Rule file: ips_critical_severity_events.yml
Reference: https://docs.fortinet.com/document/fortigate/7.4.1/administration-guide/331728/ips-sensors
Reference: https://attack.mitre.org/techniques/T1203/