T06 · System Persistence
- Location
references/setup-guide.md:91- Finding
User-Level Persistent Execution Through Cron and macOS LaunchAgent
- Content
View full analysis
/dev/null && \ python3 scripts/check_certs.py --config assets/services.json --output /tmp/cert_check.json 2>/dev/null && \ python3 scripts/history.py --append /tmp/status_check.json --db assets/history.json 2>/dev/null && \ python3 scripts/generate_page.py --services /tmp/status_check.json --certs /tmp/cert_check.json --history assets/history.json --title "My Status" --output /var/www/html/status.html 2>/dev/null ``` ``` `references/setup-guide.md:109-132`: ```text ### macOS LaunchAgent Alternatively, use a macOS LaunchAgent for more reliable scheduling. Create `~/Library/LaunchAgents/com.statuspage.check.plist`: ```xml Labelcom.statuspage.ch ...[truncated 4131 chars]- Remediation
View remediation
/dev/null`. Send output to a user-owned log file and implement basic log rotation. 7. Ensure the Skill directory and scheduled scripts are writable only by the owning user. Users should verify ownership and permissions before enabling recurring execution. 8. Avoid recommending a privileged web root as the default output location. Prefer a user-owned directory and configure the web server to serve or copy from it through a narrowly scoped mechanism. 9. Pin the scheduled task to a reviewed installation location and advise users to disable the scheduler before upgrading or replacing the Skill. 10. Add validation or integrity checking for scripts used by the scheduled job where the deployment threat model warrants it. ]]>
