Linux auditd: Access to hidden files or hidden directories (/. paths)

Alerts when Linux auditd shows PATH values referencing hidden files or hidden directories (excluding common dev/cache paths).

FreeReviewedSigma · Low · v3
Product
linux
Service
auditd
Author
David Burkett, @signalblur (SigmaHQ), DRL 1.1
Published
2022-12-30
Updated
2026-07-31
title: "Linux auditd: Access to hidden files or hidden directories (/. paths)"
id: ac7896f0-ddba-4eef-91a8-87da0837324a
related:
  - id: d08722cd-3d09-449a-80b4-83ea2d9d4616
    type: similar
  - id: 9e1bef8d-0fff-46f6-8465-9aa54e128c1e
    type: derived
status: test
description: This rule flags process activity where the event field 'name' contains a path component beginning with '/.' (hidden file or directory) on Linux auditd logs. Attackers often use hidden paths to reduce visibility during execution, persistence, or privilege-escalation staging. The detection relies on auditd telemetry that records PATH entries and matches paths containing '/.' while excluding common developer/runtime directories such as /.cache/, /.config/, /.pyenv/, and /.rustup/toolchains.
references:
  - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1564.001/T1564.001.md
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/auditd/path/lnx_auditd_hidden_binary_execution.yml
author: David Burkett, @signalblur, Huntrule Team
date: 2022-12-30
tags:
  - attack.privilege-escalation
  - attack.persistence
  - attack.execution
  - attack.stealth
  - attack.t1574.001
logsource:
  product: linux
  service: auditd
detection:
  selection:
    type: PATH
    name|contains: /.
  filter:
    name|contains:
      - /.cache/
      - /.config/
      - /.pyenv/
      - /.rustup/toolchains
  condition: selection and not filter
falsepositives:
  - Unknown
level: low
license: DRL-1.1