2020-01-23 09:07:40 +01:00
|
|
|
---
|
|
|
|
Name: Netsh.exe
|
|
|
|
Description: Netsh is a Windows tool used to manipulate network interface settings.
|
|
|
|
Author: 'Freddie Barr-Smith'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2019-12-24
|
2020-01-23 09:07:40 +01:00
|
|
|
Commands:
|
|
|
|
- Command: netsh.exe add helper C:\Users\User\file.dll
|
|
|
|
Description: Use Netsh in order to execute a .dll file and also gain persistence, every time the netsh command is called
|
|
|
|
Usecase: Proxy execution of .dll
|
|
|
|
Category: Execute
|
2021-12-14 17:50:22 +01:00
|
|
|
Privileges: Admin
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1546.007
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2020-01-23 09:07:40 +01:00
|
|
|
Full_Path:
|
|
|
|
- Path: C:\WINDOWS\System32\Netsh.exe
|
|
|
|
- Path: C:\WINDOWS\SysWOW64\Netsh.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2020-01-23 09:07:40 +01:00
|
|
|
- Code:
|
|
|
|
Detection:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/0a410010a2655bc6f2aae73b9fb3b2c00ed589f7/rules/windows/process_creation/win_susp_netsh_dll_persistence.yml
|
|
|
|
- Splunk: https://github.com/splunk/security_content/blob/2b87b26bdc2a84b65b1355ffbd5174bdbdb1879c/detections/endpoint/processes_launching_netsh.yml
|
|
|
|
- Splunk: https://github.com/splunk/security_content/blob/08ed88bd88259c03c771c30170d2934ed0a8f878/detections/deprecated/processes_created_by_netsh.yml
|
2020-01-23 09:07:40 +01:00
|
|
|
- IOC: Netsh initiating a network connection
|
|
|
|
Resources:
|
|
|
|
- Link: https://freddiebarrsmith.com/trix/trix.html
|
|
|
|
- Link: https://htmlpreview.github.io/?https://github.com/MatthewDemaske/blogbackup/blob/master/netshell.html
|
|
|
|
- Link: https://liberty-shell.com/sec/2018/07/28/netshlep/
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: 'Freddie Barr-Smith'
|
|
|
|
Handle:
|
|
|
|
- Person: 'Riccardo Spolaor'
|
|
|
|
Handle:
|
|
|
|
- Person: 'Mariano Graziano'
|
|
|
|
Handle:
|
|
|
|
- Person: 'Xabier Ugarte-Pedrero'
|
|
|
|
Handle:
|