id: scp-admin

info:
  name: Fortinet Admin-SCP Disabled - Detect
  author: pussycat0x
  severity: info
  description: Fortinet Admin-SCP functionality is recommended to be disabled by default. Enabling SCP allows download of the configuration file from the FortiGate as an alternative method of backing up the configuration file.
  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 admin-scp enable"
        negative: true

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