mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-01-31 15:53:33 +08:00
43 lines
1.6 KiB
YAML
43 lines
1.6 KiB
YAML
id: message-access-server
|
|
|
|
info:
|
|
name: Ensure Message Access Server Service is Not Installed
|
|
author: Th3l0newolf
|
|
severity: info
|
|
description: |
|
|
The dovecot-imapd package provides the Dovecot IMAP server, which allows users to remotely access email stored on the system. If not explicitly required, having this service installed unnecessarily increases the system's attack surface and could expose it to potential remote exploits. To maintain a secure system, IMAP services should only be installed and enabled when there is a clear business requirement.
|
|
remediation: |
|
|
- Ensure the `slapd` package is not installed unless explicitly required.
|
|
- To remove the package, run: sudo apt-get remove slapd -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 dovecot-imapd &>/dev/null; then
|
|
echo "[message-access-server-check:Policy-Fail] [dovecot-imapd is installed] [CIS_FAIL]"
|
|
else
|
|
echo "[message-access-server-check:Policy-Pass] [dovecot-imapd is not installed] [CIS_PASS]"
|
|
fi
|
|
|
|
matchers:
|
|
- type: word
|
|
name: policy-pass
|
|
words:
|
|
- "Policy-Pass"
|
|
|
|
- type: word
|
|
name: policy-fail
|
|
words:
|
|
- "Policy-Fail"
|
|
# digest: 490a00463044022048442f9e6ba5e787b92a1dba45ba24c28a82387237930983ef1a0eff0d2865500220184e67f0c319d9288ffb4e2a898d6bdd4b9e5c31e83f1f75f4701054284b87c6:922c64590222798bb761d5b6d8e72950 |