Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Detection Strategies DET0132 — Detection of Mutex-Based Execution Guardrails Across Platforms
DET0132

Detection of Mutex-Based Execution Guardrails Across Platforms

3 analytic(s) · 1 technique(s) detected

Analytics

3
AN0372 Analytic 0372
Windows

Adversary-created named mutex using system APIs (e.g., CreateMutexW) followed by conditional process termination or alternate code path indicating malware avoiding reinfection.

WinEventLog:Sysmon EventCode=1 WinEventLog:Sysmon EventCode=11
[mutex_name_entropy_threshold] Filter out common benign mutex names; highlight suspicious high-entropy/dynamic names.
[parent_process_path] Limit alerting to non-standard parent-child relationships indicative of malware staging or self-spawning.
[TimeWindow] Correlate mutex creation + rapid process exit or lack of further activity within a short timeframe.
AN0373 Analytic 0373
Linux

File lock acquired via open() + flock() or lockf() on predictable path (e.g., /tmp/.lock123) followed by conditional early exit or divergent process behavior.

auditd:SYSCALL open, flock, fcntl, unlink auditd:SYSCALL exit_group
[lockfile_path_regex] Detect patterns like /tmp/.lock*, /var/run/*lock used by malware.
[exit_code] Track specific exit codes (e.g., 1, 2) that signal lock acquisition failure.
[TimeWindow] Correlate lockfile access + early process termination within N seconds.
AN0374 Analytic 0374
macOS

User-mode application uses flock() or NSDistributedLock to gain exclusive access to a resource file (e.g., /tmp/guard.lock), conditional logic alters execution if already locked.

macos:unifiedlog flock|NSDistributedLock|FileHandle.*lockForWriting macos:unifiedlog process.*exit.*code
[lockfile_path] Path to mutex file (e.g., /tmp/*, /private/tmp/*), tune per environment.
[user_context] Flag non-user processes using these APIs.
[TimeWindow] Detection correlation across short time intervals between lock attempt and process exit.

Detected Techniques

1

Details

MITRE ID
DET0132
STIX ID
x-mitre-detection-strategy--d22f1848-fc32-4fdb-999b-9c0845fb6552
Analytics
3
Techniques Detected
1
By Tactic
Stealth
1
Leaving Threaticon

This link opens an external site that isn't part of the platform.