@ai-ecoverse/slicc-bios 1.74.9 → 1.74.11

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 CHANGED
@@ -515,11 +515,13 @@ An older extension, or one that cannot report a supported release version, refus
515
515
  A browser extension's frame inside an ordinary page, such as a password manager's autofill list, does not lock the tab once the linked CLI marks the owner iframe with `sliccExtensionFrame` (version 1). Without that marker the guard behaves as on main. The frame itself stays unattachable and unread, and its URL never appears in discovery, page reads, snapshots, accessibility trees or evaluate results as plain text: redaction is text-based, so an encoded form such as `btoa(iframe.src)` can still pass. The tab's own page stays readable and snapshottable. Screenshots and input are admitted only while every such frame is hidden (no layout box or `visibility: hidden`) and none holds focus through nested documents or shadow roots; when the marker omits `hidden`/`focused`, the guard's own live check must say the same. A screenshot taken while one became shown is thrown away. Opacity and off-screen position do not count as hidden. Whole-page captures and starting a screencast are refused while any extension frame is present; a running screencast is stopped or its later frames are dropped until the frame is gone. A frame from seven's own extension, and any other protected frame, still locks the whole tab. Real-Chrome C9.frame rows stay capability-gated off until a follow-up pins a slicc-cli release that emits the marker (expected after 1.61.12). A race between the visibility or focus check and the CDP reply is an accepted limit.
516
516
  - **Hidden targets:** `Target.getTargets` and the target events leave protected targets out.
517
517
  - **Iframes are judged by their ancestry:** an `iframe` target counts as protected when its own URL is protected, or when its parent is protected, held or protected in turn. A sandboxed `about:srcdoc` frame in seven's page (a sprinkle) and an ordinary frame nested in a vault page are protected this way. The guard learns the parent from Chrome's `parentId`, from the session the iframe attached under, and from the frame chain it has recorded (`parentFrameId` and `Page.frameAttached`). An iframe is protected when these sources disagree, or when none of them names a parent. A protected iframe is left out of `Target.getTargets` and discovery events, and `Target.getTargetInfo` and `Target.attachToTarget` naming it are refused. Before every command on an iframe session, the guard reads that whole ancestry again: if any target in it has turned protected or held, or Chrome has detached the session the iframe attached under, the command is refused and the session cut. When the guard cuts a session, it first cuts every iframe session under that session's target, including iframes attached directly from the browser session.
518
+ - **Workers are judged by their parents too:** a target that is not an iframe (a worker, a worker of a worker, any other child) counts as protected when Chrome's `parentId` names a target that is protected, held, or refused in turn, whatever the child's own URL, so a worker that a protected-URL iframe or one of seven's pages created can't be described, attached by id or listed. The guard walks the whole parent chain; a cycle, a missing parent or a chain deeper than 64 fails closed, and none of these holds a target. While a parent in that chain is a page the guard opened for `Target.createTarget` whose first commit hasn't landed (a tab with an opener), the child is refused after the same wait as for the page itself, and a shown worker whose creator chain reaches such a page refuses its commands.
518
519
  - **Refused commands** answer an error: any command whose `targetId` or `frameId` is a protected target (the guard asks for the target's current URL first) (`Target.attachToTarget`, `activateTarget`, `closeTarget`, `getTargetInfo`, `Browser.getWindowForTarget` and the rest, with or without a session); any command whose `url`, origin (`origin`, `securityOrigin`, `ownerOrigin`, `topLevelSite`, `scopeURL` and the like), `storageKey`, `cacheId` or cookie `domain` is protected, at any depth of its parameters, which covers navigation, `IndexedDB.*`, `CacheStorage.*`, `DOMStorage.*`, `Storage.*`, `ServiceWorker.*` and cookie writes; `Network.clearBrowserCookies`, `Storage.clearCookies`, `ServiceWorker.stopAllWorkers`, `BackgroundService.clearEvents`, `Storage.getPrivateVerificationTokens` and `Tracing.start`, which reach every origin; `Network.loadNetworkResource`, which follows redirects the guard can't see; `IO.read` and `IO.close` on a stream the guard didn't hand out in an answer; a `ServiceWorker` command for a registration or version the guard hasn't shown; `Target.detachFromTarget` of a session the connection didn't attach; and every `Fetch.*` command without a tab session, so nothing can pause the whole browser. Free-form values such as `expression` or `headers` aren't searched.
519
520
  - **Filtered answers and events:** cookie lists leave out cookies whose domain is protected and partitioned cookies under a protected site. `Storage`, `DOMStorage`, `IndexedDB`, `CacheStorage` and `BackgroundService` events that name a protected origin are dropped, and so are service worker registrations and versions on one.
520
521
  - **Checked on attach:** a new session is handed to the program only after the guard has checked its target and read the session's frame tree, and none of them is protected. An auto-attached page or frame without a URL yet is held, with its events dropped and its commands refused, until it has one, and cut if it has none after 10 s. A target that attaches paused (`waitForDebuggerOnStart`) is resumed as soon as the guard's `Fetch` arm on its own session for that target is accepted (at most 1 s), before the rest of the guard's setup, because `Page.enable` and the frame-tree read can't finish on a paused page; it stays held the same way until the guard has placed it, and a program's own `Runtime.runIfWaitingForDebugger` doesn't wait for that setup. If the guard's `Fetch.enable` is refused, the target is cut instead of resumed. A target that is already protected or held when it attaches is resumed only as the guard cuts it, and if the read that confirms it doesn't settle within 1 s, the guard cuts it then. A paused tab with no page under it after 10 s is resumed, since the program has no session on any page in it. A tab that attaches paused is resumed once the page under it is armed the same way: until the tab runs, that page can't answer the guard's frame-tree read, and the program waits for the guard before it resumes the tab.
521
522
  - **Cut sessions:** a session whose target becomes protected (`Target.targetInfoChanged`), whose page or any frame in it is about to navigate or navigates to a protected URL (`frameRequestedNavigation`, `frameScheduledNavigation`, `frameStartedNavigating`, `frameNavigated`, `navigatedWithinDocument`, or a `Document` request), or whose context runs on a protected origin is detached at once, without the event, and its target counts as protected from then on. Any other page event that names a protected URL or origin is dropped. Its later events and the answers to its pending commands are dropped, and its commands are refused. The guard watches each session's `Page` events itself, and passes them on only when the program asked for them.
522
523
  - **Requests from protected documents:** a request whose URL, document, frame, initiator, `Referer` or `Origin` is protected never reaches the program. The guard continues its `Fetch` pause itself, drops its `Network` events, and refuses its bodies (`Network.getResponseBody`, `getRequestPostData`, `Fetch.getResponseBody` and the like). Bodies, `replayXHR` and `Fetch` replies for a request the guard hasn't seen are refused too. Extra-info events that come before their request wait up to 2 s for it, then are dropped.
524
+ - **Cookies a `Fetch` reply sets:** `Fetch.fulfillRequest` and `Fetch.continueResponse` are refused when a `Set-Cookie` or `Set-Cookie2` line (any case, in `responseHeaders` as a list or a map, in base64 `binaryResponseHeaders`, with values split at line breaks) has a `Domain`, quoted or not, that covers a protected host, and when the guard can't read those headers: another shape, a value that isn't a string, a header name that isn't a token, a line break in another header, base64 it can't decode or a `Domain` that isn't a host name. A `responsePhrase` with a CR, LF or NUL, or one that isn't a string, and a `responseCode` that isn't an integer are refused too, and a phrase with a colon has its `Domain` attributes checked the same way. The whole command is refused, never a stripped copy, and the pause can still be answered. A cookie without `Domain` is host-only, so it reaches a protected host only on a protected request, whose replies are already refused. Not covered yet: a `Domain` that covers one of the credential hosts seven signs in with, until [#1606](https://github.com/ai-ecoverse/slicc-bios/pull/1606) adds them to the same check ([#1632](https://github.com/ai-ecoverse/slicc-bios/issues/1632)).
523
525
  - **Shared checks:** commands on one session are checked in order, and a command can use the opener and surface check another command started after it arrived, provided no browser event arrived and no command other than a plain read (`DOM.describeNode`, `Runtime.getProperties`, `Page.getFrameTree`, `Target.getTargetInfo` and the like) was forwarded since that check started, and the check started at most 100 ms ago. A program that sends its reads together, such as a snapshot describing its refs, pays for about one check, not one per command. A failed check is never shared.
524
526
  - **Flat sessions only:** `Target.attachToTarget` and `Target.setAutoAttach` need `flatten: true`. `Target.sendMessageToTarget`, `Target.attachToBrowserTarget` and `Target.exposeDevToolsProtocol` are refused, so no command can be tunnelled past the guard.
525
527
  - **Stock clients' setup (group 1):** stock Playwright (`chromium.connectOverCDP`) and Puppeteer (`puppeteer.connect`) open, drive and read ordinary pages through the guard, as the shared vectors' `stockSetup` rows require. On a page session the guard admits:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.74.9",
3
+ "version": "1.74.11",
4
4
  "description": "Slim loader that boots SLICC into OPFS and serves the UI from there",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -55,7 +55,7 @@
55
55
  "@ai-ecoverse/slicc-kernel": "1.190.0",
56
56
  "@ai-ecoverse/slicc-shared-web": "2.14.4",
57
57
  "@ai-ecoverse/slicc-spectrum": "2.16.1",
58
- "@ai-ecoverse/slicc-vault": "1.26.2",
58
+ "@ai-ecoverse/slicc-vault": "1.26.3",
59
59
  "@biomejs/biome": "2.6.6",
60
60
  "aws4fetch": "1.0.20",
61
61
  "es-module-lexer": "3.0.4",
@@ -12,7 +12,7 @@
12
12
  "@ai-ecoverse/slicc-devices": "1.2.1",
13
13
  "@ai-ecoverse/slicc-kernel": "1.190.0",
14
14
  "@ai-ecoverse/slicc-spectrum": "2.16.1",
15
- "@ai-ecoverse/wasi-fnox": "1.47.0-1",
15
+ "@ai-ecoverse/wasi-fnox": "1.48.0-1",
16
16
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
17
17
  "@ai-ecoverse/wasm-bash": "5.3.0-23",
18
18
  "@ai-ecoverse/wasm-coreutils": "9.12.0-15",
@@ -169,9 +169,9 @@
169
169
  }
170
170
  },
171
171
  "node_modules/@ai-ecoverse/wasi-fnox": {
172
- "version": "1.47.0-1",
173
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/wasi-fnox/-/wasi-fnox-1.47.0-1.tgz",
174
- "integrity": "sha512-n2I/5j2XkGM470WhxkGczCLcAoD4ealFdUCZfSkaWYp+fEG1exJE1tXZLlHzEb4pwXi+fy6jvsysduUuBMw0eQ==",
172
+ "version": "1.48.0-1",
173
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/wasi-fnox/-/wasi-fnox-1.48.0-1.tgz",
174
+ "integrity": "sha512-2sB4bM8m3fbVxlHVaJla2DalKBsfYLW2ky51a5LJxmwzNnshujqA7KSzKBrSrfZr1gpSJ4W0TAPoGbDBgqeOBA==",
175
175
  "license": "MIT",
176
176
  "engines": {
177
177
  "slicc-kernel": ">=1.175.0"
@@ -9,7 +9,7 @@
9
9
  "@ai-ecoverse/slicc-devices": "1.2.1",
10
10
  "@ai-ecoverse/slicc-kernel": "1.190.0",
11
11
  "@ai-ecoverse/slicc-spectrum": "2.16.1",
12
- "@ai-ecoverse/wasi-fnox": "1.47.0-1",
12
+ "@ai-ecoverse/wasi-fnox": "1.48.0-1",
13
13
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
14
14
  "@ai-ecoverse/wasm-bash": "5.3.0-23",
15
15
  "@ai-ecoverse/wasm-coreutils": "9.12.0-15",
@@ -27,8 +27,8 @@ importers:
27
27
  specifier: 2.16.1
28
28
  version: 2.16.1
29
29
  '@ai-ecoverse/wasi-fnox':
30
- specifier: 1.47.0-1
31
- version: 1.47.0-1
30
+ specifier: 1.48.0-1
31
+ version: 1.48.0-1
32
32
  '@ai-ecoverse/wasi-pnpm':
33
33
  specifier: 12.9.1-21
34
34
  version: 12.9.1-21
@@ -116,8 +116,8 @@ packages:
116
116
  resolution: {integrity: sha512-N6Zot1/18xbRJyBGvTq9oq58P0TrIqYquvykWK87e9vPzpga329zgD2I9OVjZApYewm3D6ph6IvlwQTciFGIow==}
117
117
  engines: {node: '>=24'}
118
118
 
119
- '@ai-ecoverse/wasi-fnox@1.47.0-1':
120
- resolution: {integrity: sha512-n2I/5j2XkGM470WhxkGczCLcAoD4ealFdUCZfSkaWYp+fEG1exJE1tXZLlHzEb4pwXi+fy6jvsysduUuBMw0eQ==}
119
+ '@ai-ecoverse/wasi-fnox@1.48.0-1':
120
+ resolution: {integrity: sha512-2sB4bM8m3fbVxlHVaJla2DalKBsfYLW2ky51a5LJxmwzNnshujqA7KSzKBrSrfZr1gpSJ4W0TAPoGbDBgqeOBA==}
121
121
  engines: {slicc-kernel: '>=1.175.0'}
122
122
 
123
123
  '@ai-ecoverse/wasi-pnpm@12.9.1-21':
@@ -292,7 +292,7 @@ snapshots:
292
292
 
293
293
  '@ai-ecoverse/slicc-spectrum@2.16.1': {}
294
294
 
295
- '@ai-ecoverse/wasi-fnox@1.47.0-1': {}
295
+ '@ai-ecoverse/wasi-fnox@1.48.0-1': {}
296
296
 
297
297
  '@ai-ecoverse/wasi-pnpm@12.9.1-21': {}
298
298