{"id":1134,"date":"2026-02-09T13:04:12","date_gmt":"2026-02-09T13:04:12","guid":{"rendered":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/"},"modified":"2026-02-09T13:04:12","modified_gmt":"2026-02-09T13:04:12","slug":"quick-howto-extract-urls-from-rtf-files-mon-feb-9th","status":"publish","type":"post","link":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/","title":{"rendered":"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th)"},"content":{"rendered":"<div>\n<p>Malicious RTF (Rich Text Format) documents are back in the news with the <a href=\"https:\/\/www.helpnetsecurity.com\/2026\/02\/03\/russian-hackers-are-exploiting-recently-patched-microsoft-office-vulnerability-cve-2026-21509\/\">exploitation of CVE-2026-21509 by APT28<\/a>.<\/p>\n<p>The malicious RTF documents\u00a0<a href=\"https:\/\/www.virustotal.com\/gui\/file\/c91183175ce77360006f964841eb4048cf37cb82103f2573e262927be4c7607f\">BULLETEN_H.doc<\/a> and\u00a0<a href=\"https:\/\/www.virustotal.com\/gui\/file\/b2ba51b4491da8604ff9410d6e004971e3cd9a321390d0258e294ac42010b546\">Consultation_Topics_Ukraine(Final).doc<\/a> mentioned in the news are RTF files (despite their .doc extension, a common trick used by threat actors).<\/p>\n<p>Here is a quick tip to extract URLs from RTF files. Use the following command:<\/p>\n<pre>\n<code>rtfdump.py -j -C SAMPLE.vir | strings.py --jsoninput | re-search.py -n url -u -F officeurls<\/code><\/pre>\n<p>Like this:<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png\" style=\"width: 993px; height: 187px;\"><\/p>\n<p>BTW, if you are curious, this is how that document looks like when opened:<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260208-212413.png\" style=\"width: 1600px; height: 846px;\"><\/p>\n<p>Let me break down the command:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/DidierStevens\/DidierStevensSuite\/blob\/master\/rtfdump.py\">rtfdump.py<\/a> -j -C SAMPLE.vir: this parses RTF file SAMPLE.vir and produces JSON output with the content of all the items found in the RTF document. Option -C make that all combinations are included in the JSON data: the item itself, the hex-decoded item (-H) and the hex-decoded and shifted item (-H -S). So per item found inside the RTF file, 3 entries are produced in the JSON data.<\/li>\n<li><a href=\"https:\/\/github.com\/DidierStevens\/DidierStevensSuite\/blob\/master\/strings.py\">strings.py<\/a> &#8211;jsoninput: this takes the JSON data produced by rtfdump.py and extract all strings<\/li>\n<li><a href=\"https:\/\/github.com\/DidierStevens\/DidierStevensSuite\/blob\/master\/re-search.py\">re-search.py<\/a> -n url -u -F officeurls: this extracts all URLs (-n url) found in the strings produced by strings.py, performs a deduplication (-u) and filters out all URLs linked to Office document definitions (-F officeurls)<\/li>\n<\/ul>\n<p>So I have found one domain (wellnesscaremed) and one private IP address (192.168&#8230;). What I then like to do, is search for these keywords in the string list, like this:<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-122140.png\" style=\"width: 993px; height: 243px;\"><\/p>\n<p>If found extra IOCs: a UNC and a &#8220;malformed&#8221; URL. The URL has it&#8217;s hostname followed by @ssl. This is not according to standards. @ can be used to introduce credentials, but then it has to come in front of the hostname, not behind it. So that&#8217;s not the case here. More on this later.<\/p>\n<p>Here are the results for the other document:<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-122843.png\" style=\"width: 993px; height: 353px;\"><\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260208-212510.png\" style=\"width: 1600px; height: 846px;\"><\/p>\n<p>Notice that this time, we have @80.<\/p>\n<p>I believe that this @ notation is used by Microsoft to provide the portnumber when WebDAV requests are made (via UNC). If you know more about this, please post a comment.<\/p>\n<p>In an upcoming diary, I will show how to extract URLs from ZIP files embedded in the objects in these RTF files.<\/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","protected":false},"excerpt":{"rendered":"<p>Malicious RTF (Rich Text Format) documents are back in the news with the exploitation of CVE-2026-21509 by APT28. The malicious RTF documents\u00a0BULLETEN_H.doc and\u00a0Consultation_Topics_Ukraine(Final).doc mentioned in the news are RTF files (despite their .doc extension, a common trick used by threat actors). Here is a quick tip to extract URLs from RTF files. Use the following [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[90],"tags":[91],"class_list":["post-1134","post","type-post","status-publish","format-standard","hentry","category-cybersecurity","tag-cybersecurity"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th) - Imperative Business Ventures Limited<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th) - Imperative Business Ventures Limited\" \/>\n<meta property=\"og:description\" content=\"Malicious RTF (Rich Text Format) documents are back in the news with the exploitation of CVE-2026-21509 by APT28. The malicious RTF documents\u00a0BULLETEN_H.doc and\u00a0Consultation_Topics_Ukraine(Final).doc mentioned in the news are RTF files (despite their .doc extension, a common trick used by threat actors). Here is a quick tip to extract URLs from RTF files. Use the following [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/\" \/>\n<meta property=\"og:site_name\" content=\"Imperative Business Ventures Limited\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-09T13:04:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/blog.ibvl.in\/#\/schema\/person\/55b87b72a56b1bbe9295fe5ef7a20b02\"},\"headline\":\"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th)\",\"datePublished\":\"2026-02-09T13:04:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/\"},\"wordCount\":393,\"image\":{\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png\",\"keywords\":[\"Cybersecurity\"],\"articleSection\":[\"Cybersecurity\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/\",\"url\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/\",\"name\":\"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th) - Imperative Business Ventures Limited\",\"isPartOf\":{\"@id\":\"https:\/\/blog.ibvl.in\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png\",\"datePublished\":\"2026-02-09T13:04:12+00:00\",\"author\":{\"@id\":\"https:\/\/blog.ibvl.in\/#\/schema\/person\/55b87b72a56b1bbe9295fe5ef7a20b02\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#primaryimage\",\"url\":\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png\",\"contentUrl\":\"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.ibvl.in\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.ibvl.in\/#website\",\"url\":\"https:\/\/blog.ibvl.in\/\",\"name\":\"Imperative Business Ventures Limited\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.ibvl.in\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.ibvl.in\/#\/schema\/person\/55b87b72a56b1bbe9295fe5ef7a20b02\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.ibvl.in\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4d20b2cd313e4417a599678e950e6fb7d4dfa178a72f2b769335a08aaa615aa9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4d20b2cd313e4417a599678e950e6fb7d4dfa178a72f2b769335a08aaa615aa9?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/blog.ibvl.in\"],\"url\":\"https:\/\/blog.ibvl.in\/index.php\/author\/admin_hcbs9yw6\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th) - Imperative Business Ventures Limited","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:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/","og_locale":"en_US","og_type":"article","og_title":"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th) - Imperative Business Ventures Limited","og_description":"Malicious RTF (Rich Text Format) documents are back in the news with the exploitation of CVE-2026-21509 by APT28. The malicious RTF documents\u00a0BULLETEN_H.doc and\u00a0Consultation_Topics_Ukraine(Final).doc mentioned in the news are RTF files (despite their .doc extension, a common trick used by threat actors). Here is a quick tip to extract URLs from RTF files. Use the following [&hellip;]","og_url":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/","og_site_name":"Imperative Business Ventures Limited","article_published_time":"2026-02-09T13:04:12+00:00","og_image":[{"url":"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#article","isPartOf":{"@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/"},"author":{"name":"admin","@id":"https:\/\/blog.ibvl.in\/#\/schema\/person\/55b87b72a56b1bbe9295fe5ef7a20b02"},"headline":"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th)","datePublished":"2026-02-09T13:04:12+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/"},"wordCount":393,"image":{"@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#primaryimage"},"thumbnailUrl":"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png","keywords":["Cybersecurity"],"articleSection":["Cybersecurity"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/","url":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/","name":"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th) - Imperative Business Ventures Limited","isPartOf":{"@id":"https:\/\/blog.ibvl.in\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#primaryimage"},"image":{"@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#primaryimage"},"thumbnailUrl":"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png","datePublished":"2026-02-09T13:04:12+00:00","author":{"@id":"https:\/\/blog.ibvl.in\/#\/schema\/person\/55b87b72a56b1bbe9295fe5ef7a20b02"},"breadcrumb":{"@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#primaryimage","url":"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png","contentUrl":"https:\/\/isc.sans.edu\/diaryimages\/images\/20260209-120912.png"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.ibvl.in\/index.php\/2026\/02\/09\/quick-howto-extract-urls-from-rtf-files-mon-feb-9th\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.ibvl.in\/"},{"@type":"ListItem","position":2,"name":"Quick Howto: Extract URLs from RTF files, (Mon, Feb 9th)"}]},{"@type":"WebSite","@id":"https:\/\/blog.ibvl.in\/#website","url":"https:\/\/blog.ibvl.in\/","name":"Imperative Business Ventures Limited","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.ibvl.in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.ibvl.in\/#\/schema\/person\/55b87b72a56b1bbe9295fe5ef7a20b02","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.ibvl.in\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4d20b2cd313e4417a599678e950e6fb7d4dfa178a72f2b769335a08aaa615aa9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d20b2cd313e4417a599678e950e6fb7d4dfa178a72f2b769335a08aaa615aa9?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/blog.ibvl.in"],"url":"https:\/\/blog.ibvl.in\/index.php\/author\/admin_hcbs9yw6\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/posts\/1134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/comments?post=1134"}],"version-history":[{"count":0,"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/posts\/1134\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/media?parent=1134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/categories?post=1134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ibvl.in\/index.php\/wp-json\/wp\/v2\/tags?post=1134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}