Dxcap.exe
DirectX diagnostics/debugger included with Visual Studio.
Full path
C:\Windows\System32\dxcap.exe
C:\Windows\SysWOW64\dxcap.exeCommands
Local execution of a process as a subprocess of dxcap.exe
Dxcap.exe -c {PATH_ABSOLUTE:.exe}Launch specified executable as a subprocess of dxcap.exe. Note that you should have write permissions in the current working directory for the command to succeed; alternatively, add ‘-file c:\path\to\writable\location.ext’ as first argument.
os: Windows
Execute an arbitrary executable via trusted system executable.
dxcap.exe -usageOnce executed,
dxcap.exewill executexperf.exein the same folder. Thus, ifdxcap.exeis copied to a folder and an arbitrary executable is renamed toxperf.exe,dxcap.exewill spawn it.os: Windows 10, Windows 11
Detection
- Sigma https://github.com/SigmaHQ/sigma/blob/683b63f8184b93c9564c4310d10c571cbe367e1e/rules/windows/process_creation/proc_creation_win_lolbin_susp_dxcap.yml
- IOCdxcap.exe executing from outside of System32/SysWOW64
- IOCdxcap.exe spawning Xperf.exe
- IOCXperf.exe executing from unusual directories (if not running from ADK path)
Code samples
Resources
acknowledgement: Matt harr0ey @harr0ey, Vikas Singh @vikas891, Naor Evgi @ghosts621