AN0306
Analytic 0306
macOS
Monitor for unexpected modifications of plist files in persistence or configuration directories (e.g., ~/Library/LaunchAgents, ~/Library/Preferences, /Library/LaunchDaemons). Detect when modifications are followed by execution of new or unexpected binaries. Track use of utilities such as defaults, plutil, or text editors making changes to Info.plist files. Correlate file modifications with subsequent process launches or service starts that reference the altered plist.
macos:unifiedlog
write: File modifications to *.plist within LaunchAgents, LaunchDaemons, Application Support, or Preferences directories
macos:unifiedlog
exec: Execution of defaults, plutil, or common editors (vim/nano) targeting plist files
macos:unifiedlog
exec: Invocation of /usr/bin/defaults write or /usr/bin/plutil modifying plist keys
[MonitoredDirectories]
Set of directories where plist modifications are considered suspicious (e.g., ~/Library/LaunchAgents, /Library/LaunchDaemons)
[SuspiciousKeys]
List of plist keys associated with evasion or persistence (e.g., LSUIElement, LSEnvironment, ProgramArguments)
[TimeWindow]
Temporal correlation window to link plist file modifications with subsequent suspicious process launches