MITRE ATT&CKsub-technique
T1564.009 Resource Forking
- Domain
- enterprise
- Tactics
- Stealth
- Platforms
- macOS
- Version
- 2.0
- Created
- 2021-10-12
Description
Adversaries may abuse resource forks to hide malicious code or executables to evade detection and bypass security applications. A resource fork provides applications a structured way to store resources such as thumbnail images, menu definitions, icons, dialog boxes, and code. Usage of a resource fork is identifiable when displaying a file’s extended attributes, using ls -l@ or xattr -l commands. Resource forks have been deprecated and replaced with the application bundle structure. Non-localized resources are placed at the top level directory of an application bundle, while localized resources are placed in the /Resources folder.
Adversaries can use resource forks to hide malicious data that may otherwise be stored directly in files. Adversaries can execute content with an attached resource fork, at a specified offset, that is moved to an executable location then invoked. Resource fork content may also be obfuscated/encrypted until execution.
Related
Subtechnique of · MITRE ATT&CK (1)
- T1564 Hide Artifacts technique
Tactic · MITRE ATT&CK (1)
- TA0005 Stealth tactic
Referenced by MITRE ATT&CK · mitigates (1)
- M1013 Application Developer Guidance mitigation
Referenced by MITRE ATT&CK · uses (2)
Referenced by CAPEC · att&ck technique (1)
- CAPEC-35 Leverage Executable Code in Non-Executable Files attack pattern
Referenced by Compliance · mitigates (14)
- CIS-16.10 Apply Secure Design Principles in Application Architectures CIS Safeguard v8.1
- NIST-CM-11 User-installed Software NIST 800-53 control
- NIST-CM-2 Baseline Configuration NIST 800-53 control
- NIST-CM-6 Configuration Settings NIST 800-53 control
- NIST-CM-7 Least Functionality NIST 800-53 control
- NIST-SA-10 Developer Configuration Management NIST 800-53 control
- NIST-SC-4 Information in Shared System Resources NIST 800-53 control
- NIST-SC-44 Detonation Chambers NIST 800-53 control
- NIST-SC-6 Resource Availability NIST 800-53 control
- NIST-SI-10 Information Input Validation NIST 800-53 control
- NIST-SI-15 Information Output Filtering NIST 800-53 control
- NIST-SI-3 Malicious Code Protection NIST 800-53 control
- NIST-SI-4 System Monitoring NIST 800-53 control
- NIST-SI-7 Software, Firmware, and Information Integrity NIST 800-53 control
References
- https://blogs.vmware.com/security/2020/06/tau-threat-analysis-bundlore-macos-mm-install-macos.html tau bundlore erika noerenberg 2020
- https://flylib.com/books/en/4.395.1.192/1/ Resource and Data Forks
- https://eclecticlight.co/2020/10/24/theres-more-to-files-than-data-extended-attributes/ ELC Extended Attributes
- https://www.sentinelone.com/labs/resourceful-macos-malware-hides-in-named-fork/ sentinellabs resource named fork 2020
- http://tenon.com/products/codebuilder/User_Guide/6_File_Systems.html#anchor520553 macOS Hierarchical File System Overview