Execution command.\ttpforge.exe -c .\windowsttps\ttpforge-repo-config.yaml run .\windowsttps\ttps\T1543.003\ttplol.yml
Sample output
PS C:\Users\WDAGUtilityAccount> .\ttpforge.exe -c .\windowsttps\ttpforge-repo-config.yaml run .\windowsttps\ttps\T1543.003\ttplol.yml
←[34mINFO←[0m [*] Validating TTP
←[34mINFO←[0m [+] Finished validating steps
←[34mINFO←[0m RUNNING TTP: Loading Kernel Driver with sc.exe
←[34mINFO←[0m Executing Step #1: get-driver-from-loldrivers
←[34mINFO←[0m ========= Executing ==========
←[34mINFO←[0m ========= Result ==========
←[34mINFO←[0m Executing Step #2: load-driver
INFO [STDOUT] Windows PowerShell
INFO [STDOUT] Copyright (C) Microsoft Corporation. All rights reserved.
INFO [STDOUT]
INFO [STDOUT] Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
INFO [STDOUT]
INFO [STDOUT]
INFO [STDOUT] PS C:\Users\WDAGUtilityAccount\windowsttps\ttps\T1543.003>
INFO [STDOUT] #
INFO [STDOUT] pwd
INFO [STDOUT] PS C:\Users\WDAGUtilityAccount\windowsttps\ttps\T1543.003>
INFO [STDOUT] $
INFO [STDOUT] drivePath = Join-Path $PWD.Path "\bin\1f01257d9730f805b2a1d69099ef891d.bin"
INFO [STDOUT] PS C:\Users\WDAGUtilityAccount\windowsttps\ttps\T1543.003>
INFO [STDOUT] #
INFO [STDOUT] echo $drivePath
INFO [STDOUT] PS C:\Users\WDAGUtilityAccount\windowsttps\ttps\T1543.003>
INFO [STDOUT] i
INFO [STDOUT] f (-not (Get-Service -Name 1f01257d9730f805b2a1d69099ef891d -ErrorAction SilentlyContinue)) { sc.exe create 1f01257d9730f805b2a1d69099ef891d binPath= $drivePath type=kernel}
←[34mINFO←[0m [STDOUT] [SC] CreateService SUCCESS
INFO [STDOUT] PS C:\Users\WDAGUtilityAccount\windowsttps\ttps\T1543.003>
INFO [STDOUT] s
INFO [STDOUT] c.exe start 1f01257d9730f805b2a1d69099ef891d
←[34mINFO←[0m [STDOUT] [SC] StartService FAILED 1275:
←[34mINFO←[0m [STDOUT]
INFO [STDOUT] This driver has been blocked from loading
INFO [STDOUT]
INFO [STDOUT] PS C:\Users\WDAGUtilityAccount\windowsttps\ttps\T1543.003>
ERROR [*] Error executing TTP: exit status 1
INFO [*] Beginning Cleanup
Preferred Output
PS C:\Users\WDAGUtilityAccount> .\ttpforge.exe -c .\windowsttps\ttpforge-repo-config.yaml run .\windowsttps\ttps\T1543.003\ttplol.yml
←[34mINFO←[0m [*] Validating TTP
←[34mINFO←[0m [+] Finished validating steps
←[34mINFO←[0m RUNNING TTP: Loading Kernel Driver with sc.exe
←[34mINFO←[0m Executing Step #1: get-driver-from-loldrivers
←[34mINFO←[0m ========= Executing ==========
←[34mINFO←[0m ========= Result ==========
←[34mINFO←[0m Executing Step #2: load-driver
←[34mINFO←[0m [STDOUT] [SC] CreateService SUCCESS
←[34mINFO←[0m [STDOUT] [SC] StartService FAILED 1275:
INFO [STDOUT] This driver has been blocked from loading
ERROR [*] Error executing TTP: exit status 1
INFO [*] Beginning Cleanup
Drawbacks
A user may want to see the commands from the yaml file being run in PowerShell. Adding a debug feature would allow the user to retain that functionality.
Implementation PR
No response
Reference Issues
No response
Summary
Remove executed commands on Windows from standard out.
Basic Example
Example Draft TTP
Execution command
.\ttpforge.exe -c .\windowsttps\ttpforge-repo-config.yaml run .\windowsttps\ttps\T1543.003\ttplol.yml
Sample output
Preferred Output
Drawbacks
Unresolved questions
No response