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