Files
nuclei-templates/code/linux/audit/linux-rexec-service.yaml
2025-08-22 11:09:39 +05:30

30 lines
813 B
YAML

id: linux-rexec-service
info:
name: rexec Service Should Be Disabled
author: songyaeji
severity: high
description: |
Assessed the operational status of the rexec service on the system.Running rexec could have allowed unauthorized users to gain access or extract sensitive information, representing a significant security risk.
reference:
- https://isms.kisa.or.kr
tags: linux,audit,kisa,compliance
self-contained: true
code:
- engine:
- sh
- bash
source: |
if grep -i 'disable[[:space:]]*=[[:space:]]*no' /etc/xinetd.d/rexec 2>/dev/null; then
echo "[VULNERABLE] rexec service is enabled"
else
echo "[SAFE] rexec service is disabled"
fi
matchers:
- type: word
part: response
words:
- "[VULNERABLE]"