T06 · System Persistence
- Location
SETUP.md:190- Finding
Persistent Mail Daemon Registered as a Login LaunchAgent
- Content
View full analysis
~/Library/LaunchAgents/com.cocoanetics.postd.plist <<'EOF' Label com.cocoanetics.postd ProgramArguments /opt/homebrew/bin/postd start --foreground RunAtLoad KeepAlive StandardErrorPath /tmp/postd.log EOF launchctl load ~/Library/LaunchAgents/com.cocoanetics.postd.plist ``` The service is also reloaded during the documented restart procedure at `SETUP.md:241`. ### Technical Analysis The setup instructions create and load a macOS LaunchAgent with both `RunAtLoad` and `KeepAlive` enabled. Consequently, `postd` starts whenever the user logs in and is relaunched after termination. Persistent execution is reasonably related to the optional IMAP IDLE functionality declared by the Skill. However, it is not required for ordinary on-demand operations such as searching, fetching, drafting, or organizing email. Enabling it expands the security boundary from a single command invocation to continuous, cross-session access to configured mail accounts. The daemon can also invoke user-configured hook commands when messages arrive. A compromised daemon binary, configuration file, API token, or hook therefore gains a persistent execution opportunity. Writing logs to the predictable shared path `/tmp/postd.log` may additionally expose mail-related diagnostics or permit local log-path interference, depending on how the daemon opens the file. ### Attack Path 1. The user fol ...[truncated 1208 chars]- Remediation
View remediation
