Skip to content

Extended Attributes

Evidence: Extended Attributes
Description: Collect Extended File Attributes
Category: DiskFilesystem
Platform: macos
Short Name: extattr
Is Parsed: Yes
Sent to Investigation Hub: Yes
Collect File(s): No

Extended attributes (xattr) are name-value pairs associated with files and directories that store additional metadata beyond standard file attributes. On macOS, these attributes are extensively used to track file quarantine status, download sources, Finder information, and DMG file metadata. This data is essential for understanding file provenance, detecting suspicious downloads, and investigating file-based incidents.

This collector gathers structured data about extended attributes.

FieldDescriptionExample
PathPathExample value
AttributeNameAttribute NameExample value
AttributeValueAttribute ValueExample value
AttributeSizeAttribute Size123
AttributeValueHexAttribute Value HexExample value
FileExistsFile Existstrue
FileSizeFile Size123
FileModificationTimeFile Modification Time2023-10-15 14:30:25+03:00
QuarantineFlagsQuarantine FlagsExample value
QuarantineAgentQuarantine AgentExample value
QuarantineTimestampQuarantine Timestamp2023-10-15 14:30:25+03:00
QuarantineUUIDQuarantine UUIDExample value
WhereFromsURLsWhere Froms UR LsExample value
FinderInfoHexFinder Info HexExample value
DMGChecksumTypeDMG Checksum TypeExample value
DMGChecksumDMG ChecksumExample value
DMGChecksumTimestampDMG Checksum Timestamp2023-10-15 14:30:25+03:00

This collector recursively scans configurable directories (default: /Users, /Applications) and uses the xattr package to retrieve all extended attributes for each file. It parses common macOS-specific attributes including quarantine information, download sources (kMDItemWhereFroms), Finder metadata, and DMG checksums. Results are stored in the extended_attributes table with both raw and parsed attribute values.

This evidence is crucial for forensic investigations as it reveals file download history, quarantine status, source URLs, and file handling metadata. It helps identify potentially malicious downloaded files, trace the origin of files, detect quarantine bypass attempts, and understand file interactions with system features like Gatekeeper.