Sigma rule: Use Of The SFTP.EXE Binary As A LOLBIN
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-469ca5d3ca7a, updated 2022-11-10T00:00:00.000Z.
Rule
- Title
- Use Of The SFTP.EXE Binary As A LOLBIN
- Status
- test
- Level
- medium
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2022-11-10
- File
- rules/windows/process_creation/proc_creation_win_lolbin_sftp.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the usage of the "sftp.exe" binary as a LOLBIN by abusing the "-D" flag
Log source
- product
- windows
- category
- process_creation
Detection
selection:
Image|endswith: '\sftp.exe' # The "sftp.exe" located in the OpenSSH directory has no OriginalFileName :(
CommandLine|contains:
# Since "-D" is a valid flag for other usage we assume the user is going to enter a path
# Either a full one like "C:\Windows\System32\calc.exe" or a relative one "..\..\..\Windows\System32\calc.exe"
# In my testing you can't execute direct binaries by their name via this method (if you found a way please update the rule)
- ' -D ..'
- ' -D C:\'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.execution
- attack.stealth
- attack.t1218
MITRE ATT&CK ids this rule names
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_lolbin_sftp.yml
Sources and licences
SigmaHQ
"Use Of The SFTP.EXE Binary As A LOLBIN" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_lolbin_sftp.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Use Of The SFTP.EXE Binary As A LOLBIN",
entity page, dataset version ref-469ca5d3ca7a, updated 2022-11-10T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/a85ffc3a-e8fd-4040-93bf-78aff284d801 (accessed 2026-11-03).
Underlying source: SigmaHQ rule a85ffc3a-e8fd-4040-93bf-78aff284d801, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.