CloFix Shield · Feature guide

File / Picture Guard

Pic ba file-er vitore script, URL, ba tracker thakle open hobe na - block.

Same idea on Android app (File Threat Guard) and browser extension (Protection #23). Heuristic scan before open.

Android File Threat Guard Extension #23 File/Picture Guard Blocks script · URL · tracker Version Extension 1.5.0+

Ki block kore?

File/picture open er age content sample scan. Hit thakle open bondho.

JS

Script

<script>, javascript:, onload=, macros, PHP/ASP markers, shell hints.

URL

URL bind

Embedded http(s): / data: links inside image metadata, SVG, docs (benign xmlns skipped).

TR

Tracker

GA, GTM, DoubleClick, Facebook pixel, Hotjar, Mixpanel, CloFix threat-list tracker hosts.

Platform coverage

Android moto extension - dui side e same protection goal.

Android

File Threat Guard

Protection screen toggle. Download / open intercept.

  • Engine: file_embedded_threat_guard
  • FileThreatGuardActivity - open block + Activity log
  • FileThreatDownloadReceiver - download scan
  • FileEmbeddedThreatScanner - script / backdoor / EICAR / malicious link / APK risk
  • Default: ON
Browser extension

#23 File/Picture Guard

Options → Protections → item 23. Needs sign-in + Protection ON.

  • Content: click hold + inline SVG scrub
  • Background: SCAN_EMBEDDED_FILE + navigation park for SVG/HTML
  • Pics/docs: PNG, JPG, WebP, PDF, Office, ZIP…
  • Blocked page reason: embedded script / URL / tracker
  • Default: ON (1.5.0+)

How it works

Open attempt → sample bytes → marker / URL / tracker match → block or allow.

01 · OPEN

User taps/clicks a picture or file (or top-level SVG/HTML nav).

02 · HOLD

Extension: sync preventDefault / park tab. Android: intercept open intent.

03 · SCAN

Read content sample (metadata + ASCII strings in binary). Match script / URL / tracker.

04 · DECIDE

Hit → block + toast / blocked page / Activity. Clean → allow open.

File types

Scanned when opened or downloaded (best-effort).

Category Examples Notes
Pictures png jpg jpeg gif webp bmp ico tiff avif heic svg EXIF / polyglot ASCII URLs & scripts
Documents pdf doc docx docm xls xlsx xlsm ppt pptx rtf Macro / OLE / embedded link markers
Web / scriptable svg html htm xml js mjs hta vbs Park before execute (XSS SVG safe)
Archives zip rar 7z gz Sample scan; Android may deep-scan ZIP/APK

Android vs Extension

Capability Android Extension
Toggle in UI Protection → File Threat Guard Options → #23
Block open Yes (guard activity) Yes (click + navigation)
Download scan Yes (receiver) Via link click / nav scan
Inline SVG scrub N/A (file open path) Yes (DOM MutationObserver)
Signed rule sync Threat hosts for malicious links Same threat map + built-in tracker list
Needs login / protect ON App protection context Google sign-in + Shield ON

Test (Extension)

Local demo (recommended)

  1. cd browser-extension/test && python3 -m http.server 8765
  2. Open http://127.0.0.1:8765/file-embed-guard-demo.html (http, not https)
  3. CloFix 1.5.0+ Reload → Sign in → Protection ON → #23 ON
  4. Click demos: SVG script, URL bind, javascript: picture, data SVG, sample files

Online SVG XSS sample

  1. https://netsec.expert/examples/stored-xss.svg
  2. Expected: CloFix blocked page - alert should not run
Educational samples only. Do not use these patterns to attack others.

Test (Android)

Android

Steps

  • Open CloFix → Protection → enable File Threat Guard
  • Download or open a file that embeds a script/link (e.g. SVG with <script>)
  • Open should show CloFix block screen + Activity entry
Both

Clean file

Normal photos / PDFs without script, tracker, or URL payload should open after scan.

  • False positives possible on files that legitimately embed many http links
  • xmlns / W3C schema URLs are ignored

Code map

Area Path
Android scanner android/engines/impl/.../file/FileEmbeddedThreatScanner.kt
Android open block android/app/.../file/FileThreatGuardActivity.kt
Android download android/app/.../file/FileThreatDownloadReceiver.kt
Extension content browser-extension/engines/threats/file-embed-guard.js
Extension scan / nav browser-extension/background.js (SCAN_EMBEDDED_FILE)
Extension demo browser-extension/test/file-embed-guard-demo.html