跳转至

Launchctl

对手可能会滥用 launchctl 执行命令或程序。Launchctl 与 launchd 交互,这是 macOS 的服务管理框架。Launchctl 支持在命令行上、交互式或甚至从标准输入重定向时接受子命令。(引用: Launchctl Man) 对手使用 launchctl 作为启动代理启动守护程序执行命令和程序。常见的子命令包括:launchctl loadlaunchctl unloadlaunchctl start。对手可以使用脚本或手动运行命令 launchctl load -w "%s/Library/LaunchAgents/%s"/bin/launchctl load 来执行启动代理启动守护程序。(引用: Sofacy Komplex Trojan)(引用: 20 macOS Common Tools and Techniques)