RL Blog

Topics

All Blog PostsAppSec & Supply Chain SecurityDev & DevSecOpsProducts & TechnologySecurity OperationsThreat Research
Why RL Built Spectra Assure Community

Why RL Built Spectra Assure Community

We set out to help dev and AppSec teams secure the village: OSS dependencies, malware, more. Learn how our free tier works.

Read More about Why RL Built Spectra Assure Community
Why RL Built Spectra Assure Community

Follow us

XX / TwitterLinkedInLinkedInFacebookFacebookInstagramInstagramYouTubeYouTubeblueskyBluesky

Subscribe

Get the best of RL Blog delivered to your in-box weekly. Stay up to date on key trends, analysis and best practices across threat intelligence and software supply chain security.

The inaugural Gartner® Magic Quadrant™ for Software Supply Chain Security is outGET THE REPORT
Skip to main content
Contact UsSupportBlogCommunity
reversinglabsReversingLabs: Home
Solutions
Secure Software OnboardingSecure Build & ReleaseProtect Virtual MachinesIntegrate Safe Open SourceGo Beyond the SBOM
Increase Email Threat ResilienceDetect Malware in File Shares & StorageAdvanced Malware Analysis SuiteICAP Enabled Solutions
Scalable File AnalysisHigh-Fidelity Threat IntelligenceCurated Ransomware FeedAutomate Malware Analysis Workflows
Products & Technology
Spectra Assure®Software Supply Chain SecuritySpectra DetectHigh-Speed, High-Volume, Large File AnalysisSpectra AnalyzeIn-Depth Malware Analysis & Hunting for the SOCSpectra IntelligenceAuthoritative Reputation Data & Intelligence
Spectra CoreIntegrations
Industry
Energy & UtilitiesFinanceHealthcareHigh TechPublic Sector
Partners
Become a PartnerValue-Added PartnersTechnology PartnersMarketplacesOEM Partners
Alliances
Resources
BlogContent LibraryCybersecurity GlossaryConversingLabs PodcastEvents & WebinarsLearning with ReversingLabsWeekly Insights Newsletter
Customer StoriesDemo VideosDocumentationOpenSource YARA Rules
Company
About UsLeadershipCareersSeries B Investment
EventsBlack Hat 2026
Press ReleasesIn the News
Pricing
Software Supply Chain SecurityMalware Analysis and Threat Hunting
Request a demo
Menu
Threat ResearchJuly 21, 2026

Hidden in plain sight: How SVGs carry malicious scripts

SVGs are difficult to detect, can be snuck into content — and can do malicious and legitimate actions. Here's how malicious SVGs work.

Zaria Vuksan
Zaria Vuksan, Threat Intelligence Researcher, ReversingLabsZaria Vuksan
FacebookFacebookXX / TwitterLinkedInLinkedInblueskyBlueskyEmail Us
How SVGs Carry Dangerous Scripts

In early 2026, sources began reporting an uptick in SVG based malware. SVG, standing for scalable vector graphics, is a filetype usually utilized to create vector images. SVGs are special due to their ability to utilize Javascript.

Threat actors use this functionality to craft SVG files that can act maliciously. Malicious SVGs can take the form of fake login pages, data exfiltrators, or malicious downloaders, amongst other things. SVGs are frequently overlooked, as they are assumed to be benign images, leaving a gap in security architecture. 

SVGs are difficult to detect, can easily be snuck into emails or webpages, and are able to perform malicious and legitimate actions simultaneously. Many security solutions do not account for malicious SVGs, seeing them only as images. Here's how they work.

What is an SVG?

SVGs are a versatile and widely used image format. Originally proposed in 1994, they became the World Wide Web Consortium’s top choice for an open standard for web-based vectors in 1999, and started being mass adopted around the 2010s. Vector images scale without compression artifacts, looking good no matter the size, making them useful in a variety of situations.

They rely on writing out formulas to generate the images, as opposed to mapping specific colored pixels to specific areas (bitmap), like PNGs or JPEGs do. They keep their text embedded within them, allowing for the contents to be searchable, aiding in search engine optimization, or for image creators to include descriptions and comments. They’re written in XML, creating unique opportunities for interaction with certain applications. There are many programs that can be used to generate these files, and there is also the possibility to hand write them if one understands the syntax. 

Due to the XML based nature of SVGs, it is possible to embed Javascript with SVG files. On paper, the intended use of this feature would be to foster interactive assets or create animation, although more elaborate functions are possible. Unfortunately, Javascript is being used by malware authors to turn these seemingly harmless files into weapons. Most do not consider images when they’re thinking about malicious filetypes, but they can be used for various attacks. In most browsers, embedded Javascript will execute as a default, leaving unaware users and organizations vulnerable. 

Malicious SVGs can be categorized into three different kinds of attack: Redirector, self-contained phishing, and DOM injection/script abuse. Redirectors are the most simple, and are SVGs used to redirect users to a different site where the actual compromise takes place. Sometimes, users click an image they can’t even see to be redirected. Other times, users may be encouraged to click the image, opting into the redirect more overtly.

The secondary site may contain a malicious payload or be a phishing site. The secondary type of SVG attack is self-contained phishing pages. These will use SVG’s HTML, CSS and Javascript capabilities to create phishing pages and extract credentials. Finally, the scripts in SVGs can very directly cause harm. DOM abuse leads to cross site scripting (XXS) effects, or the Javascript itself executes malicious commands. 

While they seem like an unusual vector, SVGs have the advantage of being difficult to detect. They can easily be snuck into emails or webpages, and are able to perform malicious and legitimate actions simultaneously. Many security solutions do not account for malicious SVGs, seeing them only as images.

Examples from the wild

Recently, ReversingLabs examined a pool of recent, malicious SVG files. Multiple trends were observed, showing off facets of the aforementioned attack types. The following covers descriptions of these kinds of attacks, to show how they work in practice.

Self-contained script abuse website

This is an example of an SVG that acts as a website, including external links and a surprise Javascript payload to execute. There are multiple variations on this website, with content in a variety of languages, but the sites remain similar. The SVG encodes the entire webpage, and keeps the formatting consistent throughout. All webpages report to have the same company behind them, write extensively about online gambling, and even a link to the same personal photography blog. The website has a search function which does send the inputs to a server, but the webpage does not seem to change or redirect from its use.

Screenshot of webpage with several paragraphs of writing about online gambling.

Figure 1.1, Screenshot of webpage with several paragraphs of writing about online gambling.

Screenshot of webpage, with (non functional) links to some information on Wordpress, as well as contact information for Wordpress services.

Figure 1.2, Screenshot of webpage, with (non functional) links to some information on Wordpress, as well as contact information for Wordpress services.

The most interesting piece of the website is this block of Javascript:

A block of Javascript.

Figure 1.3 shows a block of Javascript.

This is doing a few things. For one, it’s generating an ID for the user. It’s also sending back the inputs from the search bar to the website pinche[.]php. The script calling to the chx[.]js domain is the scary part. This domain is associated with an attack most prominent in 2024 to force victims' browsers into brute-forcing passwords on Wordpress sites. Using the Internet Archive, it can be determined that this domain went through a lot of changes throughout the time of the peak of this exploit, and still was sporadically changing throughout 2025.

Screenshot of Internet Archive of activity for the webpage containing the brute force function script

Figure 1.4. Screenshot of Internet Archive of activity for the webpage containing the brute force function script(chx[.]js), showing large spikes in activity in the beginning of 2024 and moderate activity throughout 2025.

The domain contains a script for doing the brute force function, while calling to another page for a password list. While this script isn’t directly coded in the SVG, it’s being used by being called through this URL.

This example shows both the potential of SVGs to act as a webpage as well as perform XSS. While it does not act as a self contained phishing page, it shows how an SVG file can act as a webpage, and utilize event listeners to exfiltrate inputs. Styled in a different way, this could mimic legitimate pages, and deceive users into entering their credentials.

Redirector voicemail attachments

In contrast to the 2024 Wordpress abuse, 2026 has shown a flood of spear phishing attempts utilizing SVGs as fake voicemail attachments. Voicemails act as a way to redirect users from 

In the samples analyzed by ReversingLabs, SVG attachments appeared to be designed to masquerade as fake voicemail attachments. Many of them have specific emails, sometimes encoded in base64 but sometimes being plaintext, suggesting spearphishing attempts. The targets range from general department contacts (administrative or financial), to specific individuals of importance (CEOs, financial managers, and more). They primarily target industries related to healthcare, construction and banking.

screenshot of the first portion of a redirector SVG

Figure 2.1, screenshot of the first portion of a redirector SVG. A base64 encoded email address for the administrative department of an engineering firm is blacked out.

The files observed still follow the legacy of overall trends. What is especially fascinating is the sheer variety of these types of files. While there are swaths of samples that are almost identical, save for the different target emails encoded within them, many samples are vastly different. Some have comments in the file indicating use of image generators like Libre Office or Inkscape. A variety of languages were observed, with some comments or user-side text  in Spanish and Russian. Certain samples also had the excessive commenting indicative of AI generated code.

Example comment on file

Figure 2.2, Example comment on file

Most files do not contain anything to actually create images, only the malicious Javascript utility.

Example file, email is in plaintext and malicious domain is encoded, with no scripts for image creation

Figure 2.3, Example file, email is in plaintext and malicious domain is encoded, with no scripts for image creation.

The attackers use a variety of encoding methods to obfuscate the redirect domains, including breaking up the code and piecing it back together when run. The files researchers deobfuscated all were redirectors,but other types of malicious behavior may be present. Researchers extracted potentially malicious domains by decoding the payload, but were unable to access their contents. These domains are 01058telecom[.]de, qedhsp[.]cprltdf[.]es and wihportal[.]sbs. 

A novel approach

As a file format typically reserved for images, SVGs act as a novel way to perpetuate malicious actions. SVGs are used all across the internet, and while their Javascript capabilities can be benign, they can also be exploited. This exploitation turns an assumed to be harmless file into something dangerous. In order to ensure the safety of your organization, it is advised to filter emails with SVG attachments, and to maintain diligence of what you click on. Other anti-phishing protection methods can also help, like OTPs, FIDO keys, and more. A lot of SVG attacks end up redirecting to or directly acting as credential harvesting phishing sites, and this acts as another reason to enforce anti-phishing measures. SVGs cannot be treated as something benign, and organizations must be proactive at mitigating their harm.

Indicators of Compromise (IOCs)

URLs:
01058telecom[.]de
Wihportal[.]sbs.
qedhsp[.]cprltdf[.]es/

Hashes:
d9e4ae7bf23b5c6691156a6fa7fb128ea6890584
0d289ae3837acc7d076b770b6cec2a1d8b0fabf0
d632cad92dd560374eef427930cbef562b309067
c5329cfae6d94b2ba9dddaa20b1725a51104581c
771151e26a5e7d3198d3b28a919e802965482d39
effcc8433a07fb9e1b1cc2efa621487d62315177
31652250f9e4f67579a3e187806ba2cfad1792db
2b081fb89d88c93ee5339d33eb3200b69d5f3b8b
806d8283de91c116f2c56ad0aa4c7ae0b33de626  
5fa626b691613abbcc0eed2d143c3a485853d8d9  
139ec3c1b4fae48fc5d6e0d4957516f0c20633f 
97f5bfb2f8c2aa240d52345c54ef2e99b760c16e
3734b0314f01293b36efb9fbff133a332ab9d6b0  
177122bdcc5dc1ddd38a01c68b4b7c627c7a50b0
955dbf23d53832f5f1c514b116a5cc04ccc635ec
cb53af4fbf24936590f5092f717661d3579d50de
df9582a020b87af2ab67aeeb9cd48e63a1c7fa3e
7d4daac63543a754ee43cfc4e812040e6ed32ac9  
e01739c067950beb1a877b54401ae2a47962b61c
bf978f20fd2320645bda61a78ef7d652130394a1
2b48a6c9cfb3932021c7c4b567199f57802ad018
eec21fc0c0163117039b1cc2a9209ade788f4d64
997ca1f4d9e94293ddaed0a63968fd25c19e8a6c

Keep learning

  • Take a deep dive into ClickFix with RL's new report, and join the webinar to learn more about the attack technique. Plus: Get RL's open-source YARA rule.
  • Learn how Gartner® named RL a supply chain security 'Visionary.' Download: Gartner® Magic Quadrant™ for Software Supply Chain Security.
  • Get up to speed on the Agentic Development Security tools landscape in this webinar with Forrester Sr. Analyst Janet Worthington.
  • Understand the state of software security with RL's Software Supply Chain Security Report 2026. Plus: See the the webinar discussing the findings.

Explore RL's Spectra suite: Spectra Assure for software supply chain security, Spectra Detect for scalable file analysis, Spectra Analyze for malware analysis and threat hunting, and Spectra Intelligence for reputation data and intelligence.

Plus: Join the free Spectra Assure Community today to get hands-on with RL's binary analysis-based software supply chain security platform.

Tags:Threat ResearchResearcher's Notebook

More Blog Posts

Trust ClickFix

ClickFix doesn't attack your knowledge. It attacks your trust.

One of the most effective attack methods I've analyzed this year runs on legitimate tools and willing users — and AV and EDR is blind to it.

Learn More about ClickFix doesn't attack your knowledge. It attacks your trust.
ClickFix doesn't attack your knowledge. It attacks your trust.
The tale of ClickFix: 5 takeaways from RL’s new threat report

The tale of ClickFix: 5 takeaways from RL’s new threat report

New RL research explains why ClickFix attacks are multiplying — and why reliable detection requires going beyond AV and EDR.

Learn More about The tale of ClickFix: 5 takeaways from RL’s new threat report
The tale of ClickFix: 5 takeaways from RL’s new threat report
Device code phishing

Device code phishing bypasses password stealing

The Microsoft 365 phishing campaign persuades victims to complete a real authentication process that authorizes an attacker-controlled device.

Learn More about Device code phishing bypasses password stealing
Device code phishing bypasses password stealing
Cloud security ITScape

How to defend ARM64 cloud infrastructure from ITScape

RL has documented CVE-2026-46316, and developed two YARA rules to help detect exploits of the multi-tenant cloud vulnerability.

Learn More about How to defend ARM64 cloud infrastructure from ITScape
How to defend ARM64 cloud infrastructure from ITScape

Spectra Assure Free Trial

Get your 14-day free trial of Spectra Assure for Software Supply Chain Security

Get Free TrialMore about Spectra Assure Free Trial
Blog
Events
About Us
Webinars
In the News
Careers
Demo Videos
Cybersecurity Glossary
Contact Us
reversinglabsReversingLabs: Home
Privacy PolicyCookiesImpressum
All rights reserved ReversingLabs © 2026
XX / TwitterLinkedInLinkedInFacebookFacebookInstagramInstagramYouTubeYouTubeblueskyBlueskyRSSRSS
Back to Top