Extended Attributes - T1564.014
Definition
Adversaries may abuse extended attributes (xattrs) on macOS and Linux to hide their malicious data in order to evade detection. Extended attributes are key-value pairs of file and directory metadata used by both macOS and Linux. They are not visible through standard tools like Finder
, ls
, or cat
and require utilities such as xattr
(macOS) or getfattr
(Linux) for inspection. Operating systems and applications use xattrs for tagging, integrity checks, and access control. On Linux, xattrs are organized into namespaces such as user.
(user permissions), trusted.
(root permissions), security.
, and system.
, each with specific permissions. On macOS, xattrs are flat strings without namespace prefixes, commonly prefixed with com.apple.*
(e.g., com.apple.quarantine
, com.apple.metadata:_kMDItemUserTags
) and used by system features like Gatekeeper and Spotlight.
D3FEND Inferred Relationships
There are no digital artifacts defined on this offensive technique (yet). Please consider contributing an addition to D3FEND.