id: set-hostname

info:
  name: PfSense Hostname Not Set - Detect
  author: pussycat0x
  severity: info
  description: |
    PfSense Hostname should be set so that other devices on the network can correctly identify it. The hostname is a unique identifier for the device.
  reference: |
    https://docs.netgate.com/pfsense/en/latest/config/general.html
  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: firewall,config,audit,pfsense,file

file:
  - extensions:
      - xml

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<system>"
          - "<hostname></hostname>"
          - "domain>"
        condition: and

# Enhanced by md on 2023/05/04
# digest: 490a00463044022034089cdb09d43915d7ac80eaf7229ad511aef63a7894709bf4c2bd1a1ce3724802200b9f43a0c4ccc98a22e0d2b1bd5dead7f73ba631fb520091eac23ea643aa0260:922c64590222798bb761d5b6d8e72950