id: remote-auth-timeout

info:
  name: Fortinet Remote Authentication Timeout Not Set - Detect
  author: pussycat0x
  severity: info
  description: Fortinet remote authentication timeout functionality is recommended to be enabled. Lack of a set timeout can allow an attacker to act within that threshold if the administrator is away from the computer, thereby making it possible to obtain sensitive information, modify data, and/or execute unauthorized operations.
  reference:
    - https://docs.fortinet.com/document/fortigate/6.4.0/hardening-your-fortigate/612504/hardening-your-fortigate
  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 remoteauthtimeout"
        negative: true

      - type: word
        words:
          - "config system"
          - "config router"
          - "config firewall"
        condition: or
# digest: 4a0a0047304502200a614d0ea75c1f9ae3cedc537a6bc16d427a768ff22f2c938643749dc4a8c51c02210094f2a8a915d24d99bf6f9d0dc682726561735daeb252c1c9d3276e0d2f0cc77c:922c64590222798bb761d5b6d8e72950