Files
nuclei-templates/code/linux/audit/linux-automountd-enabled.yaml
pussycat0x 72fdfa4be4 lint - fix
2025-08-21 15:38:38 +05:30

46 lines
1.0 KiB
YAML

id: linux-automountd-enabled
info:
name: Automountd Service Enabled
author: songyaeji
severity: medium
description: |
The automountd service, when enabled or running, allowed a local attacker to execute arbitrary commands with root privileges by exploiting automatic mount options. This misconfiguration led to local privilege escalation.
reference:
- https://isms.kisa.or.kr
metadata:
verified: true
tags: local,linux,privesc,kisa
self-contained: true
code:
- engine:
- sh
- bash
source: |
whoami
- engine:
- sh
- bash
source: |
if pgrep -x "automountd" > /dev/null; then
echo "[VULNERABLE] automountd service is running"
else
echo "[SAFE] automountd service is not running"
fi
matchers-condition: and
matchers:
- type: word
part: code_1_response
words:
- "root"
negative: true
- type: word
part: code_2_response
words:
- "[VULNERABLE]"