macos community v1.0.0

log

Access system log messages from Apple Unified Logging (AUL).

📋 Live Preview
log
log

Sandbox: execFile · Timeout: 30s

Capabilities

security.defenseevasion.bypass
credential.dump

Examples

Remove all log messages: An attacker can cover up their tracks by removing all log messages using the following command. Requires root privileges.

log erase --all

Search log messages for tokens: An attacker can potentially search log messages and review if they do contain sensitive information like jwt tokens.

log show --info --debug --predicate 'eventMessage CONTAINS[d] "eyJ"'

Detection

TypeRule / Indicator
other No detections at time of publishing

Documentation

The log command can be used to access system log messages from Apple Unified Logging (AUL). The tool can be used to inspect existing logs, stream logs in realtime, and delete logs. This tool is normally used by system admins and application developers for troubleshooting purposes but can be used by an adversary to gain an understanding of the user's behavior or to cover up their tracks by deleting log messages.

References