Detection rules › Sigma

Use Of Hidden Paths Or Files

Status
test
Severity
low
Log source
product linux, service auditd
Author
David Burkett, @signalblur
Source
github.com/SigmaHQ/sigma

Detects calls to hidden files or files located in hidden directories in NIX systems.

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Use Of Hidden Paths Or Files
id: 9e1bef8d-0fff-46f6-8465-9aa54e128c1e
related:
    - id: d08722cd-3d09-449a-80b4-83ea2d9d4616
      type: similar
status: test
description: Detects calls to hidden files or files located in hidden directories in NIX systems.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1564.001/T1564.001.md
author: David Burkett, @signalblur
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

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    type: 'PATH'
    name|contains: '/.'

Stage 2: not filter

filter:
    name|contains:
        - '/.cache/'
        - '/.config/'
        - '/.pyenv/'
        - '/.rustup/toolchains'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
namematch/.cache/
namematch/.config/
namematch/.pyenv/
namematch/.rustup/toolchains

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
namematch
  • /.
typeeq
  • PATH