@ai-ecoverse/slicc-browsers 1.26.4 → 1.27.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 +8 -6
- package/catalog.json +4 -0
- package/credential-export.mjs +1359 -0
- package/fixture-server.mjs +5 -0
- package/guard-driver.mjs +2 -0
- package/guard-runner.mjs +40 -4
- package/guard-vectors.json +396 -3
- package/package.json +4 -3
- package/protected-parent-iframes.mjs +9 -1
- package/protected.mjs +49 -0
- package/schema/catalog.schema.json +22 -0
- package/schema/guard-vectors.schema.json +22 -0
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# slicc-browsers
|
|
2
2
|
|
|
3
|
-
The browser knowledge
|
|
3
|
+
The browser knowledge SLICC's tools share. SLICC drives Chromium over the Chrome DevTools Protocol (CDP), and several programs in different languages must agree on facts:
|
|
4
4
|
|
|
5
5
|
- which browsers exist, where they are installed, and how to launch them for SLICC;
|
|
6
6
|
- how to find a browser that is already running with a debugging port, and which one to pick;
|
|
7
|
-
- which origins browser control must
|
|
8
|
-
- how to prove
|
|
7
|
+
- which origins browser control must never touch, starting with seven and the vault;
|
|
8
|
+
- how to prove a CDP guard keeps clients away from them.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
One catalog, four vector sets and schemas, shared as a Go module, Rust crate and npm package at one version.
|
|
11
11
|
|
|
12
12
|
| who | uses it for |
|
|
13
13
|
| --- | --- |
|
|
@@ -20,7 +20,7 @@ These programs can't share code, so they share data: one catalog, four vector se
|
|
|
20
20
|
|
|
21
21
|
| file | what it is |
|
|
22
22
|
| --- | --- |
|
|
23
|
-
| [`catalog.json`](catalog.json) | every known Chromium browser and Electron app, with install paths per OS, discovery and ranking rules, seven's launch flags and prefs, profile locations and
|
|
23
|
+
| [`catalog.json`](catalog.json) | every known Chromium browser and Electron app, with install paths per OS, discovery and ranking rules, seven's launch flags and prefs, profile locations, protected and credential origins |
|
|
24
24
|
| [`corpus/`](corpus), `corpus.json` | discovery conformance cases: a fake machine each, with the ranked browser list it must produce |
|
|
25
25
|
| [`protected.json`](protected.json), [`protected.mjs`](protected.mjs) | protected-origin test vectors, and a reference matcher in JavaScript |
|
|
26
26
|
| [`guard-vectors.json`](guard-vectors.json) | the CDP scenarios every guard must pass |
|
|
@@ -165,7 +165,7 @@ Browser control must never navigate to, open, attach to, or read the cookies or
|
|
|
165
165
|
|
|
166
166
|
URLs are judged the way 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 that seven opened keeps seven's origin when it goes to `about:blank`. A refused call fails with `slicc: refused: target is on seven's origin`.
|
|
167
167
|
|
|
168
|
-
A browser extension's frame inside an ordinary page, such as a password manager's autofill list, doesn't make the tab protected. The frame itself 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 own 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 while one became shown is thrown away. Opacity and position don't count as hidden. A race between the visibility or focus check and the CDP reply is accepted. Whole-page captures and starting a screencast are refused while any extension frame is in the tab
|
|
168
|
+
A browser extension's frame inside an ordinary page, such as a password manager's autofill list, doesn't make the tab protected. The frame itself 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 own 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 while one became shown is thrown away. Opacity and position don't count as hidden. A race between the visibility or focus 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 from the program's own extension, and any other protected frame, still makes the whole tab protected. `protectedOrigins.extensionFrames` lists the schemes, methods and refusals; `protected.mjs` offers `extensionFrame(url)`.
|
|
169
169
|
|
|
170
170
|
`catalog.json`'s `protectedOrigins` holds the rules, and `protected.json` the vectors: URLs, targets, cookie domains and storage keys, each with the expected answer. `protected.mjs` is the reference implementation:
|
|
171
171
|
|
|
@@ -181,6 +181,8 @@ guard.target({ url: 'about:blank', opener: 'protected' });
|
|
|
181
181
|
|
|
182
182
|
It also offers `storageKey(key)` and `unparseable(text)`. A Go or Rust implementation needs a WHATWG URL parser, not `net/url`, and must pass every vector in `protected.json`.
|
|
183
183
|
|
|
184
|
+
Credential origins (`catalog.credentialOrigins`) withhold cookie/storage export and refuse writes; pages stay drivable. Not covered hosts and Domain=.adobe.com stay exportable; see catalog + C7 notes.
|
|
185
|
+
|
|
184
186
|
## Guard vectors
|
|
185
187
|
|
|
186
188
|
A guard sits between a CDP client and the browser and keeps the client away from protected origins. `guard-vectors.json` holds the attacks every guard must pass: navigation, redirects, popups, frames, interception, cookies, storage, privileged and error pages, foreign worlds, debugger tricks and session overrides.
|
package/catalog.json
CHANGED
|
@@ -771,6 +771,10 @@
|
|
|
771
771
|
},
|
|
772
772
|
"refusal": "slicc: refused: target is on seven's origin"
|
|
773
773
|
},
|
|
774
|
+
"credentialOrigins": {
|
|
775
|
+
"origins": ["https://ims-na1.adobelogin.com", "https://ims-na1-stg1.adobelogin.com"],
|
|
776
|
+
"refusal": "slicc: refused: this origin holds sign-in credentials"
|
|
777
|
+
},
|
|
774
778
|
"profiles": {
|
|
775
779
|
"root": ["slicc", "seven-profiles"],
|
|
776
780
|
"snapRoot": ["slicc", "seven-profiles"],
|