Stable Version (2.0)
SmuggleShield is a browser extension that aims to prevent basic HTML smuggling attacks by detecting common patterns. While this is not a comprehensive or bulletproof solution, it is an attempt to provide an additional layer of security during browsing or during your red/puprle team exercise.
The extension is compatible both on Chrome and Edge for Mac and Windows OS. Enable developer mode under extension settings and click on "Load unpacked" in the "SumggleSheild" folder. The extension would be up and running. Blocked URLs are stored in extension cache up to 10 days with blocked pattern, URL, and timestamp, which can be reviewed by clicking on extension then "Export Blocked Content Logs", the current stable version also has key fatures such as "URL Whitelisting" because sometimes SmuggleShield could take few seconds extra to load a page because it scans every elements of the webpage but with this key feature (URL Whitelisting) you can reduce the overhead
First, the HTMLSmugglingBlocker
analyzes webpage content and combines both pattern-based detection and ML-based analysis. The MLDetector then extracts six key features (base64Length
, blobUsage
, downloadAttr
, scriptDensity
, encodingFunctions
, binaryManipulation
) and makes predictions using a 0.75 confidence threshold. Then its a continuous learning loop where the MLMonitor
tracks performance metrics and feeds results back to improve detection accuracy, with all learned patterns persisted in chrome.storage.local
for adaptation to new threats.
ML-model-proof-of-concept.mov
SmuggleShield-proof-of-concept.mov
SmuggleShield can protect against HTML smuggling attempts in incognito mode, but requires manual activation. To enable incognito protection: open Chrome's extension management page (chrome://extensions/
), click "Details" on SmuggleShield, and toggle "Allow in incognito". Note: This setting is disabled by default as per Chrome's security policy. When enabled, the extension will maintain separate states for normal and incognito sessions to preserve privacy, while providing the same level of protection against HTML smuggling attempts in both modes.
SmuggleShield - Currently, the GitHub version is more better than the one published on Chrome webstore.
Sr. No. | Details | Reference |
---|---|---|
1 | Quakbot campaign (14th July 2022) | GitHub |
2 | DCRat malware via HTML Smuggling | X (Twitter) |
3 | Pikabot (TA577, Version 1.1.15-ghost) | GitHub |
4 | AsyncRAT delivered via malspam campaign | X (Twitter) |
I have taken multiple code references from StackOverflow/Github and file smuggling samples from delivr[dot]to. Hence, special thanks to them!