Detection rules › Sigma

Audio Capture

Status
test
Severity
low
Log source
product linux, service auditd
Author
Pawel Mazur, Milad Cheraghi
Source
github.com/SigmaHQ/sigma

Detects attempts to record audio using the arecord and ecasound utilities.

MITRE ATT&CK coverage

TacticTechniques
CollectionT1123 Audio Capture

Event coverage

Rule body yaml

title: Audio Capture
id: a7af2487-9c2f-42e4-9bb9-ff961f0561d5
status: test
description: Detects attempts to record audio using the arecord and ecasound utilities.
references:
    - https://linux.die.net/man/1/arecord
    - https://linuxconfig.org/how-to-test-microphone-with-audio-linux-sound-architecture-alsa
    - https://manpages.debian.org/unstable/ecasound/ecasound.1.en.html
    - https://ecasound.seul.org/ecasound/Documentation/examples.html#fconversions
author: Pawel Mazur, Milad Cheraghi
date: 2021-09-04
modified: 2025-12-05
tags:
    - attack.collection
    - attack.t1123
logsource:
    product: linux
    service: auditd
detection:
    selection_execve:
        type: EXECVE
        a0: arecord
        a1: '-vv'
        a2: '-fdat'
    selection_syscall_memfd_create:
        type: SYSCALL
        exe|endswith: "/ecasound"
        SYSCALL: 'memfd_create'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_execve

selection_execve:
    type: EXECVE
    a0: arecord
    a1: '-vv'
    a2: '-fdat'

Stage 2: selection_syscall_memfd_create

selection_syscall_memfd_create:
    type: SYSCALL
    exe|endswith: "/ecasound"
    SYSCALL: 'memfd_create'

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
SYSCALLeq
  • memfd_create
a0eq
  • arecord
a1eq
  • -vv
a2eq
  • -fdat
exeends_with
  • /ecasound
typeeq
  • EXECVE
  • SYSCALL