Remote ITaskSchedulerService RPC Create/Execute Scheduled Tasks Used for Lateral Movement

Detects RPC Firewall alerts for remote ITaskSchedulerService calls that create or execute scheduled tasks.

FreeReviewedSigma · High · v5
Product
rpc_firewall
Category
application
Author
Sagie Dulce, Dekel Paz (SigmaHQ), DRL 1.1
Published
2022-01-01
Updated
2026-07-31
title: Remote ITaskSchedulerService RPC Create/Execute Scheduled Tasks Used for Lateral Movement
id: a50f0776-2399-408e-ae22-5bc94a8be9d9
status: test
description: This rule identifies RPCFW EventLog entries indicating remote RPC activity against the ITaskSchedulerService interface when specific operation numbers occur. Creating or triggering scheduled tasks over remote RPC can be used to execute payloads on other hosts as part of lateral movement and persistence. Detection relies on RPC Firewall telemetry (EventLog=RPCFW) including EventID, interface UUID, and matched OpNum values.
references:
  - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-tsch/d1058a28-7e02-4948-8b8d-4a347fa64931
  - https://github.com/jsecurity101/MSRPC-to-ATTACK/blob/ddd4608fe8684fcf2fcf9b48c5f0b3c28097f8a3/documents/MS-TSCH.md
  - https://github.com/zeronetworks/rpcfirewall
  - https://zeronetworks.com/blog/stopping-lateral-movement-via-the-rpc-firewall/
  - https://github.com/SigmaHQ/sigma/blob/master/rules/application/rpc_firewall/rpc_firewall_itaskschedulerservice_lateral_movement.yml
author: Sagie Dulce, Dekel Paz, Huntrule Team
date: 2022-01-01
tags:
  - attack.privilege-escalation
  - attack.persistence
  - attack.execution
  - attack.lateral-movement
  - attack.t1053
  - attack.t1053.002
logsource:
  product: rpc_firewall
  category: application
  definition: 'Requirements: install and apply the RPC Firewall to all processes with "audit:true action:block uuid:86d35949-83c9-4044-b424-db363231fd0c"'
detection:
  selection:
    EventLog: RPCFW
    EventID: 3
    InterfaceUuid: 86d35949-83c9-4044-b424-db363231fd0c
    OpNum:
      - 1
      - 3
      - 4
      - 10
      - 11
      - 12
      - 13
      - 14
      - 15
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1
related:
  - id: ace3ff54-e7fd-46bd-8ea0-74b49a0aca1d
    type: derived