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: 4a0a00473045022100e0e632a9156a0bcba50870760581ebec95e4f14f441cc737da9ae7d9536b81e302202270429f469b2e5beb10a4ff1dde3e72b101efedb147347943ee1ac34990b904:922c64590222798bb761d5b6d8e72950