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 DET0226 — Detection Strategy for Masquerading via File Type Modification
DET0226

Detection Strategy for Masquerading via File Type Modification

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

Analytics

3
AN0630 Analytic 0630
Windows

Detects behavior where files with non-executable or misleading extensions (e.g., .jpg, .txt) are created or modified but subsequently executed as binaries based on internal file headers or abnormal parent process lineage. This includes identifying polyglot files or malformed magic bytes indicative of masquerading attempts.

WinEventLog:Sysmon EventCode=11 WinEventLog:Sysmon EventCode=1
[benign_extensions] List of non-executable file types commonly used to mask payloads (.jpg, .txt, .gif)
[monitored_directories] Targeted directories for initial access and downloads (e.g., %TEMP%, Downloads, AppData)
[MagicByteMismatchThreshold] Detection tolerance for mismatches between extension and file signature (magic bytes)
[TimeWindow] Time range between file creation and first execution
[ParentProcessAnomalyScore] Anomaly score threshold for suspicious parent-child process combinations
AN0631 Analytic 0631
Linux

Detects when a script or binary is named with misleading or benign-looking extensions (.jpg, .doc) and is then executed via command line or a scheduled task. Includes ELF header mismatches and content-type inconsistencies on disk.

auditd:SYSCALL execve linux:osquery Read headers and detect MIME type mismatch
[benign_extensions] Linux-targeted masquerade extensions (.jpg, .pdf, .png)
[HeaderInspectionEnabled] Whether to parse file signatures or MIME types from file headers
[ExecPathScope] Monitored directory scope for adversarial execution (e.g., /tmp/, /home/username/Downloads)
AN0632 Analytic 0632
macOS

Detects binaries disguised as media or document types through extension-only masquerading or by modifying the file signature. Observes execution of files whose extension is not typically executable (.jpg, .txt), yet have valid Mach-O headers or execute via Terminal or launch services.

macos:unifiedlog launchservices events for misleading extensions
[LaunchAgentScope] Scope of services monitored for unusual launches (e.g., Finder, Terminal, Preview)
[SignatureEnforcementLevel] How strictly the detection checks header validity vs. file extension
[TimeWindow] Time range for linking file modification and execution events

Detected Techniques

1

Details

MITRE ID
DET0226
STIX ID
x-mitre-detection-strategy--e2d84c66-3647-4aab-962b-c1ad89455a18
Analytics
3
Techniques Detected
1
By Tactic
Stealth
1
Leaving Threaticon

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