Files
nuclei-templates/code/linux/audit/linux-automountd-enabled.yaml
2025-08-22 17:45:50 +05:30

46 lines
1012 B
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: response
words:
- "root"
negative: true
- type: word
part: response
words:
- "[VULNERABLE]"