{"id":11055,"date":"2026-03-03T04:03:48","date_gmt":"2026-03-03T04:03:48","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2026\/03\/03\/32696\/"},"modified":"2026-03-03T04:03:48","modified_gmt":"2026-03-03T04:03:48","slug":"32696","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2026\/03\/03\/32696\/","title":{"rendered":"Quick Howto: ZIP Files Inside RTF, (Mon, Mar 2nd)"},"content":{"rendered":"<p>    Quick Howto: ZIP Files Inside RTF, (Mon, Mar 2nd)<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>In diary entry &#8220;<a href=\"https:\/\/isc.sans.edu\/diary\/Quick%20Howto%3A%20Extract%20URLs%20from%20RTF%20files\/32692\">Quick Howto: Extract URLs from RTF files<\/a>&#8221; I mentioned ZIP files.<\/p>\n<p>There are OLE objects inside this RTF file:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-124939.png?ssl=1\" style=\"width: 993px; height: 527px;\"><\/p>\n<p>\u00a0<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-124956.png?ssl=1\" style=\"width: 993px; height: 511px;\"><\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-125102.png?ssl=1\" style=\"width: 993px; height: 333px;\"><\/p>\n<p>They can be analyzed with <a href=\"https:\/\/github.com\/DidierStevens\/DidierStevensSuite\/blob\/master\/oledump.py\">oledump.py<\/a> like this:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-125403.png?ssl=1\" style=\"width: 993px; height: 171px;\"><\/p>\n<p>Options &#8211;storages and -E %CLSID% are used to show the abused CLSID.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-125518.png?ssl=1\" style=\"width: 993px; height: 191px;\"><\/p>\n<p>Stream CONTENTS contains the URL:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-125609.png?ssl=1\" style=\"width: 993px; height: 527px;\"><\/p>\n<p>We extracted this URL with the method described in my previous diary entry &#8220;<a href=\"https:\/\/isc.sans.edu\/diary\/Quick%20Howto%3A%20Extract%20URLs%20from%20RTF%20files\/32692\">Quick Howto: Extract URLs from RTF files<\/a>&#8220;.<\/p>\n<p>But this OLE object contains a .docx file.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-125740.png?ssl=1\" style=\"width: 993px; height: 253px;\"><\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-125928.png?ssl=1\" style=\"width: 993px; height: 153px;\"><\/p>\n<p>A .docx file is a ZIP container, and thus the URLs it contains are inside compressed files, and will not be extracted with the technique I explained.<\/p>\n<p>But this file can be looked into with <a href=\"https:\/\/github.com\/DidierStevens\/DidierStevensSuite\/blob\/master\/zipdump.py\">zipdump.py<\/a>:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-130005.png?ssl=1\" style=\"width: 993px; height: 367px;\"><\/p>\n<p>It is possible to search for ZIP files embedded inside RTF files: 50 4B 03 04 -&gt; hex sequence of magic number header for file record in ZIP file.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-130139.png?ssl=1\" style=\"width: 993px; height: 207px;\"><\/p>\n<p>Search for all embedded ZIP files:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-130412.png?ssl=1\" style=\"width: 993px; height: 755px;\"><\/p>\n<p>Extract URLs:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-130600.png?ssl=1\" style=\"width: 993px; height: 149px;\"><\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/20260209-130636.png?ssl=1\" style=\"width: 993px; height: 169px;\"><\/p>\n<p>\u00a0<\/p>\n<p>Didier Stevens<br \/>\nSenior handler<br \/>\n<a href=\"http:\/\/blog.didierstevens.com\/\">blog.DidierStevens.com<\/a><\/p>\n<p> (c) SANS Internet Storm Center. https:\/\/isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.<\/p><\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><\/p>\n<p> \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/isc.sans.edu\/diary\/rss\/32696\">Go to isc.sans.edu<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick Howto: ZIP Files Inside RTF, (Mon, Mar 2nd) In diary entry &#8220;Quick Howto: Extract URLs from RTF files&#8221; I mentioned ZIP files. There are OLE objects inside this RTF file: \u00a0 They can be analyzed with oledump.py like this: Options &#8211;storages and -E %CLSID% are used to show the abused CLSID. Stream CONTENTS contains [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[69],"class_list":["post-11055","post","type-post","status-publish","format-standard","hentry","category-isc-sans-edu","tag-isc-sans-edu"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/11055"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=11055"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/11055\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=11055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=11055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=11055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}