T06 · System Persistence
- Location
scripts/create-live-nudges-service.py:10- Finding
Persistent LaunchAgent Executes an External Mutable Script
- Content
View full analysis
Label com.ranger.live-nudges ProgramArguments /Library/Frameworks/Python.framework/Versions/3.12/bin/python3 /Users/stephendobbins/.config/ranger/scripts/pulse_os_full.py nudges WorkingDirectory /Users/stephendobbins/.config/ranger/scripts StartInterval 900 StandardOutPath /tmp/live_nudges.log StandardErrorPath /tmp/live_nudges.err EnvironmentVariables PATH /opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin ''' def create_service(): """Create LaunchD service plist for live nudges""" launch_agents_dir = Path.home() / "Library" / "LaunchAgents" launch_agents_dir.mkdir(exist_ok=True) plist_file = launch_agents_dir / "com.ranger.live-nudges.plist" with open(plist_file, 'w') as f: f.write(PLIST_CONTENT) print(f"✅ Created {plist_file}") print("\nTo activate:") print(f"launchctl load {plist_file}") ``` Related instructions load additional persistent services: ```bash launchctl load /Users/stephendobbins/Library/LaunchAgents/com.ranger.margin ...[truncated 2325 chars]- Remediation
View remediation
