Detection rules for FortiWeb data sources. Each rule includes its MITRE ATT&CK mapping, impact rating, and a description of what it detects.

This category contains 7 detection rules.

RuleCategoryTechniqueImpact (C/I/A)
FortiWeb Authentication Bypass Attempt DetectedDefense Evasion, Persistence, Privilege Escalation, Initial AccessT1078 - Valid AccountsC:3 / I:3 / A:1
FortiWeb File Upload Security Violation DetectedResource DevelopmentT1608 - Stage Capabilities: Upload MalwareC:3 / I:3 / A:2
FortiWeb OWASP Top 10 Violation AttemptsInitial AccessT1190 - Exploit Public-Facing ApplicationC:3 / I:3 / A:2
FortiWeb SQL Injection Attack DetectionWeb Application AttackT1190 - Exploit Public-Facing ApplicationC:3 / I:3 / A:2
FortiWeb SSRF Attack DetectionWeb Application AttackT1190 - Exploit Public-Facing ApplicationC:3 / I:2 / A:1
FortiWeb Web Application Attack DetectionInitial AccessT1190 - Exploit Public-Facing ApplicationC:3 / I:3 / A:2
FortiWeb Web Shell Upload DetectionPersistenceT1505.003 - Server Software Component: Web ShellC:3 / I:3 / A:3

Rule Example

Below is an example of a rule definition for FortiWeb Authentication Bypass Attempt Detected (view in repository):

# Rule version v1.0.0

dataTypes:
  - firewall-fortiweb
name: FortiWeb Authentication Bypass Attempt Detected
impact:
  confidentiality: 3
  integrity: 3
  availability: 1
category: Defense Evasion, Persistence, Privilege Escalation, Initial Access
technique: "T1078 - Valid Accounts"
adversary: origin
references:
  - https://docs.fortinet.com/document/fortiweb/7.2.2/log-message-reference/252057/event
  - https://attack.mitre.org/techniques/T1078/
  - https://attack.mitre.org/techniques/T1190/
description: |
  Detects authentication bypass attempts including direct access to protected resources, authentication flow manipulation, and credential stuffing attacks on FortiWeb protected applications.

  Next Steps:
  1. Review the source IP address and check if it's from a known location or VPN service
  2. Examine the specific authentication bypass technique attempted (check log.attack_type and log.msg fields)
  3. Verify if any successful authentication occurred from the same IP address
  4. Check for other attack patterns from the same source IP in the last 24 hours
  5. Consider blocking the source IP if multiple bypass attempts are confirmed
  6. Review application logs for any successful unauthorized access
  7. Validate that authentication mechanisms are properly configured and up to date
where: |
  exists("origin.ip") && 
  equals("log.type", "attack") &&
  (
    equals("log.subtype", "account-lockout-detection") ||
    contains("log.msg", "authentication") ||
    contains("log.msg", "Authentication") ||
    contains("log.msg", "bypass") ||
    contains("log.msg", "unauthorized access") ||
    equals("log.attack_type", "auth_bypass") ||
    contains("log.trigger_policy", "auth")
  ) &&
  oneOf("action", ["deny", "alert", "block"])
afterEvents:
  - indexPattern: v11-log-firewall-fortiweb-*
    with:
      - field: origin.ip
        operator: filter_term
        value: '{{.origin.ip}}'
    within: now-15m
    count: 3
groupBy:
  - adversary.ip
  - target.ip

Rule Details

FortiWeb Authentication Bypass Attempt Detected

Detects authentication bypass attempts including direct access to protected resources, authentication flow manipulation, and credential stuffing attacks on FortiWeb protected applications.

FortiWeb File Upload Security Violation Detected

Detects file upload security violations including malicious file uploads, oversized files, restricted file types, and potential web shell upload attempts on FortiWeb protected applications. These violations could indicate attempts to upload malicious files, web shells, or bypass upload restrictions.

FortiWeb OWASP Top 10 Violation Attempts

Detects attempts to exploit OWASP Top 10 vulnerabilities including injection flaws, broken authentication, sensitive data exposure, XXE, broken access control, security misconfiguration, and more. This rule triggers when FortiWeb blocks or alerts on attack attempts that match known OWASP Top 10 vulnerability patterns.

FortiWeb SQL Injection Attack Detection

Detects SQL injection attacks identified by FortiWeb WAF signatures. Multiple SQLi attempts from the same source indicate a targeted attack against database-backed applications.

FortiWeb SSRF Attack Detection

Detects Server-Side Request Forgery (SSRF) attacks identified by FortiWeb. SSRF attacks force the server to make requests to internal resources, potentially accessing cloud metadata services, internal APIs, or other restricted endpoints.

FortiWeb Web Application Attack Detection

Detects SQL injection, XSS, and other web application attacks blocked by FortiWeb WAF based on signature or syntax-based detection. These attacks attempt to exploit vulnerabilities in web applications to gain unauthorized access, steal data, or compromise application integrity.

FortiWeb Web Shell Upload Detection

Detects web shell upload attempts blocked or detected by FortiWeb. Web shells provide persistent remote access and command execution on compromised web servers.