Skip to main content

Abuse cases and their tests

This page lists the abuse cases that the plugin runtime defends against. For each case it names the defense and the test that checks it. The Playwright specs generate their packages into a temporary plugins directory, and they run in Chromium, Firefox and WebKit.

AbuseDefenseTest
Read the parent or top document, window.opener, storage or cookies; window.open, top navigation, alert; evalOpaque origin, sandbox, policyplugins.spec.ts, plugin-cannot-leave-its-frame
fetch, WebSocket, sendBeacon, images and remote import to any host, from the frame and from nested and data: workersPolicy, in workers tooplugins.spec.ts, plugin-cannot-leave-its-frame and plugin-policy-violations-reach-the-administrator
Forged host messages through window.postMessage; a write to an undeclared paramThe host ignores window messages; the authorityplugins.spec.ts, plugin-cannot-leave-its-frame
An ungranted or unknown command, core:mcp:call, reading the widget's mcp_tool, a javascript: link, markup in a notice, prototype pollutionAuthority, host-only link, plain text, separate realmplugins.spec.ts, plugin-cannot-leave-its-frame
Forged violation events; requests to 250 originsisTrusted; caps; text onlyplugin-admin-journey.spec.ts
Messages outside the protocol; protocol violationsSchema; 3 in 10 seconds end the frameframe.test.ts, authority.test.ts
Another window announcing itself as the frame; a frame asking again for a port; a message on another frame's port or through window.postMessageOne port, handed once to the frame's own window; the caller is its portPluginFrame.test.tsx
A frame that navigates itselfA second load ends the framePluginFrame.test.tsx, plugins.spec.ts, a-frame-that-navigates-itself-is-ended
A frame that stops answeringA frame that misses its pings ends; a hidden frame is not pingedPluginFrame.test.tsx
A frame document with more than the shell, or without its policy firstThe document's shape; the canaryframe.test.ts, shell.conformance.test.ts
Symbolic links, odd names, too many or too large files, an id or version unlike its directory, a wrong checksum or pin, a served path outside the version, backend/ servedDiscovery and file deliverytest_widget_plugin_rules.py
Policy sources that are too broad, private or insecure, with and without confirmationsThe validatorcsp-cases.json, in csp.test.ts and test_widget_plugin_rules.py
An organization admin approves or sets a secret; a role of another organization grants accessAuthorizationtest_widget_plugins_api.py, test_widget_plugin_server_side.py
A file edited after approval; a new version; a version whose files changed before approval; an old digestThe API re-hashes a file whose size or modification time changed, and the browser checks every file against the approved digest; explicit approval bound to the reviewed digesttest_widget_plugins_api.py, plugin-admin-journey.spec.ts, bundle.test.ts, plugins.spec.ts, the-host-refuses-files-that-differ-from-the-approved-version
A route that uploads or writes plugin filesNone, except the copy of an approved version to a new number on a local stack, which every MODE but local refusestest_widget_plugins_api.py, test_widget_plugin_development.py
A proxy aimed at a private or metadata address, a name that resolves to several addresses or changes, a bad certificate; arguments or secrets outside their placesTemplate rules and the outbound guardtest_widget_plugin_proxies.py
Reading a secret from the frame or the page; calls after narrowing or revoking; calls by users without accessServer-side secrets; availability on every calltest_widget_plugin_server_side.py, plugin-proxies.spec.ts
A backend that reads data the user may not read, with a forged, changed or expired token, or after a version changeToken, broker and identity checktest_widget_plugin_backends.py, plugin-backends.spec.ts
A widget that cites another backend's MCP server as its ownThe link resolves against its own backendbackendConnector.invalidItems.test.ts, mcpLink.test.ts
A backend that reaches the FINOS Workspace API or the internet, writes its image or data, or runs privilegedIn the examples backend's deployment: internal networks, a gateway that forwards only the API's calls, and a read-only container without capabilities or rootdocs/examples/backend/tests/test_isolation.py, run by examples.yml
What a plugin gives the agent: a skill whose text steers the model's answers, or an artifact whose data misleadsThe review lists each skill and each artifact and asks again when its text or its schema changes; a file that differs from the approved one is not given out; the data is checked against the schema the reviewer saw, and what the schema does not name is droppedtest_widget_plugin_skills.py, test_widget_plugin_artifacts.py