Linux Audio Capture via arecord and ecasound (auditd execve and memfd_create)

Detects Linux execution of arecord for audio capture and ecasound using memfd_create for in-memory data handling.

FreeReviewedSigma · Low · v3
Product
linux
Service
auditd
Author
Pawel Mazur, Milad Cheraghi (SigmaHQ), DRL 1.1
Published
2021-09-04
Updated
2026-07-31

ATT&CK techniques

Collection
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags Linux attempts to capture audio by executing the arecord utility with specific verbose and data-format arguments, and by observing ecasound processes that perform memfd_create. Audio capture is a common collection technique used by attackers to access microphone input without user awareness. The detection relies on auditd telemetry for EXECVE events matching arecord command-line parameters and SYSCALL events where the executing ecasound binary invokes memfd_create.

Related detections5 linkedT1123 — drag to rearrange
OpenCanary SIP Request on Honeypot Node
Windows Registry Changes Indicating Suspicious Camera/Microphone Capability Access
Windows processes accessing microphone and webcam via CapabilityAccessManager ConsentStore
Windows Process Creation: SoundRecorder audio capture using /FILE
Windows PowerShell Audio Capture Cmdlets: Toggle/Get/Set/Write AudioDevice
Linux Audio Capture via arecord and ecasound (auditd execve and memfd_create)
Pivot detection · T1123 · 5 related

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.