Huntress · Vendor blog
Threat Actors Achieve Persistence After SQL Injection
Published · Source: Huntress
Entities & attribution
Artifact
sqlservr.exe
“…ious activity via a Microsoft SQL Server (MSSQL) instance ( sqlservr.exe ). Digging deeper into the investigation, Huntress analysts…”
Page 1 · Paragraph 23
Artifact
appcmd.exe
“The threat actor used appcmd.exe to install some of the known BadIIS modules ( HttpFastCgiMo…”
Page 1 · Paragraph 30
Artifact
httpfastcgimodule.dll
“…ed appcmd.exe to install some of the known BadIIS modules ( HttpFastCgiModule.dll and HttpCgiModule.dll ), shown in Figure 1.”
Page 1 · Paragraph 30
Artifact
httpcgimodule.dll
“…ome of the known BadIIS modules ( HttpFastCgiModule.dll and HttpCgiModule.dll ), shown in Figure 1.”
Page 1 · Paragraph 30
Artifact
attrib.exe
“The threat actor also went on to use attrib.exe to set attributes on several files associated with the cryp…”
Page 1 · Paragraph 36
Artifact
edge.exe
“…read-only". Those two files with modified characteristics ( edge.exe and Taskgmr.ps1 ) were sitting in C:\Program Files (x86)\Mi…”
Page 1 · Paragraph 36
Artifact
taskgmr.ps1
“…hose two files with modified characteristics ( edge.exe and Taskgmr.ps1 ) were sitting in C:\Program Files (x86)\Microsoft\EdgeUpda…”
Page 1 · Paragraph 36
Artifact
nssm.exe
“…then created persistence for the cryptocurrency miner using nssm.exe , the " non-sucking service manager ", a freely available u…”
Page 1 · Paragraph 37
Artifact
cmd.exe
“…start of the detected activity, we saw the SQL server spawn cmd.exe in order to download a PowerShell script qdcjoke1.2.ps1 to …”
Page 1 · Paragraph 42
Artifact
2.ps1
“…n cmd.exe in order to download a PowerShell script qdcjoke1.2.ps1 to the victim organization's shared user profile directory …”
Page 1 · Paragraph 42
Artifact
powershell.exe
“C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass…”
Page 1 · Paragraph 44
MITRE ATT&CK behaviors
T1055 · Process Injection
Privilege Escalation · Process injection
“Threat Actors Achieve Persistence After SQL Injection | Huntress”
Page 1 · Paragraph 1
T1059.001 · PowerShell
Execution · PowerShell execution
“Through this avenue, the threat actor used base64-encoded PowerShell to download various scripts, which we will delve into later…”
Page 1 · Paragraph 25
T1574.002 · DLL Side-Loading
Defense Evasion · DLL sideloading
“…install some of the known BadIIS modules ( HttpFastCgiModule.dll and HttpCgiModule.dll ), shown in Figure 1.”
Page 1 · Paragraph 30
Indicators of compromise
domain
334thribetlhkyo977gqrcht1k7bvdj2.oastify[.]com“…a PowerShell command to send the output of tasklist /svc to 334thribetlhkyo977gqrcht1k7bvdj2[.]oastify[.]com , as seen in the following decoded command:”
Page 1 · Paragraph 26
filepath
C:\Program“…haracteristics ( edge.exe and Taskgmr.ps1 ) were sitting in C:\Program Files (x86)\Microsoft\EdgeUpdate\ . By tweaking these attri…”
Page 1 · Paragraph 36
md5
c4c8e8c336c3429d97195076bf3bb6eb“…ry ( C:\users\public\ ). The script was downloaded from pub-c4c8e8c336c3429d97195076bf3bb6eb.r2[.]dev and downloaded several additional payloads (includ…”
Page 1 · Paragraph 42
filepath
C:\users\public“…o the victim organization's shared user profile directory ( C:\users\public\ ). The script was downloaded from pub-c4c8e8c336c3429d9719…”
Page 1 · Paragraph 42
filepath
C:\windows\System32\WindowsPowerShell\v1.0\powershell[.]exe“C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass…”
Page 1 · Paragraph 44
filepath
C:\ProgramData\tjoke\qd_tjoke[.]bat“…ypass -WindowStyle Hidden -Command Start-Process -FilePath 'C:\ProgramData\tjoke\qd_tjoke.bat' -WindowStyle Hidden”
Page 1 · Paragraph 44
Claims & evidence
Reported Claim
Threat Actors Achieve Persistence After SQL Injection exhibits Process injection (T1055)
“Threat Actors Achieve Persistence After SQL Injection | Huntress”
Page 1 · Paragraph 1
Reported Claim
Threat Actors Achieve Persistence After SQL Injection exhibits PowerShell execution (T1059.001)
“Through this avenue, the threat actor used base64-encoded PowerShell to download various scripts, which we will delve into later…”
Page 1 · Paragraph 25
Reported Claim
Threat Actors Achieve Persistence After SQL Injection exhibits DLL sideloading (T1574.002)
“…install some of the known BadIIS modules ( HttpFastCgiModule.dll and HttpCgiModule.dll ), shown in Figure 1.”
Page 1 · Paragraph 30
Inferred Relationship
Process injection precedes PowerShell execution
“Through this avenue, the threat actor used base64-encoded PowerShell to download various scripts, which we will delve into later…”
Page 1 · Paragraph 25
Inferred Relationship
PowerShell execution precedes DLL sideloading
“…install some of the known BadIIS modules ( HttpFastCgiModule.dll and HttpCgiModule.dll ), shown in Figure 1.”
Page 1 · Paragraph 30
Reported Claim
334thribetlhkyo977gqrcht1k7bvdj2.oastify.com used as network infrastructure
“…a PowerShell command to send the output of tasklist /svc to 334thribetlhkyo977gqrcht1k7bvdj2[.]oastify[.]com , as seen in the following decoded command:”
Page 1 · Paragraph 26
Lore Hypothesis
Investigation hypothesizes A loader sideloaded via a signed binary stages an in-memory implant
“Threat Actors Achieve Persistence After SQL Injection | Huntress”
Page 1 · Paragraph 1