id: inactivity-timeout

info:
  name: Fortinet Inactivity Timeout Not Implemented - Detect
  author: pussycat0x
  severity: info
  description: If Fortinet inactivity timeout functionality is disabled, an attacker can potentially obtain sensitive information, modify data, and/or execute unauthorized operations within that window if the administrator is away from the computer.
  reference: https://docs.fortinet.com/document/fortigate/6.2.0/hardening-your-fortigate/582009/system-administrator-best-practices
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  tags: audit,config,file,firewall,fortigate

file:
  - extensions:
      - conf

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "set admin-console-timeout"
        negative: true

      - type: word
        words:
          - "config system"
          - "config router"
          - "config firewall"
        condition: or

# Enhanced by md on 2023/05/03
# digest: 490a0046304402202726eb344103e83558ce562ed7127aacda8c5fc4b410a43cb1a1fcbeb249ce59022011afdbaa5a1ac5641e6ea3a5aba6a8b783f47c3fb647157ac2885168c8c4d731:922c64590222798bb761d5b6d8e72950