Skip to main content

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:
  1. Checks if task XML file is writable
  2. Parses XML to find the command/binary to be executed
  3. Checks if the binary is writable
  4. 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
You can execute arbitrary code with those privileges.

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.

Modifiable Services

Check for modifiable services

Registry Autoruns

Find modifiable autorun entries