Overview
The Modifiable Scheduled Task check identifies Windows scheduled tasks where either the task definition file or the binary executed by the task has weak permissions. This allows privilege escalation by modifying the task to execute malicious code with elevated privileges.How It Works
SharpUp examines scheduled tasks in%SystemRoot%\System32\Tasks:
- Checks if task XML file is writable
- Parses XML to find the command/binary to be executed
- Checks if the binary is writable
- Reports tasks where either file can be modified
Technical Details
Scheduled tasks run with configured privileges (often SYSTEM). If you can modify either:- The task XML file
- The executable the task runs
Example Output
Exploitation
Method 1: Replace Binary
Method 2: Modify Task XML
Remediation
1
Secure Task Files
2
Secure Task Binaries
Apply proper permissions to executables used by scheduled tasks.