id: password-policy

info:
  name: Fortinet Password Policy Not Set - Detect
  author: pussycat0x
  severity: info
  description: Fortinet administrative password policy is not set. Using this feature is recommended to ensure all administrators use secure passwords that meet organizations' requirements.
  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: fortigate,config,audit,file,firewall

file:
  - extensions:
      - conf

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "config system password-policy"
        negative: true

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