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: 4a0a00473045022059ea7d95a2e2cf2a63533fc19d21e84017c6466d59d8b4494f60cde04db65d62022100e0efd180894e22c20ae222d96026ff53046003cd58cd00e5962e5d101719a202:922c64590222798bb761d5b6d8e72950