{"id":8034,"date":"2025-10-30T04:03:37","date_gmt":"2025-10-30T04:03:37","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/10\/30\/32428\/"},"modified":"2025-10-30T04:03:37","modified_gmt":"2025-10-30T04:03:37","slug":"32428","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/10\/30\/32428\/","title":{"rendered":"A phishing with invisible characters in the subject line, (Tue, Oct 28th)"},"content":{"rendered":"<p>    A phishing with invisible characters in the subject line, (Tue, Oct 28th)<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>While reviewing malicious messages that were delivered to our handler inbox over the past few days, I noticed that the \u201csubject\u201d of one phishing e-mail looked quite strange when displayed in the Outlook message list\u2026<\/p>\n<p><a href=\"https:\/\/isc.sans.edu\/diaryimages\/images\/25-10-28-shy-subject.png1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/25-10-28-shy-subject.png?ssl=1\" style=\"border-width: 1px; border-style: solid; width: 801px; height: 404px;\"><\/a><\/p>\n<p>As you can see, once the message was open, the subject was displayed as a normal, readable text. This suggested that some invisible characters were likely present\u2026<\/p>\n<p>A quick look at the e-mail headers proved this to be the case. The subject was composed of the following two lines:<\/p>\n<pre>\n<code>Subject: =?UTF-8?B?WcKtb3XCrXIgUMKtYXPCrXN3wq1vwq1yZCBpwq1zIEHCrWLCrW91dCA=?=\n\t=?UTF-8?B?dMKtbyBFwq14wq1wwq1pcsKtZQ==?=<\/code><\/pre>\n<p>This formatting meant that the subject was included in the message in a MIME \u201cencoded-word\u201d format, which is described in RFC 2047 as having the following structure[<a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2047\">1<\/a>]:<\/p>\n<pre>\n<code>encoded-word = \"=?\" charset \"?\" encoding \"?\" encoded-text \"?=\"<\/code><\/pre>\n<p>In our case, the subject therefore consisted of two encoded words containing text written in the UTF-8 character set, which has been Base64 encoded.<\/p>\n<p>Once both lines were decoded, one could clearly see that an invisible character was indeed being used in multiple places in the strings \u2013 specifically the soft hyphen, which has a Unicode code point U+00AD, and which is more commonly used as the &amp;shy; HTML entity[<a href=\"https:\/\/en.wikipedia.org\/wiki\/Soft_hyphen\">2<\/a>].<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/25-10-28-subject-decoded.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/25-10-28-subject-decoded.png?ssl=1\" style=\"border-width: 1px; border-style: solid; width: 600px; height: 82px;\"><\/a><\/p>\n<p>Although soft hyphens aren\u2019t \u2013 strictly speaking \u2013 invisible, Outlook as well as most other e-mail clients don\u2019t render them as visible text in most cases.<\/p>\n<p>The use of the soft hyphen character \u2013 combined with splitting the subject into multiple MIME encoded-words \u2013 was clearly intended as an attempt at bypassing e-mail filtering mechanisms that are supposed to automatically detect potentially malicious messages.<\/p>\n<p>Why is this approach noteworthy?<\/p>\n<p>Because although the use of invisible characters in phishing e-mails in general (and of the use of the \u201cshy\u201d character in particular[<a href=\"https:\/\/isc.sans.edu\/diary\/31626\">3<\/a>]) is quite common when it comes to making the contents of e-mail messages less readable to security solutions, it is quite unusual to see it also applied to a subject of a message.<\/p>\n<p>In fact, the only allusion to this technique I\u2019ve been able to find with a quick Google search was a general mention in an article by Microsoft Threat Intelligence from 2021, which states that \u201cIn several observed campaigns, attackers inserted invisible Unicode characters to break up keywords in an email body or <u>subject line<\/u> in an attempt to bypass detection and automated security analysis\u201d[<a href=\"https:\/\/www.microsoft.com\/en-us\/security\/blog\/2021\/08\/18\/trend-spotting-email-techniques-how-modern-phishing-emails-hide-in-plain-sight\/\">4<\/a>].<\/p>\n<p>Since the use of invisible characters in e-mail subject lines doesn\u2019t seem to be widely known, I have therefore decided that it would be worthwhile to dedicate this short diary to it.<\/p>\n<p>It should be noted that the subject line wasn\u2019t the only place where the soft hyphen character was used in the message \u2013 it was also heavily present in the text itself, where it was used to break up individual words\u2026<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/25-10-28-contents.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/25-10-28-contents.png?ssl=1\" style=\"border-width: 1px; border-style: solid; width: 801px; height: 486px;\"><\/a><\/p>\n<p>For completeness\u2019s sake, we should also mention that the link in the phishing pointed to the URL hxxps[:]\/\/stopsoriasis[.]co[.]il\/Webmail\/webmail.php?email=[recipient@domain.tld], where a generic \u201cwebmail login\u201d credential stealing page was placed\u2026<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/25-10-28-page.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/isc.sans.edu\/diaryimages\/images\/25-10-28-page.png?ssl=1\" style=\"width: 800px; height: 500px; border-width: 1px; border-style: solid;\"><\/a><\/p>\n<p>[1] <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2047\">https:\/\/datatracker.ietf.org\/doc\/html\/rfc2047<\/a><br \/>\n[2] <a href=\"https:\/\/en.wikipedia.org\/wiki\/Soft_hyphen\">https:\/\/en.wikipedia.org\/wiki\/Soft_hyphen<\/a><br \/>\n[3] <a href=\"https:\/\/isc.sans.edu\/diary\/31626\">https:\/\/isc.sans.edu\/diary\/31626<\/a><br \/>\n[4] <a href=\"https:\/\/www.microsoft.com\/en-us\/security\/blog\/2021\/08\/18\/trend-spotting-email-techniques-how-modern-phishing-emails-hide-in-plain-sight\/\">https:\/\/www.microsoft.com\/en-us\/security\/blog\/2021\/08\/18\/trend-spotting-email-techniques-how-modern-phishing-emails-hide-in-plain-sight\/<\/a><\/p>\n<p>&#8212;&#8212;&#8212;&#8211;<br \/>\nJan Kopriva<br \/>\n<a href=\"https:\/\/www.linkedin.com\/in\/jan-kopriva\/\">LinkedIn<\/a><br \/>\n<a href=\"https:\/\/www.nettles.cz\/\">Nettles Consulting<\/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\/32428\">Go to isc.sans.edu<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A phishing with invisible characters in the subject line, (Tue, Oct 28th) While reviewing malicious messages that were delivered to our handler inbox over the past few days, I noticed that the \u201csubject\u201d of one phishing e-mail looked quite strange when displayed in the Outlook message list\u2026 As you can see, once the message was [&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-8034","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\/8034"}],"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=8034"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/8034\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=8034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=8034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=8034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}