An open-source, faster Devin alternative
TypeScript
CVE swarm: tell cells the preinstalled browser exists
Mohamed Habib via Computerad7e2dbf0c79
diff --git a/web/src/managed-agents/security/catalog.test.ts b/web/src/managed-agents/security/catalog.test.tsindex 146399b2..671c1b0a 100644--- a/web/src/managed-agents/security/catalog.test.ts+++ b/web/src/managed-agents/security/catalog.test.ts@@ -70,6 +70,9 @@ describe('swarm fan-out', () => {expect(prompt).toContain('/workspace')// Probing is pinned to the attested host, named explicitly.expect(prompt).toContain('Stay on https://app.example.com')+ // The cell is told the preinstalled browser exists, not left to discover it.+ expect(prompt).toContain('headless Chromium is preinstalled')+ expect(prompt).toContain('playwright')})it('drops target-only discovery steps when no target is given', () => {diff --git a/web/src/managed-agents/security/catalog.ts b/web/src/managed-agents/security/catalog.tsindex 09128c1d..a0d6b23e 100644--- a/web/src/managed-agents/security/catalog.ts+++ b/web/src/managed-agents/security/catalog.ts@@ -250,6 +250,7 @@ export function discoveryLines(target: string): string[] {'Discover, do not just read:','- Read the repository clone to derive its real routes, parameters and auth flows — that map is what you probe.',`- Fingerprint ${target} with scan_surface, then exercise the mapped routes on that host to prove whether the exposure is actually reachable. Stay on ${target}; never touch another host.`,+ '- A headless Chromium is preinstalled in the sandbox: `npm i playwright` (the browser is already downloaded), then drive it to load pages, reach client-side routes and capture screenshots.','- Record evidence into /workspace as you go (request/response logs, screenshots, a finding.md) so the proof outlives the session.','- Save the finding with memory_save.',]