Files
nuclei-templates/code/linux/audit/linux-automountd-enabled.yaml

46 lines
1.2 KiB
YAML
Raw Normal View History

id: linux-automountd-enabled
info:
2025-08-21 12:09:15 +05:30
name: Automountd Service Enabled
author: songyaeji
2025-08-21 12:09:15 +05:30
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:
2025-08-21 15:38:38 +05:30
verified: true
2025-08-21 12:09:15 +05:30
tags: local,linux,privesc,kisa
self-contained: true
code:
- engine:
2025-08-21 12:09:15 +05:30
- sh
- bash
source: |
2025-08-21 12:09:15 +05:30
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
2025-08-21 12:09:15 +05:30
matchers-condition: and
matchers:
- type: word
2025-08-22 17:45:50 +05:30
part: response
words:
2025-08-21 12:09:15 +05:30
- "root"
negative: true
- type: word
2025-08-22 17:45:50 +05:30
part: response
2025-08-21 12:09:15 +05:30
words:
2025-08-21 15:38:38 +05:30
- "[VULNERABLE]"
2025-08-23 08:02:48 +00:00
# digest: 4a0a0047304502203bae281737c0bf4a782527ac4b1f087046778d156478e8942e0f62bc57de275602210080d389c9fdfcdb96b3290985fcbba51ad85076327ed6aabd5af318ba4dc0f0e2:922c64590222798bb761d5b6d8e72950