mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2026-08-02 00:04:08 +02:00
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
---
|
|
Name: scp.exe
|
|
Description: Used for uploading or downloading files over SSH.
|
|
Author: BinFault
|
|
Created: 2026-06-03
|
|
Commands:
|
|
- Command: scp.exe -o ProxyCommand="{CMD}" . localhost:.
|
|
Description: Spawns specified command from `scp.exe` -> `ssh.exe`, even if no SSH server is running on localhost (or any other address specified).
|
|
Usecase: Proxy execution of specified command, can be used as a defensive evasion.
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1202
|
|
OperatingSystem: Windows 10, Windows 11
|
|
Tags:
|
|
- Execute: CMD
|
|
- Command: scp.exe -S "{CMD}" . localhost:.
|
|
Description: Spawns specified command from `scp.exe` -> `ssh.exe`, even if no SSH server is running on localhost (or any other address specified).
|
|
Usecase: Proxy execution of specified command, can be used as a defensive evasion.
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1202
|
|
OperatingSystem: Windows 10, Windows 11
|
|
Tags:
|
|
- Execute: CMD
|
|
Full_Path:
|
|
- Path: C:\Windows\System32\OpenSSH\scp.exe
|
|
Detection:
|
|
- IOC: "`scp.exe` executions referencing `ProxyCommand`."
|
|
Resources:
|
|
- Link: https://gtfobins.org/gtfobins/scp/
|
|
Acknowledgement:
|
|
- Person: BinFault
|
|
Handle: '@binfault'
|
|
- Person: 'Nir Chako (Pentera)'
|
|
Handle: '@C_h4ck_0'
|