Windows: Detect ftp.exe Executed With -s or /s for Script-Based Command Execution

Flags Windows executions of ftp.exe using -s or /s, indicating potential scripted command abuse.

FreeReviewedSigma · Medium · v2
Product
windows
Category
process_creation
Author
Victor Sergeev, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-09
Updated
2026-07-31

ATT&CK techniques

Execution → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags cases where ftp.exe is launched as a process and indicates potential script-driven execution via the -s or /s command-line flag. Attackers can use ftp.exe to run scripted actions that may launch additional processes, so correlating ftp.exe activity with child processes increases confidence. The detection relies on Windows process creation telemetry, matching parent image details and child process command-line and image/filename indicators related to ftp.exe.

Related detections9 linkedT1059 — drag to rearrange
Windows Execution of Renamed NirCmd.exe (nircmd.exe/nircmdc.exe) via PE OriginalFileName
Windows: Detect renamed PingCastle binary execution via PE metadata and scanner command-line
Windows Process Creation: Execution of Renamed curl.exe via PE Metadata
Windows Renamed ftp.exe Execution via OriginalFileName PE Metadata
Windows: Detect Runscripthelper.exe executing PowerShell scripts with 'surfacecheck'
Windows Process Creation: Outlook EnableUnsafeClientMailRules Security Setting Enabled
AutoIt Script Execution via A3X Payload
Suspicious Python Execution via Renamed Synaptics Binary
MSBuild Executing Non-Project File or Remote Payload
Windows: Detect ftp.exe Executed With -s or /s for Script-Based Command Execution
Pivot detection · T1059 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.