devforge

Security model

How DevForge protects itself, the data it handles and the sites it works on, and where the protection stops. Each section says what is enforced in code and which test covers it. Where a limit comes from the browser and cannot be removed by an extension, it says so.

1. Network capture channel

The capture script (netcap.js) has to run in the page’s own JavaScript world, because that is the only place fetch, XMLHttpRequest, WebSocket, EventSource and sendBeacon can be wrapped.

Limits: on-demand capture starts after the page’s own scripts. A page that replaced a built-in before DevForge was injected can weaken that guarantee. When capture starts on demand, the panel checks 22 built-ins through a clean frame and warns in the Network tab if the page replaced any of them. Capture from page start (Settings) runs before page scripts and is the stronger mode. Until the document has loaded, a page script can send netbridge.js a fake key; that can only make capture unreachable, it never reveals the real key.

2. Downloads of page-derived addresses

Exports, the Site download, source-map recovery and the Subresource Integrity helper fetch addresses that a page chose.

Limit: a public-looking name that resolves to a private address (DNS rebinding) cannot be seen by an extension, so host-name checks and the redirect rule do not catch it.

3. Page data is untrusted

4. Security checker limits

The checker only makes requests that satisfy every rule in secRequest (agent/security.js): same origin, GET or HEAD, no cookies, no custom headers, no bodies, redirects not followed, a request budget, a minimum pause, a timeout and a byte cap. The ceiling of 200 requests and the 100 ms minimum pause are enforced in the agent, not only in the interface. Findings never contain secret values; they carry a type, a masked prefix and a length.

5. Owner mode key handling

Owner mode is described in OWNER-MODE.md. The cryptography:

Area Design
Key derivation PBKDF2-HMAC-SHA256, 600,000 iterations, random 16-byte salt, NFKC-normalised passphrase.
One derivation, two uses 512 bits are derived once. The first 32 bytes are the stored verifier, the last 32 are the AES key. The key is never stored.
Downgrade unlock() refuses a stored record that asks for fewer iterations than the code’s minimum.
Encryption AES-256-GCM with a fresh 96-bit IV per seal and authenticated context (ws:id|project|kind|created, origins), so a record cannot be moved or relabelled without failing to open.
Key lifetime A non-extractable CryptoKey in a closure, dropped on lock, on idle (5, 10, 30 or 60 minutes) and when the panel closes.
Guessing Four free attempts, then 30 s doubling to 15 min, for unlock, re-verification and passphrase change alike.
Re-verification Sensitive actions ask for the passphrase again if it was last typed more than 5 minutes ago.

Limits: anyone who copies the profile’s storage can guess passphrases offline, limited only by the cost of PBKDF2, so the passphrase has to be strong (twelve characters is the minimum; four unrelated words is better). PBKDF2 is not memory-hard, and WebCrypto offers nothing stronger. Some metadata (item id, project, kind, date) stays readable, though it is authenticated. While unlocked, code in an extension page can use the key, and anyone who can replace the extension’s files can read the passphrase as it is typed. There is no recovery from a forgotten passphrase.

Per-site history (performance readings, acknowledged findings) is stored under salted-hash keys so the list of sites worked on is not readable in plain text in the profile. That hides names; it is not encryption.

6. What a website can notice

An extension cannot be fully invisible to the page it works on. What DevForge does to reduce its footprint, and what remains:

DevForge does not block trackers, spoof fingerprints or hide from the browser. Settings → “What websites can see of DevForge” runs a check in the page’s own world, the way a page script would, and lists what it found. The Owner tab has a probe that confirms the capture channel cannot be driven without the key.

7. Not covered

Reviewed in Chromium only; see BROWSER-SUPPORT.md. Not tested: screen readers, a real ten-minute idle lock (a shortened timer was used), behaviour against real third-party sites, and secret-field redaction in the workflow recorder.

Fixed in 4.3.0 and covered by tests (e2e/features.js, blocks “Page agent against hostile names” and “Pick mode and the panel”):

Still open: DevForge removes its own highlight elements from a saved page by the id prefix __df_, so a page can leave one of its own elements out of a saved copy by using that prefix. dom covers the properties the agent reads; others, such as id, className and style, can still be shadowed on a form and give a wrong string, never an error.

8. Findings in other formats