T06 · System Persistence
- Location
collectors/install.sh:123- Finding
Persistent LaunchAgent Executes the Full Collection Pipeline Every 15 Seconds
- Content
View full analysis
/dev/null | grep -q "palest-ink"; then warn "Removing old cron job..." crontab -l 2>/dev/null | grep -v "palest-ink" | crontab - fi if launchctl list | grep -q "$PLIST_LABEL" 2>/dev/null; then launchctl unload "$PLIST_PATH" 2>/dev/null || true fi cat > "$PLIST_PATH" << PLISTEOF Label ${PLIST_LABEL} ProgramArguments /bin/bash ${PALEST_INK_DIR}/bin/cron_collect.sh StartInterval 15 StandardOutPath ${PALEST_INK_DIR}/cron.log StandardErrorPath ${PALEST_INK_DIR}/cron.log RunAtLoad PLISTEOF launchctl load "$PLIST_PATH" ``` The persisted entry invokes the complete pipeline: ```bash timeout 5 python3 "$BIN_DIR/collect_app.py" 2>&1 || true python3 "$BIN_DIR/collect_chrome.py" 2>&1 || true python3 "$BIN_DIR/collect_safari.py" 2>&1 || true python3 "$BIN_DIR/collect_content.py" 2>&1 || true python3 "$BIN_DIR/collect_shell.py" 2>&1 || true python3 "$BIN_DIR/collect_vscode.py" 2>&1 || true python3 "$BIN_DIR/collect_git.py" 2>&1 || true timeout 15 python3 "$BIN_DIR/collect_fsevent.py" 2>&1 || true ``` ### Technical Analysis The installer registers a per-user LaunchAgent w ...[truncated 1761 chars]- Remediation
View remediation
