Date of Scan: 2026-02-27
Scope: antigravity_phone_chat core server and client files.
Standard: OWASP Top 10
Status: Warning
- Observation:
server.jscorrectly relies on.envforAPP_PASSWORDandSESSION_SECRET. - Finding: Hardcoded fallback values (
'antigravity'and'antigravity_secret_key_1337') exist inserver.js. While the system enforces strict cookie/password requirements for remote connections, relying on these default literals if a.envfile is missing can pose a deterministic attack vector if the server relies solely on them in Web Mode. - Resolution/Mitigation: The
launcher.pyand bash scripts correctly enforce.envgeneration before launching, significantly reducing the likelihood of falling back to default literals.
Status: Passed
- Observation:
app.jsrelies heavily oninnerHTMLfor state mirroring (chatContent.innerHTML = data.html). - Finding: Because
data.htmlis strictly composed of clones from the desktop application's DOM (via Chrome DevTools Protocol), the injection risk is identical to the underlying Antigravity app. - Additionally: The chat history extraction (
server.js) strictly utilizes a customescapeHtml()utility to sanitize raw IDEinnerTextbefore it is transmitted back to the client interface, preventing standard string-based XSS attacks on the history view.
Status: Passed
- Observation: The express server enforces an implicit Zero-Trust policy on external IPs but implements an "Always Allow" policy for local network requests.
- Finding: API routes are guarded securely and
httpOnlysigned cookies are deployed. - Note: The
bypass LANauth design represents a conscious usability tradeoff. Access implies physical network presence.
Status: Passed
- Observation: Core dependencies (
express,ws,cookie-parser,dotenv) are cleanly defined without bloated sub-dependencies. - Finding: No immediate critical supply chain vulnerabilities observed.
Conclusion: The repository is in strong standing. The underlying architecture explicitly proxies to a sandboxed desktop DOM environment, dramatically reducing server-side execution risks.