Files
nuclei-templates/code/linux/audit/dhcp-server.yaml
2025-08-21 12:45:03 +00:00

42 lines
1.4 KiB
YAML

id: dhcp-server
info:
name: Ensure DHCP Server Service is Not Installed
author: Th3l0newolf
severity: info
description: |
The isc-dhcp-server package provides DHCP services for automatic IP address assignment.Running a DHCP server on non-designated systems may introduce security risks and unwanted network behavior.
remediation: |
- Ensure the isc-dhcp-server package is not installed unless explicitly required.
- To remove the package, run: sudo apt-get remove isc-dhcp-server -y
reference:
- https://www.cisecurity.org/benchmark/ubuntu_linux
metadata:
verified: true
tags: cis,cisecurity,audit,linux,ubuntu
self-contained: true
code:
- engine:
- bash
args:
- "-c"
- |
if dpkg-query -s isc-dhcp-server &>/dev/null; then
echo "[dhcp-server-check:Policy-Fail] [isc-dhcp-server is installed] [CIS_FAIL]"
else
echo "[dhcp-server-check:Policy-Pass] [isc-dhcp-server is not installed] [CIS_PASS]"
fi
matchers:
- type: word
name: policy-pass
words:
- "Policy-Pass"
- type: word
name: policy-fail
words:
- "Policy-Fail"
# digest: 4a0a00473045022023aae44e0079adb3e17dfcba00ca4208a6d82781053b39efd0d8e1ad598d716102210096e49edbec33152c101e3aa7a6d603ac265b5b6142456fac8e46951b6a78b3a3:922c64590222798bb761d5b6d8e72950