Prevent the system from sleeping on behalf of a utility.
caffeinate caffeinate Sandbox: execFile · Timeout: 30s
security.execution.command security.defenseevasion.bypass Fork a process: Make caffeinate fork a process and hold an assertion that prevents idle sleep as long as that process is running
caffeinate -i /tmp/evil Prevent a sleep: Prevent a macOS from going to sleep for 4 hours (14400 seconds)
caffeinate -u -t 14400 | Type | Rule / Indicator |
|---|---|
| other | No detections at time of publishing |
caffeinate creates assertions to alter system sleep behavior. If no assertion flags are specified, caffeinate creates an assertion to prevent idle sleep. If a utility is specified, caffeinate creates the assertions on the utility's behalf, and those assertions will persist for the duration of the utility's execution. Otherwise, caffeinate creates the assertions directly, and those assertions will persist until caffeinate exits.