id: known-default-account

info:
  name: PfSense Known Default Account - Detect
  author: pussycat0x
  severity: info
  description: |
    PfSense configured known default accounts are recommended to be deleted. In order to attempt access to known devices' platforms, an attacker can use the available database of the known default accounts for each platform or operating system. Known default accounts are often, but not limited to, 'admin'.
  reference:
    - https://docs.netgate.com/pfsense/en/latest/usermanager/defaults.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: audit,config,file,firewall,pfsense

file:
  - extensions:
      - xml

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<name>admin</name>"
          - "<descr><![CDATA[System Administrator]]></descr>"
          - "<priv>user-shell-access</priv>"
        condition: and

# Enhanced by md on 2023/05/04
# digest: 4a0a00473045022100af5fec249a6c4905fe1b3b49d1cc782c886bcda91b4e1beeb71ec8fd5641a1d10220490b756481c4d8246e6a6191ecee4bb9c202a10869249dcd5fc6cfce168e41a4:922c64590222798bb761d5b6d8e72950