windows enabled community high v1.0.0

vstest-console

VSTest.Console.exe is the command-line tool to run tests Located at: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe; C:\Program Files (x86)\Microsoft Visual Studio\2022\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe.

📋 Live Preview
vstest-console
vstest-console

Sandbox: execFile · Timeout: 30s

Capabilities

security.defense-evasion.bypass

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networklow
Disk I/Olow

Examples

VSTest functionality may allow an adversary to executes their malware by wrapping it as a test method then build it to a .exe or .dll file to be later run by vstest.console.exe. This may both allow AWL bypass or defense bypass in general (Proxy Execution and AWL bypass, Adversaries may run malicious code embedded inside the test methods of crafted dll/exe)

vstest.console.exe {PATH:.dll}

Detection

TypeRule / Indicator
ioc vstest.console.exe spawning unexpected processes

Documentation

vstest-console

vstest-console is a Windows LOLBin. VSTest.Console.exe is the command-line tool to run tests Located at: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe; C:\Program Files (x86)\Microsoft Visual Studio\2022\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe.

References