id: heuristic-scan

info:
  name: Fortinet Heuristic Scanning not Configured - Detect
  author: pussycat0x
  severity: info
  description: |
    Fortinet heuristic scanning configuration is advised to thwart attacks. Heuristic scanning is a technique used to identify previously unknown viruses. A value of block enables heuristic AV scanning of binary files and blocks any detected. A replacement message is forwarded to the recipient, and blocked files are quarantined if quarantine is enabled.
  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:
          - "config antivirus heuristic"
          - "set mode block"
        negative: true

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