Skip to content

Siemphony is in beta and still being built. What ships today, and what does not.

Siemphony’s repertoire

Scheduled task registered to run a recurring file transfer

Siemphony@siemphonymediumT1029unverified
Catches the registration of a Windows scheduled task whose action is a file transfer utility and whose trigger repeats — minute, hourly, daily or an explicit repetition interval. AN1118 is about time-based regularity, and Sigma has no time-window or aggregation operator, so recurrence cannot be measured across events; what this rule can see is the moment the recurrence is *declared* on the command line, which is the only point in the chain where a single event carries both the schedule and the transfer. Coverage is therefore genuinely partial: a task created through the COM Task Scheduler API, an XML import, or an existing task repurposed to exfiltrate produces no schtasks command line and this rule stays silent. MITRE's TimeWindow, DestIPAllowlist and ParentProcessBaseline knobs all describe cross-event correlation and none of them can be expressed here. Requires process-creation telemetry with arguments — Sysmon EventID 1, or Security 4688 with both *Audit Process Creation* and the separate *Include command line in process creation events* policy, neither of which is on by default. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0399, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full description

The detection

The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.

detection.yml

Sentinel · KQL

Run this as a search.

DeviceProcessEvents| where (FolderPath endswith "\\schtasks.exe" and (ProcessCommandLine contains "-create" or ProcessCommandLine contains "/create" or ProcessCommandLine contains "–create" or ProcessCommandLine contains "—create" or ProcessCommandLine contains "―create") and (ProcessCommandLine contains "-sc minute" or ProcessCommandLine contains "/sc minute" or ProcessCommandLine contains "–sc minute" or ProcessCommandLine contains "—sc minute" or ProcessCommandLine contains "―sc minute" or ProcessCommandLine contains "-sc hourly" or ProcessCommandLine contains "/sc hourly" or ProcessCommandLine contains "–sc hourly" or ProcessCommandLine contains "—sc hourly" or ProcessCommandLine contains "―sc hourly" or ProcessCommandLine contains "-sc daily" or ProcessCommandLine contains "/sc daily" or ProcessCommandLine contains "–sc daily" or ProcessCommandLine contains "—sc daily" or ProcessCommandLine contains "―sc daily" or ProcessCommandLine contains "-ri " or ProcessCommandLine contains "/ri " or ProcessCommandLine contains "–ri " or ProcessCommandLine contains "—ri " or ProcessCommandLine contains "―ri ") and (ProcessCommandLine contains "curl" or ProcessCommandLine contains "wget" or ProcessCommandLine contains "bitsadmin" or ProcessCommandLine contains "certutil" or ProcessCommandLine contains "rclone" or ProcessCommandLine contains "winscp" or ProcessCommandLine contains "Invoke-WebRequest" or ProcessCommandLine contains "Invoke-RestMethod" or ProcessCommandLine contains "Start-BitsTransfer" or ProcessCommandLine contains "WebClient"))

Splunk · SPL

Run this as a search.

index=* (Image="*\\schtasks.exe" AND (CommandLine="*-create*" OR CommandLine="*/create*" OR CommandLine="*–create*" OR CommandLine="*—create*" OR CommandLine="*―create*") AND (CommandLine="*-sc minute*" OR CommandLine="*/sc minute*" OR CommandLine="*–sc minute*" OR CommandLine="*—sc minute*" OR CommandLine="*―sc minute*" OR CommandLine="*-sc hourly*" OR CommandLine="*/sc hourly*" OR CommandLine="*–sc hourly*" OR CommandLine="*—sc hourly*" OR CommandLine="*―sc hourly*" OR CommandLine="*-sc daily*" OR CommandLine="*/sc daily*" OR CommandLine="*–sc daily*" OR CommandLine="*—sc daily*" OR CommandLine="*―sc daily*" OR CommandLine="*-ri *" OR CommandLine="*/ri *" OR CommandLine="*–ri *" OR CommandLine="*—ri *" OR CommandLine="*―ri *") AND (CommandLine="*curl*" OR CommandLine="*wget*" OR CommandLine="*bitsadmin*" OR CommandLine="*certutil*" OR CommandLine="*rclone*" OR CommandLine="*winscp*" OR CommandLine="*Invoke-WebRequest*" OR CommandLine="*Invoke-RestMethod*" OR CommandLine="*Start-BitsTransfer*" OR CommandLine="*WebClient*"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (TO_LOWER(process.executable) LIKE "*\\\\schtasks.exe" AND (TO_LOWER(process.command_line) LIKE "*-create*" OR TO_LOWER(process.command_line) LIKE "*/create*" OR TO_LOWER(process.command_line) LIKE "*–create*" OR TO_LOWER(process.command_line) LIKE "*—create*" OR TO_LOWER(process.command_line) LIKE "*―create*") AND (TO_LOWER(process.command_line) LIKE "*-sc minute*" OR TO_LOWER(process.command_line) LIKE "*/sc minute*" OR TO_LOWER(process.command_line) LIKE "*–sc minute*" OR TO_LOWER(process.command_line) LIKE "*—sc minute*" OR TO_LOWER(process.command_line) LIKE "*―sc minute*" OR TO_LOWER(process.command_line) LIKE "*-sc hourly*" OR TO_LOWER(process.command_line) LIKE "*/sc hourly*" OR TO_LOWER(process.command_line) LIKE "*–sc hourly*" OR TO_LOWER(process.command_line) LIKE "*—sc hourly*" OR TO_LOWER(process.command_line) LIKE "*―sc hourly*" OR TO_LOWER(process.command_line) LIKE "*-sc daily*" OR TO_LOWER(process.command_line) LIKE "*/sc daily*" OR TO_LOWER(process.command_line) LIKE "*–sc daily*" OR TO_LOWER(process.command_line) LIKE "*—sc daily*" OR TO_LOWER(process.command_line) LIKE "*―sc daily*" OR TO_LOWER(process.command_line) LIKE "*-ri *" OR TO_LOWER(process.command_line) LIKE "*/ri *" OR TO_LOWER(process.command_line) LIKE "*–ri *" OR TO_LOWER(process.command_line) LIKE "*—ri *" OR TO_LOWER(process.command_line) LIKE "*―ri *") AND (TO_LOWER(process.command_line) LIKE "*curl*" OR TO_LOWER(process.command_line) LIKE "*wget*" OR TO_LOWER(process.command_line) LIKE "*bitsadmin*" OR TO_LOWER(process.command_line) LIKE "*certutil*" OR TO_LOWER(process.command_line) LIKE "*rclone*" OR TO_LOWER(process.command_line) LIKE "*winscp*" OR TO_LOWER(process.command_line) LIKE "*invoke-webrequest*" OR TO_LOWER(process.command_line) LIKE "*invoke-restmethod*" OR TO_LOWER(process.command_line) LIKE "*start-bitstransfer*" OR TO_LOWER(process.command_line) LIKE "*webclient*"))

Wazuh · XML rule

Deploy to your manager — this is a rule, not a search.

<group name="sigma,windows,process_creation,">  <!-- Rule ids must be unique on your manager; 100000+ is the user range. -->  <rule id="100000" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)\\schtasks\.exe$</field>    <field name="CommandLine" type="pcre2">(?i)(-create|/create|–create|—create|―create)</field>    <field name="CommandLine" type="pcre2">(?i)(-sc minute|/sc minute|–sc minute|—sc minute|―sc minute|-sc hourly|/sc hourly|–sc hourly|—sc hourly|―sc hourly|-sc daily|/sc daily|–sc daily|—sc daily|―sc daily|-ri |/ri |–ri |—ri |―ri )</field>    <field name="CommandLine" type="pcre2">(?i)(curl|wget|bitsadmin|certutil|rclone|winscp|Invoke-WebRequest|Invoke-RestMethod|Start-BitsTransfer|WebClient)</field>    <description>Scheduled task registered to run a recurring file transfer</description>    <mitre>      <id>T1029</id>    </mitre>  </rule></group>

Verdicts · reactions · comments

Community

Verdicts from engineers who actually deployed it, and the conversation around it.

Log in to react
Not yet reported on

Nobody has run this in a real environment and said what happened.

Verdicts from engineers who deployed it

0 cast

No verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.

Log in to report a verdict.

Log in to join the discussion.

No comments yet. Someone who deploys this will have something to say about it.