Skip to content
New AI Custom Form BuilderDescribe the intake form. It ships branded and end-to-end encrypted.AI Custom Form Builder is here See it build
Engineering

What Can You Build With SendSafely Actions? An SVG Scanner Proof of Concept

Discover how SendSafely Actions can enhance security by screening SVG files for malicious content, protecting your organization from emerging threats.

Brian Holyfield · 4 min read
What Can You Build With SendSafely Actions? An SVG Scanner Proof of Concept

This is the next installment in our series on practical things you can build with SendSafely Actions, following our HAR Sanitizer proof of concept. This time the subject is SVG files, a format that has been getting a lot of attention from attackers and security teams lately.

In late September, Symantec, a division of Broadcom, published a protection bulletin on SVG-borne attacks warning that malicious SVG volume jumped sharply in August, nearly doubling its six-month average. When we saw those numbers, we decided to build a proof of concept Action that screens SVG files for malicious behavior before they reach your teams.

Chart of monthly malicious SVG detections, September 2025 to September 2026

Monthly SVG-attributed detections, September 2025 to September 2026. Chart: SendSafely, from data published by Symantec, a division of Broadcom.

The underlying problem is simple: an SVG looks like an image to your security policy, but it behaves like a program in your browser. Actions give you a place to close that gap in your own environment, before a file ever reaches a downstream system.

Why This Matters Now More Than Ever

Unlike a JPEG or PNG, an SVG is not a grid of pixels. It is an XML document that the browser parses and executes. The format legitimately supports embedded JavaScript, and it can even embed arbitrary HTML, which is enough to paint a convincing full-screen login page. Email and attachment policy, meanwhile, generally classifies .svg by extension as an image: script formats like .js, .vbs, and .ps1 sit on the default blocked-attachment lists of the major mail platforms, but SVG does not. Attackers live in that gap.

Symantec’s bulletin has the full numbers, along with a breakdown of the two attack chains these files kick off: lookalike sign-in pages that harvest credentials, and malware reassembled directly in browser memory. Either way, the right place to stop it is at the file itself, before anyone opens it.

How the Action Works

Our proof of concept builds on excellent research from Binary Defense's ARC Labs team. Their post, A Closer Look at Malicious SVG Phishing, breaks down real-world malicious SVG samples, and they published an open-source detection script implementing the behavioral heuristics their researchers derived from those samples. Full credit to the ARC Labs team for both; our Action is a direct port of their detection logic into the SendSafely Actions framework.

The flow follows the same pattern as our HAR Sanitizer. When a package is finalized or a file lands in a Workspace, the workflow blocks the file and invokes a webhook pointing at an AWS Lambda function running in your own environment. The function verifies the webhook signature, then uses a customer-held Master Key to decrypt the file inside that function, so unencrypted content is never exposed to SendSafely or any third-party service.

Each SVG is then evaluated against the three Binary Defense heuristics: high entropy in the file's text, which indicates encoded or encrypted content hiding in what should be human-readable XML; the presence of script tags; and references to external script files. Any file that trips the checks returns a failing verdict and stays blocked, while clean files are unblocked automatically. A strict mode flags a file on any single indicator, and a lenient mode requires two or more, which gives you a dial for false-positive tolerance. The function logs only which indicators fired, never the file's contents.

This proof of concept is designed to run within a customer-managed environment using an AWS Lambda function invoked by SendSafely Actions. The example does not send file contents to a separate scanning service; processing occurs inside that function. Because the implementation incorporates detection logic from an external open-source project, organizations adapting this example would be responsible for evaluating, deploying, maintaining, and updating that component within their own environment.

Beyond SVG Files: What Else Can Actions Do?

The larger idea is the same one behind the HAR Sanitizer. SendSafely provides the secure exchange layer, while Actions make it possible to extend that protection with controls tailored to your organization's workflows and risk profile: inspecting file types, transforming content, enforcing internal policies, or stopping a file that should never reach a downstream system. SVG is simply a timely example, because it is a format your users will recognize as harmless and your existing filters will likely wave through.

Screening files on the way in matters both for your company's risk and for your customers' security. In addition to introducing your own safeguards with SendSafely Actions, consider these additional controls:


SendSafely: Integrated File Transfer for the Apps you Love

If you are looking for a secure way to send or receive files with anyone, or simply need a better way to transfer large files, our platform might be right for you.

Frequently asked questions

Why are SVG files a security risk?

An SVG is an XML document that the browser parses and executes, not a grid of pixels. It can contain embedded JavaScript and even arbitrary HTML, such as a fake login page, yet email and attachment policies usually treat .svg as an image rather than blocking it like script formats.

How does the SendSafely SVG scanner Action work?

When a package is finalized or a file lands in a Workspace, the workflow blocks the file and calls a webhook to an AWS Lambda function in your environment. The function decrypts the file with a customer-held Master Key, checks it, and unblocks clean files while failing files stay blocked.

What does the SVG scanner check for?

It applies three heuristics from Binary Defense’s ARC Labs: high entropy in the file’s text, the presence of script tags, and references to external script files. Strict mode flags a file on any single indicator; lenient mode requires two or more.

Does SendSafely see file contents when an Action scans them?

No. In this proof of concept, decryption and scanning happen inside an AWS Lambda function in the customer’s own environment, so unencrypted content is not exposed to SendSafely or a third-party scanning service. The function logs only which indicators fired, never the file contents.

What else can SendSafely Actions do besides scanning SVG files?

Actions let organizations add their own controls to file workflows, such as inspecting file types, transforming content, enforcing internal policies, or stopping a file before it reaches a downstream system. A related example is the HAR Sanitizer proof of concept. See SendSafely Actions.

Written by Brian Holyfield