@ai-ecoverse/slicc-browsers 1.45.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/catalog.json +7 -2
- package/engine/engine-wasm.mjs +1 -1
- package/engine/engine.wasm +0 -0
- package/guard-driver.mjs +1 -0
- package/guard-runner.mjs +38 -2
- package/guard-vectors.json +366 -87
- package/package.json +4 -4
- package/protected.json +210 -87
- package/protected.mjs +31 -7
- package/schema/catalog.schema.json +22 -2
- package/schema/guard-vectors.schema.json +11 -1
- package/schema/protected.schema.json +2 -2
package/README.md
CHANGED
|
@@ -146,16 +146,16 @@ slicc-cli's `test/integration/corpus_test.go` is a complete harness.
|
|
|
146
146
|
|
|
147
147
|
## Protected origins
|
|
148
148
|
|
|
149
|
-
Browser control must never navigate to, open, attach to, or read
|
|
150
|
-
- **seven and the vault**:
|
|
151
|
-
- **the browser's own privileged pages**: `chrome://` and
|
|
149
|
+
Browser control must never navigate to, open, attach to, or read cookies or storage of:
|
|
150
|
+
- **seven and the vault**: `sliccy.ai` hosts one label deep, bar a few listed ones, over HTTP(S), any port; apex-domain cookies too, but not apex or deeper pages;
|
|
151
|
+
- **the browser's own privileged pages**: `chrome://` and other Chromium browsers' equivalents, `devtools://`, `chrome-extension://` (where password managers and wallets live), `file://`, and Chrome's own UI targets. The new tab page is the one exception;
|
|
152
152
|
- **a program's extra seven origins**.
|
|
153
153
|
|
|
154
|
-
URLs are judged
|
|
154
|
+
URLs are judged as the browser parses them, so `blob:`, `view-source:` and `about:` aliases, backslashes, encoded dots and full-width letters can't sneak past. A URL the guard can't parse counts as protected wherever the browser might load it. A tab seven opened keeps seven's origin on `about:blank`. A refused call fails with `slicc: refused: target is on seven's origin`.
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
An extension's frame in an ordinary page doesn't make the tab protected. The frame stays out of reach: it can't be attached or read, and its URL never appears in target discovery, page reads, snapshots, accessibility trees or evaluate results. The tab's page can still be read and snapshotted. Screenshots and input are allowed only while every extension frame is hidden (no layout box or `visibility: hidden`) and none holds focus through nested documents or shadow roots; a screenshot taken as one became shown is dropped. Opacity and position don't count as hidden. A race between that check and the CDP reply is accepted. Whole-page captures and starting a screencast are refused while any extension frame is in the tab; an active screencast is stopped or its frames dropped until the frame is gone. These refusals name the extension frame, not seven. A frame of the program's own extension, or any other protected frame, still protects the whole tab. `protectedOrigins.extensionFrames` lists the schemes, methods and refusals; `protected.mjs` offers `extensionFrame(url)`.
|
|
157
157
|
|
|
158
|
-
`catalog.json`'s `protectedOrigins` holds the rules, and `protected.json` the vectors: URLs, targets, cookie domains and storage keys, each with the expected answer. A target may carry `contextOrigin`, its default execution context's origin; the rule binds a live context origin too. Origins with leading whitespace or control characters are not exercised: browsers
|
|
158
|
+
`catalog.json`'s `protectedOrigins` holds the rules, and `protected.json` the vectors: URLs, targets, cookie domains and storage keys, each with the expected answer. A target may carry `contextOrigin`, its default execution context's origin; the rule binds a live context origin too. Origins with leading whitespace or control characters are not exercised: browsers don't report them. `protected.mjs` is the reference implementation:
|
|
159
159
|
|
|
160
160
|
```js
|
|
161
161
|
import catalog from '@ai-ecoverse/slicc-browsers' with { type: 'json' };
|
package/catalog.json
CHANGED
|
@@ -703,9 +703,14 @@
|
|
|
703
703
|
]
|
|
704
704
|
},
|
|
705
705
|
"protectedOrigins": {
|
|
706
|
-
"domains": [
|
|
706
|
+
"domains": [],
|
|
707
707
|
"hosts": ["vault.sliccy.ai"],
|
|
708
|
-
"
|
|
708
|
+
"zones": [
|
|
709
|
+
{
|
|
710
|
+
"domain": "sliccy.ai",
|
|
711
|
+
"unprotectedLabels": ["get", "mcpcat", "echo", "lease-pilot"]
|
|
712
|
+
}
|
|
713
|
+
],
|
|
709
714
|
"schemes": ["https", "http"],
|
|
710
715
|
"innerSchemes": ["blob", "filesystem", "view-source"],
|
|
711
716
|
"anySchemes": ["devtools"],
|