Skip to content

Security: rmyndharis/VSCodroid

SECURITY.md

Security Policy

Supported Versions

Version Supported
latest ✅

Reporting a Vulnerability

We take security seriously. If you discover a security vulnerability in VSCodroid, please report it responsibly.

How to Report

Please DO NOT open a public GitHub issue for security vulnerabilities.

Please report it by email:

What to Include

  • Description of the vulnerability
  • Steps to reproduce the issue
  • Potential impact assessment
  • Suggested fix (if any)

Response Timeline

Action Timeline
Acknowledgment Within 48 hours
Initial assessment Within 1 week
Fix development Depends on severity
Public disclosure After fix is released

Severity Levels

  • Critical: Remote code execution, data exfiltration
  • High: Privilege escalation, authentication bypass
  • Medium: Information disclosure, denial of service
  • Low: Minor issues with limited impact

Security Considerations

VSCodroid runs code locally on your device. Key security areas:

  • Local editor transport: the application reserves 127.0.0.1 for the WebView origin throughout its process lifetime, except a port taken only because the usual one was busy at start, which a Stop from the notification gives up. EditorGateway relays HTTP and WebSocket traffic to a per-run filesystem socket under app-private storage. Stopping the editor keeps the public port reserved and returns HTTP 503 until a backend is selected
  • Connection token: the server requires one on every route except /version, /delay-shutdown, /callback and /vscodroid-server-proof/<nonce> (ProcessManager.connectionToken). The run-proof endpoint signs a fresh challenge with a private per-run key so the app can authenticate an adopted listener without sending its connection token. The server creates the token on its first start, in app-private storage with mode 0600. The app replaces it before every server start that is not an adoption, and sends it only while its own server reports ready; the WebView URL carries it
  • Extension host: extensions run in the extension host, which patches/0004-exthost-as-worker-thread.patch makes a worker thread inside the server's Node process. It is a fault boundary, not a security sandbox: an extension has the same reach over app-private storage and the network as the app itself
  • Bundled chat provider: GitHub Copilot Chat ships in the server tree and product.json makes it the editor's chat provider. Sign-in is what gives it an account, and its chat features are unavailable before that, but once enabled it is not dormant until then: its manifest lists onStartupFinished, so when enabled it activates in the extension host on every start, signed in or not. On a fresh profile it starts disabled, as upstream's chat setup leaves it, and the first chat message, with its sign-in, enables it, so a profile that never used chat never runs it. Whether it sends anything before sign-in has not been established here. After sign-in, prompts and the source it attaches as context go to GitHub. docs/PRIVACY_POLICY.md is the user-facing statement of this
  • Google Antigravity: the app holds back the extension's starts of what it keeps in ~/.gemini, beyond its engine's version check, until the person turns on the machine setting vscodroid.antigravity.runEngine, which is off by default and is turned off again on a phone restored from a backup. Only what a start spells out is seen: a program told what to run (sh -c, an interpreter, env in front of the system loader, fork given the loader as its execPath), a name a shell command builds from a variable or a pattern, or a path that goes through a link and then back up with .. gets past it, so it holds back what an extension starts in the usual way and is no barrier against code in the extension host that sets out to run the engine. While it is on, two loopback listeners are open to every app on the phone: the engine's own port, whose page hands out the key its calls need, and the relay the editor server opens on the port the extension chose, which refuses a Host that is not its own and checks no token.
  • Workspace Trust: VS Code's own is disabled for the editor server, so extensions execute the configuration of any folder that is open. The app asks first: before the editor loads a folder it has not been told to trust, including one picked from the device, it asks once and remembers a yes per folder. A trusted folder still runs its configuration; open only folders whose contents you trust.
  • Extension signatures: not verified. extensions.verifySignature is written false into the machine defaults, because signature checking loads @vscode/vsce-sign, which no Code - OSS build ships. A VSIX is trusted on the HTTPS connection to Open VSX and nothing else, and extension updates install unattended
  • Storage: settings, secrets, the server tree, the mirrors of folders opened through the Storage Access Framework and, on a new install, the default workspace all live in the app-private directory. An install that already had projects/ under getExternalFilesDir(null) keeps it there (Environment.getProjectsDir); new installs stopped using that location because shared storage cannot hold a symbolic link, which broke npm install
  • Permissions: this repository's AndroidManifest.xml declares four, INTERNET, FOREGROUND_SERVICE, FOREGROUND_SERVICE_SPECIAL_USE and POST_NOTIFICATIONS. The installed app holds six: the manifest merger adds FOREGROUND_SERVICE_DATA_SYNC (Play Asset Delivery) and the app's own signature-level DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION (AndroidX), and a Play listing shows that merged set. scripts/check-permission-claims.py holds the published list to the manifest that ships

Technical Security Design

For detailed threat model, security controls, and testing strategy, see the Security Design Document.

Acknowledgments

We appreciate responsible disclosure and will acknowledge security researchers who report valid vulnerabilities (with your permission).

There aren't any published security advisories