Cross-source coverage
T1027.013 / ATT&CK
Obfuscated Files or Information: Encrypted/Encoded File
9 rules · 8 families across 3 sources.
Showing deprecated rules · back to the default
From MITRE ATT&CK 19.2
Adversaries may encrypt or encode files to obfuscate strings, bytes, and other specific patterns to impede detection. Encrypting and/or encoding file content aims to conceal malicious artifacts within a file used in an intrusion. Many other techniques, such as Software Packing, Steganography, and Embedded Payloads, share this same broad objective. Encrypting and/or encoding files could lead to a lapse in detection of static signatures, only for this malicious content to be revealed (i.e., Deobfuscate/Decode Files or Information) at the time of execution/use.
This type of file obfuscation can be applied to many file artifacts present on victim hosts, such as malware log/configuration and payload files. Files can be encrypted with a hardcoded or user-supplied key, as well as otherwise obfuscated using standard encoding schemes such as Base64.
The entire content of a file may be obfuscated, or just specific functions or values (such as C2 addresses). Encryption and encoding may also be applied in redundant layers for additional protection.
For example, adversaries may abuse password-protected Word documents or self-extracting (SFX) archives as a method of encrypting/encoding a file such as a Phishing payload. These files typically function by attaching the intended archived content to a decompressor stub that is executed when the file is invoked (e.g., User Execution).
Adversaries may also abuse file-specific as well as custom encoding schemes. For example, Byte Order Mark (BOM) headers in text files may be abused to manipulate and obfuscate file content until Command and Scripting Interpreter execution.
- Tactics
- Stealth
- Platforms
- Linux · macOS · Windows
- Telemetry
-
WinEventLog:SysmonWinEventLog:Securityauditd:SYSCALLlinux:Sysmonmacos:unifiedlogmacos:endpointsecurity
How MITRE says to detect it DET0087
Encrypted or Encoded File Payload Detection Strategy
Windows Analytic 0237
Detection of processes that load or decode encrypted/encoded files in memory and subsequently execute or inject them, indicating payload unpacking or memory-resident malware.
WinEventLog:SysmonEventCode=7WinEventLog:SysmonEventCode=10WinEventLog:SecurityEventCode=4688
Linux Analytic 0238
Detection of suspicious use of shell utilities or scripts that decode or decrypt a payload and execute it without writing to disk.
auditd:SYSCALLexecvelinux:SysmonEventCode=3, 22
macOS Analytic 0239
Detection of encoded payloads being decoded and executed in-memory using scripting tools or third-party decoders.
macos:unifiedloglog streammacos:endpointsecurityes_event_execmacos:unifiedlogmemory mapping
elastic/detection-rules
5 rules| Detection | Severity | Format |
|---|---|---|
| Deprecated - Encoded Executable Stored in the Registry | Medium | Elastic TOML |
| PowerShell Script with Encryption/Decryption Capabilities | Medium | Elastic TOML |
| ROT Encoded Python Script Execution | Medium | Elastic TOML |
| Suspicious Portable Executable Encoded in Powershell Script | Medium | Elastic TOML |
| Data Encrypted via OpenSSL Utility | Low | Elastic TOML |
elastic/protections-artifacts
3 rules · 2 families| Detection | Severity | Format |
|---|---|---|
| Data Encrypted and Archived 2 variants | Undefined | Elastic TOML |
| Data Encrypted and Archived 2 variants | Undefined | Elastic TOML |
| ROT encoded Python Script Execution | Undefined | Elastic TOML |
splunk/security_content
1 rule| Detection | Severity | Format |
|---|---|---|
| Windows Obfuscated Files or Information via RAR SFX | Undefined | SPL |