Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 d8bcd9dcd784ea83…

MALICIOUS

Office (OOXML)

17.8 KB Created: 2017-10-13 17:14:00 UTC Authoring application: Microsoft Office Word 12.0000 First seen: 2020-11-12
MD5: b4c1bdc853129a69089496352b9c25cd SHA-1: ed370f58071976180cae2b6317325dfe57ab3133 SHA-256: d8bcd9dcd784ea83e60814246f9749a0b737ae7b92967e37f442197de3de234c
142 Risk Score

Heuristics 4

  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Shell (exec)
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
    exec = "powershell.exe Add-Content -path 'c:\users\public\testFile.txt' -value 'it is just a benign string' "
  • 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/markup-compatibility/2006 In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 823 bytes
SHA-256: 5d356f6f83c79259686e9254e94a1bebf33c5031f10c531611d0da0fa944408d
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_Control = "CommandButton1, 0, 0, MSForms, CommandButton"
Attribute VB_Control = "CommandButton2, 1, 1, MSForms, CommandButton"
Private Sub CommandButton1_Click()

MsgBox (Date)
Dim exec As String
exec = "powershell.exe Add-Content -path 'c:\users\public\testFile.txt' -value 'it is just a benign string' "
Shell (exec)
End Sub

Private Sub CommandButton11_Click()

End Sub

Private Sub CommandButton2_Click()
Dim p As Paragraph

For Each p In ActiveDocument.Paragraphs
  x = p.Range.Text
Next p
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 9728 bytes
SHA-256: 3d29690e74a2fef7e4f83760757ca4628471567941bc151cfe46db0502b7a58d