@ai-ecoverse/slicc-bios 2.1.0 → 2.2.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
CHANGED
|
@@ -521,15 +521,16 @@ An older extension, or one that cannot report a supported release version, refus
|
|
|
521
521
|
|
|
522
522
|
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.
|
|
523
523
|
- **Hidden targets:** `Target.getTargets` and the target events leave protected targets out.
|
|
524
|
-
- **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.
|
|
524
|
+
- **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. On the link route, an ordinary iframe under a protected parent is still over-blocked (`C3.ordinary-parent-iframes.page` is a known row there, #1663): its context can't be evaluated through the guard.
|
|
525
525
|
- **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.
|
|
526
526
|
- **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.
|
|
527
527
|
- **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.
|
|
528
|
+
- **Credential origins (the identity provider seven signs in with):** the Adobe IMS hosts seven signs in with (`https://ims-na1.adobelogin.com` and `https://ims-na1-stg1.adobelogin.com`, from `os/adobe.js`) keep their cookies and web storage out of export on every route, always, and the guard fails closed. The guard reads slicc-browsers' `catalog.credentialOrigins` list, which names the same two hosts, and keeps the IMS hosts from `os/adobe.js` as a floor: a later catalog can add hosts, but one that leaves an IMS host out doesn't reopen its export, and a change to the host seven signs in with is covered without waiting for a catalog release. A `credentialOrigins` field the guard can't read (not a list of origins) makes it withhold the cookies and storage of every origin. A URL or origin is a credential origin when its host is one of those hosts (`http` or `https`, any port); a cookie domain or a top-level site is one when it covers one of them (`adobelogin.com` does; `x.ims-na1.adobelogin.com`, `other.adobelogin.com` and `.adobe.com` don't). Cookie lists (`Network.getCookies`, with or without `urls`, `Network.getAllCookies`, `Storage.getCookies`, `Page.getCookies`) leave out those cookies, partitioned cookies under such a site and any cookie without a domain. Cookie writes and deletes naming one by `url`, `domain` or `partitionKey` (`Network.setCookie`, `setCookies`, `deleteCookies`, `Page.deleteCookie`, `Storage.setCookies`) are refused with the catalog's `credentialOrigins.refusal` text, and so is every `Storage.*`, `IndexedDB.*`, `CacheStorage.*`, `DOMStorage.*` and `FileSystem.*` command whose origin, storage key (its top-level site too), cache id or site names one, or can't be parsed. `Network.clearBrowserCookies` and `Storage.clearCookies` keep the rule above. `Storage.getAffectedUrlsForThirdPartyCookieMetadata` leaves those URLs out, and storage events naming one are dropped. `Cookie` and `Set-Cookie` headers, `headersText` lines and `associatedCookies`, `blockedCookies` and `exemptedCookies` are stripped from the `Network` and `Fetch` events of a request whose URL, at any hop, is on such a host's site (a parent-domain cookie reaches every host there), and of a request the guard hasn't seen a URL for. On any other request those lists still leave out an entry whose cookie, or whose `Set-Cookie` line's `Domain` (quoted or not, any case), names a credential or protected origin, an entry whose `Domain` isn't a host name, and an entry with neither a cookie nor a line. An `Audits.issueAdded` cookie issue is dropped when its cookie URL, request, cookie domain or raw `Set-Cookie` line names a protected or credential origin, or when the raw line's origin can't be told. The pages stay drivable: they are listed and attachable, and navigation, `Runtime`, `DOM`, `Input`, `Page` and screenshots work as on any ordinary page, because stock clients sign in by filling and clicking the IdP's page through script. So in-page script (`Runtime.evaluate`, Playwright locators) can still read the non-HttpOnly cookies (`document.cookie`), `localStorage`, `sessionStorage` and IndexedDB of those origins, and response bodies, OAuth codes in URLs and `Authorization` headers on a drivable IdP page are not withheld. A sign-in URL that names seven's client or callback stays protected as a whole, as above. The catalog lists the two Adobe IMS hosts as credential origins: their cookies and storage cannot be exported. The Adobe login-UI hosts (`auth.services.adobe.com`, `adobeid-na1.services.adobe.com`) and federated corporate SSO, MFA and consent hosts are not covered: pages on them are drivable and their cookies and storage are exportable, `Domain=.adobe.com` cookies included, because listing a login-UI host would have made every `.adobe.com` cookie a credential cookie. A host added to the catalog's `credentialOrigins` reaches bios with the pinned slicc-browsers release.
|
|
528
529
|
- **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. An iframe that Chrome still names with an empty URL when the guard checks it is read from a fresh frame tree of the page it attached under, used only when that tree lists the frame once at an `http:`, `https:` or `data:` address no other target claims and every recorded parent names that page, and judged again at its next target info change or navigation; otherwise it still fails closed.
|
|
529
530
|
- **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.
|
|
530
531
|
- **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.
|
|
531
532
|
- **Interception goes through `Fetch`:** the deprecated `Network` interception commands (`Network.setRequestInterception`, `continueInterceptedRequest`, `getResponseBodyForInterception`, `takeResponseBodyForInterceptionAsStream`) are refused before Chrome, with a text that says to use `Fetch` instead. A `Network.requestIntercepted` for a protected request never reaches the program; the guard continues it itself, the way it continues a protected `Fetch` pause.
|
|
532
|
-
- **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.
|
|
533
|
+
- **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. The same check covers the credential origins below ([#1632](https://github.com/ai-ecoverse/slicc-bios/issues/1632)): a `Domain` that covers one of their hosts is refused, and so is any `Set-Cookie` line in a reply to a request on one of their hosts, or to a request whose URL the guard didn't see, because a host-only cookie there is theirs.
|
|
533
534
|
- **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.
|
|
534
535
|
- **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.
|
|
535
536
|
- **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:
|
|
@@ -547,7 +548,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
547
548
|
|
|
548
549
|
- **Known limit:** extensions that refuse `Target.setAutoAttach` leave an ordinary page with a cross-site iframe locked for paint, DOM, CSS, accessibility and input. The guard fails closed when it cannot place the child.
|
|
549
550
|
|
|
550
|
-
**Sign-in tabs are held for life (#754).** A sign-in popup shows its token or code in its URL and on the IdP's pages, and the guard cannot scrub a page's own content. The owner holds it before sign-in starts. A held tab and its descendants are not listed, attached, auto-attached or reported to a program on any origin until they close.
|
|
551
|
+
**Sign-in tabs are held for life (#754).** A sign-in popup shows its token or code in its URL and on the IdP's pages, and the guard cannot scrub a page's own content. The owner holds it before sign-in starts. A held tab and its descendants are not listed, attached, auto-attached or reported to a program on any origin until they close. bios's own tests and real-Chrome rows check the hold; the shared `C7.sign-in-hold` vectors of slicc-browsers can't measure it until the sign-in hooks (slicc-browsers#318) ship, so the guard-set harness declares `signInHold` false until then, and #1641 sets it true with the hooks.
|
|
551
552
|
- **Seven's own sign-in:** the popup opens on `about:blank#slicc-sign-in-<nonce>`. bios asks the owner over the `slicc-held` BroadcastChannel to hold it. The owner finds that target by its marker URL on each browser host (slicc-extension, a DevTools port, and a `seven: true` browser from a CLI linked on this computer), holds it, and only then is the popup sent to the IdP. slicc-cli's link guard shows seven's own popup to bios as plain `about:blank`, without the marker, so on a linked browser the owner goes by a baseline instead. Before it opens the popup, the sign-in asks the owner for a baseline (`{ type: 'base', marker }`). The owner lists every linked browser and keeps the ids it saw for that marker. Only then does it answer `based`, and only then does the sign-in open the popup. Its hold ask then says `based: true` and `expect: 1`, the number of popups the sign-in opened. On each linked browser, the owner holds, as soon as it sees them, every page on `about:blank` that one of seven's or the vault's pages opened and that wasn't in the baseline. Every listing it takes starts after `window.open` has returned. It answers `held` only when two listings in a row show the same new pages, the number of new pages it has seen in all equals `expect`, and all of them are held. If it sees more new pages than that, such as a blank another seven page opened at the same moment, it can't tell which one is the sign-in. It keeps them all held and answers `unheld`, so the sign-in stops before the IdP, and trying again works. If it sees fewer by the end of the hold's 5 s, it answers `unheld` too. `held` means the owner holds as many new pages as the sign-in opened, not that the popup is one of them: a blank another seven page opened, listed alone in two listings in a row while the popup isn't listed yet, gets `held` too. So when a linked browser took part in the ask, a `held` answer also puts the sign-in in flight, as a linked flight. The flight rule for it applies only on linked browsers: while a linked flight is on, the watcher and the sweep on a linked browser, and a program's guard on the link route, hold for life every page that one of seven's or the vault's pages opened, cross-origin pages included, as soon as they see it. A program's guard on slicc-extension and a DevTools port honours a `none` flight, as the watcher and sweep there do, but a linked flight changes nothing on those hosts, so a tab seven opens there, noopener included, stays listed and drivable as before, and their sign-in tabs are held by the marker. So the popup is held on whatever page it is first seen on: the authorize URL, a landing page IMS redirected to before anything listed it, or the login page. That doesn't depend on its URL naming seven's client id or callback, and its later pages (login, MFA, consent) stay held. The other page's blank that got the answer stays held as well: a hold is never released (#754), and the opener rules hold a protected `about:blank` anyway. A protected `about:blank` page that was already open, such as a leftover vault, MCP or sprinkle popup, is no longer taken for the sign-in, and the sign-in's hold doesn't take it. The owner takes one baseline at a time: the next sign-in's baseline waits until the previous sign-in's hold is answered, or 5 s after its baseline when no hold came, so an overlapping sign-in's baseline already lists the earlier popup. The sign-in fails closed in each of these cases: no `based` answer within 6 s while bios sees a host; a linked browser the owner couldn't list at the baseline, or one that wasn't there then; a baseline that was lost or expired; no new protected `about:blank` within the 5 s. Each says it couldn't keep the window out of reach. The marker hosts (slicc-extension, a DevTools port) still go by the marker, as before, and ignore the baseline. A hold ask without `based`, such as the agent's MCP OAuth and device-code popups, still holds every protected `about:blank` page on a linked browser, as before. The sweep, the watcher and the guard then treat a held tab on a linked browser as on the other hosts: it isn't listed, attached or read on any later page until it closes. The owner answers `held` once it has held the tab on every listed host, `none` when no host is listed, and `unheld` otherwise, including when a listed host can't be opened. On `unheld`, on `none` while bios sees a host, or on no answer within 6 s while a host is connected, the sign-in stops before the IdP and says so; it never goes on unheld. On `none`, the sign-in goes on in flight too, as before: that flight counts on every host, for the watcher and the sweep. A flight is kept per marker in `localStorage` (`slicc-os.sign-in-flight`, so a reload keeps it) for at most 11 minutes, with whether it is linked. An older bios's plain number still counts on every host; an entry that doesn't say whether it is linked counts as linked. The reverse doesn't hold: an older bios still running in another seven tab can't read the new entries and sees no flight, which only matters while tabs of both versions are open during an update. Seven's sign-in ends its own flight when it ends (its token, an error, Cancel or the timeout), so one sign-in ending doesn't end another's, in this tab or another. Before any program gets a browser connection, the owner sweeps every host: it holds sign-in tabs still on `about:blank`, and while a sign-in is in flight, every page a protected page opened. So a host that connects in the middle of a sign-in never sees its tab.
|
|
552
553
|
- **Sign-in pages by their URL:** a page whose URL names seven's callback (`www.sliccy.ai/auth/callback`) or a client id seven signs in with is protected, also when the URL is percent-encoded up to five times or nested in another URL. On the link route, slicc-cli's link guard has already cut a protected URL inside another URL down to its origin, so `redirect_uri=https%3A%2F%2Fwww.sliccy.ai%2Fauth%2Fcallback` reaches bios as `redirect_uri=https://www.sliccy.ai`. On that route only, `https://www.sliccy.ai` or `www.sliccy.ai` on its own inside a URL (followed by `?`, `&`, `#`, `;`, a space or the end) counts as seven's callback too, so such a sign-in page stays hidden without the hold. A page there that only links to seven's home page is hidden too, and other `sliccy.ai` addresses aren't affected. On every route (a DevTools port, the link route and slicc-extension), a URL whose `redirect_uri` parameter names seven's bare origin `https://www.sliccy.ai`, with or without a trailing slash or a path, plain or percent-encoded up to five times, counts as seven's callback too (#1638), which also hides any other page whose URL carries such a `redirect_uri`, for example a link back to seven on another site. Such a URL only hides a page while the page is on it, also one that seven or the vault opened: once it leaves, it is listed again, unless a flight rule above held it.
|
|
553
554
|
- **Puppeteer and a held tab:** over the DevTools port and the link, Chrome attaches a held tab's `tab` target before the guard knows which page it holds. When the guard cuts that tab's session on the browser session (its page is held or protected, on the tab's first command or later, or the tab's own address is protected at its attach), it reports `Target.detachedFromTarget` if the client saw it attach and `Target.targetDestroyed` in every case, once, so Puppeteer's connect, which waits for every tab it saw attach to get a page or go away, finishes while a sign-in is held.
|
|
@@ -565,7 +566,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
565
566
|
- Seven's Adobe sign-in on a linked browser is bound to its popup by the count and by the flight, not by the popup's id or URL. The flight needs `localStorage`: if seven can't write it, there is no flight and the count is all there is, which can take another page's blank for the popup. A popup that outlives its own flight, which ends when the sign-in ends or after 11 minutes, is judged by the opener rules again if it wasn't seen before. Seven closes the popup on an error, Cancel and the timeout, and the callback page closes itself.
|
|
566
567
|
- The `slicc-held` channel is same-origin. A seven-origin document can post `{ type: 'held', marker }` itself, and the sign-in then sends an unheld popup to the IdP. That is older than the baseline: a program with the browser grant can't run script on seven's origin, because the guard refuses it.
|
|
567
568
|
- The baseline is a round trip to the owner, and over the link a listing, before `window.open`. If that takes longer than the browser's user-activation window, Chrome blocks the popup, and the sign-in says so.
|
|
568
|
-
- **Cookies and storage are filtered by origin, not by the hold.** On all three routes (DevTools port, link, slicc-extension), bios's guard applies the same filters, and none of them depend on the route. Cookie answers (`Network.getCookies`, `Network.getAllCookies`, `Storage.getCookies`, `Page.getCookies`) drop a cookie whose domain, URL or partition top-level site is a catalog-protected origin (`sliccy.ai` and its subdomains, the vault, seven's origin). `DOMStorage.*`, `IndexedDB.*`, `CacheStorage.*` and `Storage.*` commands are refused when a param (`securityOrigin`, `origin`, `storageKey`, `cacheId`, `ownerOrigin`, `domain`, nested in `storageId` or `storageBucket` too) names a protected origin. Their events are dropped the same way. Network and Fetch events and bodies are dropped per request when the request, its document, initiator, `Referer`/`Origin` or its frame is protected. `Network.getCookies` is refused when every URL in `urls` is protected, and on its own when a URL is a sign-in URL by the rule above. The link route adds slicc-cli's link guard and slicc-extension adds its shield; both use the same catalog. A held tab is not listed, attached or read, but the hold doesn't touch browser-wide reads.
|
|
569
|
+
- **Cookies and storage are filtered by origin, not by the hold.** On all three routes (DevTools port, link, slicc-extension), bios's guard applies the same filters, and none of them depend on the route. Cookie answers (`Network.getCookies`, `Network.getAllCookies`, `Storage.getCookies`, `Page.getCookies`) drop a cookie whose domain, URL or partition top-level site is a catalog-protected origin (`sliccy.ai` and its subdomains, the vault, seven's origin). `DOMStorage.*`, `IndexedDB.*`, `CacheStorage.*` and `Storage.*` commands are refused when a param (`securityOrigin`, `origin`, `storageKey`, `cacheId`, `ownerOrigin`, `domain`, nested in `storageId` or `storageBucket` too) names a protected origin. Their events are dropped the same way. Network and Fetch events and bodies are dropped per request when the request, its document, initiator, `Referer`/`Origin` or its frame is protected. `Network.getCookies` is refused when every URL in `urls` is protected, and on its own when a URL is a sign-in URL by the rule above. The link route adds slicc-cli's link guard and slicc-extension adds its shield; both use the same catalog. A held tab is not listed, attached or read, but the hold doesn't touch browser-wide reads. The IdP origins seven signs in with (`ims-na1.adobelogin.com`, `ims-na1-stg1.adobelogin.com`) aren't protected origins, but they are credential origins: on every route the guard keeps their cookies and storage out of export, strips `Cookie` and `Set-Cookie` from the events of requests to them, and refuses cookie writes to them (see **Credential origins** under [Browser automation](#browser-automation)). In-page script on a drivable IdP page can still read their non-HttpOnly cookies and web storage, and the bodies of an ordinary page's requests to the IdP stay readable. The hosts the Adobe login UI uses after `/ims/authorize` are not covered. Pages on them are drivable, and their cookies and storage are exportable. Federated corporate SSO, MFA and consent hosts can't be enumerated.
|
|
569
570
|
- The callback match still misses a cut callback wrapped in JSON quotes or in `<>` or `()`, an incomplete `…/auth`, and IdP pages with no callback in their URL. Those rely on the hold.
|
|
570
571
|
|
|
571
572
|
A tab a program creates through the guard opens in the background, behind seven, unless it passes `background: false`. A program that needs seven to keep rendering should open tabs, the default, and not `newWindow`: even unfocused, a new window can cover seven's window, and Chrome then throttles seven ([slicc-extension#105](https://github.com/ai-ecoverse/slicc-extension/issues/105)).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
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",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ai-ecoverse/slicc": "1.68.1",
|
|
53
|
-
"@ai-ecoverse/slicc-browsers": "1.
|
|
53
|
+
"@ai-ecoverse/slicc-browsers": "1.27.2",
|
|
54
54
|
"@ai-ecoverse/slicc-cdp": "1.54.0",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
56
|
-
"@ai-ecoverse/slicc-shared-web": "2.
|
|
56
|
+
"@ai-ecoverse/slicc-shared-web": "2.15.0",
|
|
57
57
|
"@ai-ecoverse/slicc-spectrum": "2.19.1",
|
|
58
58
|
"@ai-ecoverse/slicc-vault": "1.29.0",
|
|
59
59
|
"@biomejs/biome": "2.6.7",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"name": "slicc-bios-packages",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@ai-ecoverse/slicc-audio": "1.2.0",
|
|
10
|
-
"@ai-ecoverse/slicc-browsers": "1.
|
|
10
|
+
"@ai-ecoverse/slicc-browsers": "1.27.2",
|
|
11
11
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
12
12
|
"@ai-ecoverse/slicc-devices": "1.4.0",
|
|
13
13
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"node_modules/@ai-ecoverse/slicc-browsers": {
|
|
43
|
-
"version": "1.
|
|
44
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-browsers/-/slicc-browsers-1.
|
|
45
|
-
"integrity": "sha512-
|
|
43
|
+
"version": "1.27.2",
|
|
44
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-browsers/-/slicc-browsers-1.27.2.tgz",
|
|
45
|
+
"integrity": "sha512-TIf3ZWPnyF0cZg6WiruzUh3c9ZNBV/H3UukF9ZNacKLHJjmqDxPpHCUR+oq7jXwtQvhphm5bO9E11EVmzjDG9A==",
|
|
46
46
|
"license": "Apache-2.0",
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=24"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"description": "Packages the BIOS installs from npm into OPFS, pinned by package-lock.json and pnpm-lock.yaml",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@ai-ecoverse/slicc-audio": "1.2.0",
|
|
7
|
-
"@ai-ecoverse/slicc-browsers": "1.
|
|
7
|
+
"@ai-ecoverse/slicc-browsers": "1.27.2",
|
|
8
8
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
9
9
|
"@ai-ecoverse/slicc-devices": "1.4.0",
|
|
10
10
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
@@ -12,8 +12,8 @@ importers:
|
|
|
12
12
|
specifier: 1.2.0
|
|
13
13
|
version: 1.2.0
|
|
14
14
|
'@ai-ecoverse/slicc-browsers':
|
|
15
|
-
specifier: 1.
|
|
16
|
-
version: 1.
|
|
15
|
+
specifier: 1.27.2
|
|
16
|
+
version: 1.27.2
|
|
17
17
|
'@ai-ecoverse/slicc-capture':
|
|
18
18
|
specifier: 1.5.0
|
|
19
19
|
version: 1.5.0
|
|
@@ -52,8 +52,8 @@ packages:
|
|
|
52
52
|
engines: {node: '>=24', slicc-kernel: '>=1.153.0'}
|
|
53
53
|
hasBin: true
|
|
54
54
|
|
|
55
|
-
'@ai-ecoverse/slicc-browsers@1.
|
|
56
|
-
resolution: {integrity: sha512-
|
|
55
|
+
'@ai-ecoverse/slicc-browsers@1.27.2':
|
|
56
|
+
resolution: {integrity: sha512-TIf3ZWPnyF0cZg6WiruzUh3c9ZNBV/H3UukF9ZNacKLHJjmqDxPpHCUR+oq7jXwtQvhphm5bO9E11EVmzjDG9A==}
|
|
57
57
|
engines: {node: '>=24'}
|
|
58
58
|
|
|
59
59
|
'@ai-ecoverse/slicc-capture@1.5.0':
|
|
@@ -264,7 +264,7 @@ snapshots:
|
|
|
264
264
|
- utf-8-validate
|
|
265
265
|
- webgpu
|
|
266
266
|
|
|
267
|
-
'@ai-ecoverse/slicc-browsers@1.
|
|
267
|
+
'@ai-ecoverse/slicc-browsers@1.27.2': {}
|
|
268
268
|
|
|
269
269
|
'@ai-ecoverse/slicc-capture@1.5.0': {}
|
|
270
270
|
|