scheduler
Audited by Socket on Sep 18, 2026
3 alerts found:
Securityx3The code is a scheduling helper that creates a persistent per-user launchd agent and intentionally executes a caller-supplied shell command. It does not show clear malicious behavior or data theft. It contains meaningful security risks: unsafe shell construction for WORK_DIR, lack of TASK_ID validation causing possible path traversal and XML corruption, and deliberate persistence with arbitrary command execution. Inputs should be restricted to trusted users, TASK_ID should be strictly validated and XML-escaped, and the command should be passed without shell interpolation where possible.
The code is a transparent scheduled-task setup utility rather than apparent malware. Its central behavior is security-sensitive: it installs persistence and executes an arbitrary caller-provided command through cmd.exe. Untrusted users must not be allowed to invoke it, and command, path, and task-name validation should be added. No evidence of data theft, obfuscation, backdoors, or hidden network activity is present.
This is a cron scheduling helper that intentionally installs persistent scheduled execution. It is not demonstrably malware, but it has significant input-injection and crontab-integrity risks because multiple arguments are inserted without validation or escaping. It should only be used with trusted inputs and reviewed before deployment.