botrefund.com
← BotRefund Home 跨窗口 DOM、序列化与驱动金丝雀

浏览器插件对象序列化

BotRefund tests native non-cloneability and class-extension behavior on navigator.plugins using window.postMessage to detect plain-JavaScript plugin mocks.

检测内容

Sharing the runtime structured-clone probe, telemetry passes navigator.plugins into window.postMessage, verifying that the browser enforces WebIDL host-object behavior by throwing a DataCloneError instead of cloning the object.

It also tests subclassing behavior against navigator.plugins to confirm native host prototype restrictions remain intact. If a JavaScript replacement allows structured cloning or unexpected class inheritance, a host-object integrity anomaly is flagged.

为何重要

Stealth wrappers and headless spoofing scripts frequently overwrite navigator.plugins with a plain JavaScript array or custom object to fake installed browser plugins—inadvertently making navigator.plugins structured-cloneable.

评估此信号以及观察到的用户交互,可确保在验证了强大的人类行为时,不会单独处罚异常的浏览器扩展或自定义环境包装器。

说明

如何解读结果

01 预期结果

原生 PluginArray 拒绝结构化克隆

Unmodified browsers expose navigator.plugins as a non-cloneable WebIDL host object that immediately throws DataCloneError when passed to postMessage.

Example result postMessage(navigator.plugins): DataCloneError • Host restrictions: intact — Result: authentic native PluginArray
02 可能的自动化信号

纯 JavaScript PluginArray 模拟可干净地序列化

A spoofed array or proxy replacing navigator.plugins that succeeds in postMessage or allows subclassing exposes a tampered host environment.

Example result postMessage(navigator.plugins): succeeded • DataCloneError: absent — Result: spoofed plugin object detected

Forensic significance: Strong structural WebIDL tamper indicator against JavaScript navigator spoofing; analysts should pair it with related prototype checks and interaction quality.