{"id":220700,"date":"2020-04-14T10:01:38","date_gmt":"2020-04-14T08:01:38","guid":{"rendered":"https:\/\/www.intrinsec.com\/?p=220700"},"modified":"2020-04-14T10:01:38","modified_gmt":"2020-04-14T08:01:38","slug":"deobfuscating-hunting-ostap","status":"publish","type":"post","link":"https:\/\/www.intrinsec.com\/en\/deobfuscating-hunting-ostap\/","title":{"rendered":"Deobfuscating and hunting for OSTAP, Trickbot&#039;s dropper and best friend"},"content":{"rendered":"<p>[et_pb_section fb_built=\u00a0\u00bb1&Prime; admin_label=\u00a0\u00bbsection\u00a0\u00bb _builder_version=\u00a0\u00bb3.22&Prime;][et_pb_row admin_label=\u00a0\u00bbrow\u00a0\u00bb _builder_version=\u00a0\u00bb3.25&Prime; background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb custom_margin=\u00a0\u00bb|auto|-2px|auto||\u00a0\u00bb][et_pb_column type=\u00a0\u00bb4_4&Prime; _builder_version=\u00a0\u00bb3.25&Prime; custom_padding=\u00a0\u00bb|||\u00a0\u00bb custom_padding__hover=\u00a0\u00bb|||\u00a0\u00bb][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_font_size=\u00a0\u00bb16px\u00a0\u00bb header_2_font=\u00a0\u00bbPoppins||||||||\u00a0\u00bb header_2_text_color=\u00a0\u00bb#071793&Prime; header_2_font_size=\u00a0\u00bb31px\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb custom_padding=\u00a0\u00bb||0px|||\u00a0\u00bb]<!-- divi:paragraph --><\/p>\n<p>During <strong>a recent investigation dealing with ransomware attack<\/strong>, CERT Intrinsec faced OSTAP loader. This loader is<strong> used to deliver other malwares<\/strong> (such as Trickbot) on an infected system. It uses high obfuscation techniques to prevent the code from being read and to bypass detection processes.<\/p>\n<p><!-- \/divi:paragraph --><\/p>\n<p><span style=\"color: #071793; font-family: Poppins, Helvetica, Arial, Lucida, sans-serif; font-size: 31px;\"><\/span><\/p>\n<p><span style=\"color: #071793; font-family: Poppins, Helvetica, Arial, Lucida, sans-serif; font-size: 31px;\">Obfuscated loader<\/span><\/p>\n<p><!-- \/divi:list -->[\/et_pb_text][et_pb_image src=&quot;https:\/\/www.intrinsec.com\/wp-content\/uploads\/2020\/04\/fig1-1.png&quot; _builder_version=&quot;4.4.2&quot;][\/et_pb_image][et_pb_text _builder_version=&quot;4.4.2&quot;]<\/p>\n<p><em><span class=\"has-inline-color has-cyan-bluish-gray-color\">Figure 1 : Extract of the loader code (Javascript)<\/span><\/em><\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_font_size=\u00a0\u00bb16px\u00a0\u00bb header_2_font=\u00a0\u00bbPoppins||||||||\u00a0\u00bb header_2_text_color=\u00a0\u00bb#071793&Prime; header_2_font_size=\u00a0\u00bb31px\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb]<!-- divi:paragraph --><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 16px;\">The ostap loader (Figure 1) we analysed was about 10 000 lines long. We started the <\/span><strong style=\"font-size: 16px;\">static analysis <\/strong><span style=\"font-size: 16px;\">by going through the code by hand to understand its structure. We identified a key part of the code that helped us to deobfuscate the loader (Figure 2).<\/span><\/p>\n<p><span style=\"font-size: 16px;\"><\/span><\/p>\n<p><!-- \/divi:list -->[\/et_pb_text][et_pb_image src=&quot;https:\/\/www.intrinsec.com\/wp-content\/uploads\/2020\/04\/fig2-1.png&quot; _builder_version=&quot;4.4.2&quot;][\/et_pb_image][et_pb_text _builder_version=&quot;4.4.2&quot;]<\/p>\n<p><em><span class=\"has-inline-color has-cyan-bluish-gray-color\">Figure 2 : Key part of the loader code<\/span><\/em><\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_font_size=\u00a0\u00bb16px\u00a0\u00bb header_2_font=\u00a0\u00bbPoppins||||||||\u00a0\u00bb header_2_text_color=\u00a0\u00bb#071793&Prime; header_2_font_size=\u00a0\u00bb31px\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb]<!-- divi:paragraph --><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 16px;\">The instructions, on <\/span><em style=\"font-size: 16px;\">Figure 2<\/em><span style=\"font-size: 16px;\">, aim at executing <\/span><em style=\"font-size: 16px;\">String.fromCharCode<\/em><span style=\"font-size: 16px;\"> function <\/span><strong style=\"font-size: 16px;\">ewnfBeth8<\/strong><span style=\"font-size: 16px;\"> parameter. There are lots of noise instructions in the program. For example, <\/span><strong style=\"font-size: 16px;\">ppfhair_3(ewnfBeth8)<\/strong><span style=\"font-size: 16px;\"> instruction in <\/span><em style=\"font-size: 16px;\">try <\/em><span style=\"font-size: 16px;\">statement will never be triggered because the function does not exist. It is done on purpose to always enter the <\/span><em style=\"font-size: 16px;\">catch<\/em><span style=\"font-size: 16px;\">. Besides, <\/span><strong style=\"font-size: 16px;\">etvulike2<\/strong><span style=\"font-size: 16px;\"> parameter is always equal to <\/span><strong style=\"font-size: 16px;\">\u2018f\u2019<\/strong><span style=\"font-size: 16px;\">. A large part of the program consists of a concatenation of functions such as the one shown on <\/span><em style=\"font-size: 16px;\">Figure 3<\/em><span style=\"font-size: 16px;\">.<\/span><\/p>\n<p><!-- \/divi:list --><\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_image src=&quot;https:\/\/www.intrinsec.com\/wp-content\/uploads\/2020\/04\/fig3-1.png&quot; _builder_version=&quot;4.4.2&quot;][\/et_pb_image][et_pb_text _builder_version=&quot;4.4.2&quot;]<\/p>\n<p>\u00a0<em><span class=\"has-inline-color has-cyan-bluish-gray-color\">Figure 3 : Repeated function model<\/span><\/em><\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_font_size=\u00a0\u00bb16px\u00a0\u00bb header_2_font=\u00a0\u00bbPoppins||||||||\u00a0\u00bb header_2_text_color=\u00a0\u00bb#071793&Prime; header_2_font_size=\u00a0\u00bb31px\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb custom_padding=\u00a0\u00bb|||1px||\u00a0\u00bb]<!-- divi:paragraph --><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 16px;\">The action of the function above (<\/span><em style=\"font-size: 16px;\">Figure 3<\/em><span style=\"font-size: 16px;\">) is to apply <\/span><em style=\"font-size: 16px;\">String.fromCharCode <\/em><span style=\"font-size: 16px;\">to 69, i.e. \u00ab\u00a0E\u00a0\u00bb. <\/span><strong style=\"font-size: 16px;\">The program uses this method to set all its instructions<\/strong><span style=\"font-size: 16px;\">. Knowing that, we decided to write a script to extract each obfuscated character.<\/span><\/p>\n<p><!-- \/divi:list -->[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_font_size=\u00a0\u00bb16px\u00a0\u00bb header_2_font=\u00a0\u00bbPoppins||||||||\u00a0\u00bb header_2_text_color=\u00a0\u00bb#071793&Prime; header_2_font_size=\u00a0\u00bb31px\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb custom_padding=\u00a0\u00bb|||1px||\u00a0\u00bb]<!-- divi:paragraph --><\/p>\n<p>&nbsp;<\/p>\n<p>\u00a0<span style=\"color: #071793; font-family: Poppins, Helvetica, Arial, Lucida, sans-serif; font-size: 31px;\">Deobfuscation script<\/span><\/p>\n<p>\u00a0<span style=\"font-size: 16px;\">The main goal of the script is <\/span><strong style=\"font-size: 16px;\">to get indicators of compromise from the loader.<\/strong><span style=\"font-size: 16px;\"> It has been developed using Node JS. It first goes through the obfuscated loader, retrieves the targeted numbers and apply <\/span><em style=\"font-size: 16px;\">String.fromCharCode<\/em><span style=\"font-size: 16px;\"> to decode them. Then, it collects the indicators of compromise in the decoded payload using regular expressions. Extracted IOCs are IPs, URLs and User-Agents. The figure below represents the output of the script using a sample hunted on VirusTotal. We can see, at the top of <\/span><em style=\"font-size: 16px;\">Figure 4<\/em><span style=\"font-size: 16px;\">, a list of file extensions that are targeted (their content will be replaced by the Ostap JS code).<\/span><\/p>\n<p><!-- \/divi:list --><\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_image src=&quot;https:\/\/www.intrinsec.com\/wp-content\/uploads\/2020\/04\/fig4.png&quot; _builder_version=&quot;4.4.2&quot;][\/et_pb_image][et_pb_text _builder_version=&quot;4.4.2&quot;]<\/p>\n<p><em><span class=\"has-inline-color has-cyan-bluish-gray-color\">Figure 4 : Script execution output<\/span><\/em><\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_font_size=\u00a0\u00bb16px\u00a0\u00bb header_2_font=\u00a0\u00bbPoppins||||||||\u00a0\u00bb header_2_text_color=\u00a0\u00bb#071793&Prime; header_2_font_size=\u00a0\u00bb31px\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb]<!-- divi:paragraph --><\/p>\n<p>&nbsp;<\/p>\n<h2>Hunting\u00a0<\/h2>\n<p><!-- divi:paragraph --><\/p>\n<p>\u00a0<span style=\"font-size: 16px;\">After deobfuscating the loader as a part of our investigation, <\/span><strong style=\"font-size: 16px;\">we decided to hunt recent and similar files on VirusTotal, using searches on static code patterns<\/strong><span style=\"font-size: 16px;\"> (<\/span><em style=\"font-size: 16px;\">content: \u00ab\u00a0&lsquo;String&rsquo;)[&lsquo;slice&rsquo;]\u00a0\u00bb<\/em><span style=\"font-size: 16px;\">, for instance). We found lots of samples (<\/span><em style=\"font-size: 16px;\">Figure 5<\/em><span style=\"font-size: 16px;\">) and process them so as to extract as many IOCs as possible.<\/span><\/p>\n<p><!-- \/divi:list -->[\/et_pb_text][et_pb_image src=&quot;https:\/\/www.intrinsec.com\/wp-content\/uploads\/2020\/04\/fig5-1.png&quot; _builder_version=&quot;4.4.2&quot;][\/et_pb_image][et_pb_text _builder_version=&quot;4.4.2&quot;]<\/p>\n<p>\u00a0<em><span class=\"has-inline-color has-cyan-bluish-gray-color\">Figure 5 : Ostap samples from VirusTotal<\/span><\/em><\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_font_size=\u00a0\u00bb16px\u00a0\u00bb header_2_font=\u00a0\u00bbPoppins||||||||\u00a0\u00bb header_2_text_color=\u00a0\u00bb#071793&Prime; header_2_font_size=\u00a0\u00bb31px\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb]<!-- divi:paragraph --><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 16px;\">We collected about <\/span><strong style=\"font-size: 16px;\">140 samples from VirusTotal using the script<\/strong><span style=\"font-size: 16px;\">. We analysed them and extracted the indicators of compromise presented in the table below. We can say that at least one of the IP addresses (185[.]234[.]73[.]125) <\/span><strong style=\"font-size: 16px;\">is related to the Trickbot campaign happening since the Coronavirus appeared such as in Italy, as reported by Sophos<\/strong><span style=\"font-size: 16px;\"> (1).<\/span><\/p>\n<p><!-- \/divi:list -->[\/et_pb_text][et_pb_text _builder_version=\u00a0\u00bb4.4.2&Prime; hover_enabled=\u00a0\u00bb0&Prime;]<\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"146\">\n<p><strong>IP<\/strong><\/p>\n<\/td>\n<td width=\"373\">\n<p><strong>URL<\/strong><\/p>\n<\/td>\n<td width=\"92\">\n<p><strong>User-Agent<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"146\">\n<p>141[.]98[.]214[.]14<\/p>\n<p>185[.]159[.]82[.]205<\/p>\n<p>185[.]216[.]35[.]10<\/p>\n<p>185[.]234[.]73[.]125<\/p>\n<p>194[.]87[.]96[.]100<\/p>\n<p>45[.]128[.]133[.]41<\/p>\n<p>91[.]196[.]70[.]126<\/p>\n<\/td>\n<td width=\"373\">\n<p>hxxps[:\/\/]141[.]98[.]214[.]14\/6BcsTO\/AGVV5r[.]php<\/p>\n<p>hxxps[:\/\/]185[.]159[.]82[.]205\/2\/1[.]php<\/p>\n<p>hxxps[:\/\/]185[.]216[.]35[.]10\/VYut68\/L2KSUN[.]php<\/p>\n<p>hxxps[:\/\/]185[.]234[.]73[.]125\/wMB03o\/Wx9u79[.]php<\/p>\n<p>hxxps[:\/\/]194[.]87[.]96[.]100\/2\/1[.]php<\/p>\n<p>hxxp[:\/\/]45[.]128[.]133[.]41\/jTlp8P\/3OXkud[.]php<\/p>\n<p>hxxps[:\/\/]91[.]196[.]70[.]126\/2\/zsQX9M[.]php<\/p>\n<\/td>\n<td width=\"92\">\n<p>Mozilla\/5.0<\/p>\n<p>(Windows NT 6.; Win64; x64; Trident\/7.0; rv:11.0) like Gecko<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_font_size=\u00a0\u00bb16px\u00a0\u00bb header_2_font=\u00a0\u00bbPoppins||||||||\u00a0\u00bb header_2_text_color=\u00a0\u00bb#071793&Prime; header_2_font_size=\u00a0\u00bb31px\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb]<!-- divi:paragraph --><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: Poppins, Helvetica, Arial, Lucida, sans-serif; font-size: 20px;\">References<\/span><\/p>\n<ol type=\"1\">\n<li><a href=\"https:\/\/news.sophos.com\/en-us\/2020\/03\/04\/trickbot-campaign-targets-coronavirus-fears-in-italy\/\">https:\/\/news.sophos.com\/en-us\/2020\/03\/04\/trickbot-campaign-targets-coronavirus-fears-in-italy\/<\/a><\/li>\n<li><a href=\"https:\/\/www.esentire.com\/blog\/oh-snap-new-ostap-variant-observed-in-the-wild\">https:\/\/www.esentire.com\/blog\/oh-snap-new-ostap-variant-observed-in-the-wild<\/a><\/li>\n<li><a href=\"https:\/\/www.bromium.com\/deobfuscating-ostap-trickbots-javascript-downloader\/\">https:\/\/www.bromium.com\/deobfuscating-ostap-trickbots-javascript-downloader\/<\/a><\/li>\n<li><a href=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/latest-trickbot-campaign-delivered-via-highly-obfuscated-js-file\/\">https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/latest-trickbot-campaign-delivered-via-highly-obfuscated-js-file\/<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/cryptogramfan\/Malware-Analysis-Scripts\">https:\/\/github.com\/cryptogramfan\/Malware-Analysis-Scripts<\/a><\/li>\n<li><a href=\"https:\/\/www.cert.pl\/en\/news\/single\/ostap-malware-analysis-backswap-dropper\/\">https:\/\/www.cert.pl\/en\/news\/single\/ostap-malware-analysis-backswap-dropper\/<\/a><\/li>\n<li>Link to the script on Intrinsec Github : <a href=\"https:\/\/github.com\/Intrinsec\/CERT\/tree\/master\/Scripts\/ostap_deobfuscator\">https:\/\/github.com\/Intrinsec\/CERT\/tree\/master\/Scripts\/ostap_deobfuscator<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><!-- \/divi:list -->[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=\u00a0\u00bb1&Prime; _builder_version=\u00a0\u00bb4.4.2&Prime; use_background_color_gradient=\u00a0\u00bbon\u00a0\u00bb background_color_gradient_start=\u00a0\u00bb#071793&Prime; background_color_gradient_end=\u00a0\u00bbrgba(7,23,147,0.59)\u00a0\u00bb custom_margin=\u00a0\u00bb|103px||87px||\u00a0\u00bb][et_pb_row column_structure=\u00a0\u00bb3_4,1_4&Prime; _builder_version=\u00a0\u00bb3.25&Prime;][et_pb_column type=\u00a0\u00bb3_4&Prime; _builder_version=\u00a0\u00bb3.25&Prime; custom_padding=\u00a0\u00bb|||\u00a0\u00bb custom_padding__hover=\u00a0\u00bb|||\u00a0\u00bb][et_pb_text _builder_version=\u00a0\u00bb4.4.2&Prime; text_font=\u00a0\u00bbNunito Sans||||||||\u00a0\u00bb text_text_color=\u00a0\u00bb#ffffff\u00a0\u00bb text_font_size=\u00a0\u00bb24px\u00a0\u00bb text_line_height=\u00a0\u00bb1.4em\u00a0\u00bb header_font=\u00a0\u00bb||||||||\u00a0\u00bb width=\u00a0\u00bb101.2%\u00a0\u00bb custom_margin=\u00a0\u00bb-11px|-42px||31px||\u00a0\u00bb custom_padding=\u00a0\u00bb13px||\u00a0\u00bb]<\/p>\n<p><strong>Want to learn more about our Computer Emergency Response Team (CERT) ?\u00a0<\/strong><\/p>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=\u00a0\u00bb1_4&Prime; _builder_version=\u00a0\u00bb3.25&Prime; custom_padding=\u00a0\u00bb|||\u00a0\u00bb custom_padding__hover=\u00a0\u00bb|||\u00a0\u00bb][et_pb_button button_url=\u00a0\u00bbhttps:\/\/www.intrinsec.com\/cert-intrinsec\u00a0\u00bb url_new_window=\u00a0\u00bbon\u00a0\u00bb button_text=\u00a0\u00bbDiscover\u00a0\u00bb button_alignment=\u00a0\u00bbleft\u00a0\u00bb _builder_version=\u00a0\u00bb4.4.2&Prime; custom_button=\u00a0\u00bbon\u00a0\u00bb button_text_size=\u00a0\u00bb18px\u00a0\u00bb button_text_color=\u00a0\u00bb#e02b20&Prime; button_bg_color=\u00a0\u00bb#ffffff\u00a0\u00bb button_border_color=\u00a0\u00bb#ffffff\u00a0\u00bb button_font=\u00a0\u00bbNunito Sans|700|||||||\u00a0\u00bb button_icon=\u00a0\u00bb%%86%%\u00a0\u00bb button_icon_color=\u00a0\u00bb#ffffff\u00a0\u00bb button_icon_placement=\u00a0\u00bbleft\u00a0\u00bb custom_margin=\u00a0\u00bb14px|-30px|7px|-6px||\u00a0\u00bb][\/et_pb_button][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section fb_built=\u00a0\u00bb1&Prime; admin_label=\u00a0\u00bbsection\u00a0\u00bb _builder_version=\u00a0\u00bb3.22&Prime;][et_pb_row admin_label=\u00a0\u00bbrow\u00a0\u00bb _builder_version=\u00a0\u00bb3.25&Prime; background_size=\u00a0\u00bbinitial\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb custom_margin=\u00a0\u00bb|auto|-2px|auto||\u00a0\u00bb][et_pb_column type=\u00a0\u00bb4_4&Prime; _builder_version=\u00a0\u00bb3.25&Prime; custom_padding=\u00a0\u00bb|||\u00a0\u00bb custom_padding__hover=\u00a0\u00bb|||\u00a0\u00bb][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-220700","post","type-post","status-publish","format-standard","hentry","category-cert"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.0 (Yoast SEO v28.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Deobfuscating and hunting for OSTAP : Trickbot&#039;s dropper and best friend - INTRINSEC<\/title>\n<meta name=\"description\" content=\"During a recent investigation dealing with ransomware attack, CERT Intrinsec faced OSTAP loader. This loader is used to deliver other malwares...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.intrinsec.com\/en\/deobfuscating-hunting-ostap\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deobfuscating and hunting for OSTAP, Trickbot&#039;s dropper and best friend\" \/>\n<meta property=\"og:description\" content=\"During a recent investigation dealing with ransomware attack, CERT Intrinsec faced OSTAP loader. This loader is used to deliver other malwares...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.intrinsec.com\/en\/deobfuscating-hunting-ostap\/\" \/>\n<meta property=\"og:site_name\" content=\"INTRINSEC\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-14T08:01:38+00:00\" \/>\n<meta name=\"author\" content=\"Equipe CERT\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Intrinsec\" \/>\n<meta name=\"twitter:site\" content=\"@Intrinsec\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Equipe CERT\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/\"},\"author\":{\"name\":\"Equipe CERT\",\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#\\\/schema\\\/person\\\/9fd855ac1b5c58c5156193f3ac721498\"},\"headline\":\"Deobfuscating and hunting for OSTAP, Trickbot&rsquo;s dropper and best friend\",\"datePublished\":\"2020-04-14T08:01:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/\"},\"wordCount\":1280,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#organization\"},\"articleSection\":[\"CERT\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/\",\"url\":\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/\",\"name\":\"Deobfuscating and hunting for OSTAP : Trickbot's dropper and best friend - INTRINSEC\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#website\"},\"datePublished\":\"2020-04-14T08:01:38+00:00\",\"description\":\"During a recent investigation dealing with ransomware attack, CERT Intrinsec faced OSTAP loader. This loader is used to deliver other malwares...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/deobfuscating-hunting-ostap\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.intrinsec.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deobfuscating and hunting for OSTAP, Trickbot&#8217;s dropper and best friend\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#website\",\"url\":\"https:\\\/\\\/www.intrinsec.com\\\/\",\"name\":\"INTRINSEC\",\"description\":\"Notre m\u00e9tier , Prot\u00e9ger le v\u00f4tre\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.intrinsec.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#organization\",\"name\":\"INTRINSEC\",\"alternateName\":\"ISEC\",\"url\":\"https:\\\/\\\/www.intrinsec.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.intrinsec.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/libellule.png\",\"contentUrl\":\"https:\\\/\\\/www.intrinsec.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/libellule.png\",\"width\":1322,\"height\":1322,\"caption\":\"INTRINSEC\"},\"image\":{\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/Intrinsec\",\"https:\\\/\\\/fr.linkedin.com\\\/company\\\/intrinsec\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC0trUZAHNZOUbxYnNdecM4A\"],\"description\":\"soci\u00e9t\u00e9 de consulting, pure player cybers\u00e9curit\u00e9 fran\u00e7ais et europ\u00e9en depuis plus de 30ans, sp\u00e9cialiste dans la s\u00e9curit\u00e9 offensive & audit (pentest\\\/red team), GRC, et services IMSS comme le SOC, CTI et CERT Intrinsec est qualifi\u00e9 PASSI Elev\u00e9, PRIS Elev\u00e9 et PACS par l'ANSSI\",\"email\":\"contact@intrinsec.com\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.intrinsec.com\\\/#\\\/schema\\\/person\\\/9fd855ac1b5c58c5156193f3ac721498\",\"name\":\"Equipe CERT\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"caption\":\"Equipe CERT\"},\"url\":\"https:\\\/\\\/www.intrinsec.com\\\/en\\\/author\\\/equipe-cert\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Deobfuscating and hunting for OSTAP: Trickbot&#039;s dropper and best friend - INTRINSEC","description":"During a recent investigation dealing with ransomware attack, CERT Intrinsec faced OSTAP loader. This loader is used to deliver other malware...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.intrinsec.com\/en\/deobfuscating-hunting-ostap\/","og_locale":"en_US","og_type":"article","og_title":"Deobfuscating and hunting for OSTAP, Trickbot's dropper and best friend","og_description":"During a recent investigation dealing with ransomware attack, CERT Intrinsec faced OSTAP loader. This loader is used to deliver other malwares...","og_url":"https:\/\/www.intrinsec.com\/en\/deobfuscating-hunting-ostap\/","og_site_name":"INTRINSEC","article_published_time":"2020-04-14T08:01:38+00:00","author":"Equipe CERT","twitter_card":"summary_large_image","twitter_creator":"@Intrinsec","twitter_site":"@Intrinsec","twitter_misc":{"Written by":"Equipe CERT","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/#article","isPartOf":{"@id":"https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/"},"author":{"name":"Equipe CERT","@id":"https:\/\/www.intrinsec.com\/#\/schema\/person\/9fd855ac1b5c58c5156193f3ac721498"},"headline":"Deobfuscating and hunting for OSTAP, Trickbot&rsquo;s dropper and best friend","datePublished":"2020-04-14T08:01:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/"},"wordCount":1280,"commentCount":0,"publisher":{"@id":"https:\/\/www.intrinsec.com\/#organization"},"articleSection":["CERT"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/","url":"https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/","name":"Deobfuscating and hunting for OSTAP: Trickbot&#039;s dropper and best friend - INTRINSEC","isPartOf":{"@id":"https:\/\/www.intrinsec.com\/#website"},"datePublished":"2020-04-14T08:01:38+00:00","description":"During a recent investigation dealing with ransomware attack, CERT Intrinsec faced OSTAP loader. This loader is used to deliver other malware...","breadcrumb":{"@id":"https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.intrinsec.com\/deobfuscating-hunting-ostap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.intrinsec.com\/"},{"@type":"ListItem","position":2,"name":"Deobfuscating and hunting for OSTAP, Trickbot&#8217;s dropper and best friend"}]},{"@type":"WebSite","@id":"https:\/\/www.intrinsec.com\/#website","url":"https:\/\/www.intrinsec.com\/","name":"INTRINSEC","description":"Our job is to protect yours.","publisher":{"@id":"https:\/\/www.intrinsec.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.intrinsec.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.intrinsec.com\/#organization","name":"INTRINSEC","alternateName":"ISEC","url":"https:\/\/www.intrinsec.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intrinsec.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.intrinsec.com\/wp-content\/uploads\/2025\/02\/libellule.png","contentUrl":"https:\/\/www.intrinsec.com\/wp-content\/uploads\/2025\/02\/libellule.png","width":1322,"height":1322,"caption":"INTRINSEC"},"image":{"@id":"https:\/\/www.intrinsec.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/Intrinsec","https:\/\/fr.linkedin.com\/company\/intrinsec","https:\/\/www.youtube.com\/channel\/UC0trUZAHNZOUbxYnNdecM4A"],"description":"Intrinsec, a consulting firm and pure-play French and European cybersecurity provider for over 30 years, specializes in offensive security and auditing (penetration testing\/red teams), GRC, and IMSS services such as SOC, CTI, and CERT. Intrinsec is qualified at PASSI High, PRIS High, and PACS levels by ANSSI.","email":"contact@intrinsec.com"},{"@type":"Person","@id":"https:\/\/www.intrinsec.com\/#\/schema\/person\/9fd855ac1b5c58c5156193f3ac721498","name":"CERT Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","caption":"Equipe CERT"},"url":"https:\/\/www.intrinsec.com\/en\/author\/equipe-cert\/"}]}},"_links":{"self":[{"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/posts\/220700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/comments?post=220700"}],"version-history":[{"count":0,"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/posts\/220700\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/media?parent=220700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/categories?post=220700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intrinsec.com\/en\/wp-json\/wp\/v2\/tags?post=220700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}