macos community v1.0.0

xattr

Display and manipulate extended attributes.

📋 Live Preview
xattr
xattr

Sandbox: execFile · Timeout: 30s

Capabilities

security.execution.command
security.defenseevasion.bypass

Examples

Bypass Gatekeeper via xattr: Use xattr to remove quarantine extended attribute from a file.

xattr -d com.apple.quarantine FILE

Bypass Gatekeeper via xattr: Use xattr to remove quarantine extended attribute from multiple files or directories.

xattr -d -r com.apple.quarantine *

Detection

Documentation

The xattr command can be used to display, modify or remove the extended attributes of one or more files, including directories and symbolic links. Extended attributes are arbitrary metadata stored with a file, but separate from the filesystem attributes (such as modification time or file size). The metadata is often a null-terminated UTF-8 string, but can also be arbitrary binary data. xattr can be used to bypass Gatekeeper.

References