# Security Information

Snake — Side Panel is a local Chrome extension built with Manifest V3. This document explains the permissions it requests, the data it stores, and how to report a possible security issue.

## Security model and permissions

The extension requests only these Chrome permissions:

| Permission | Why it is used |
| --- | --- |
| `sidePanel` | Registers the extension page as the native Chrome Side Panel experience. |
| `storage` | Saves the personal-best score and selected theme using `chrome.storage.local`. |

The manifest does not declare `host_permissions` or content scripts. The extension does not need to read or change the websites you visit.

The game interface, styles, scripts, and icons are bundled with the extension and run locally. The project does not include remote scripts, external JavaScript libraries, analytics, advertising, accounts, or a remote game service. It does not implement network transmission of gameplay data.

## Local data

The extension saves these preferences locally:

- `snakeBest`: the personal-best score.
- `snakeTheme`: the selected theme (`system`, `light`, or `dark`).

In a normal Chrome extension installation, these values are stored with `chrome.storage.local` in the browser's extension storage. When the code is previewed outside an extension context, it can use browser `localStorage` as a fallback.

The active game board, current score, snake position, and current run are held in the side-panel page's memory. The current run is not persisted as a restorable session after the side-panel page is closed or discarded. The extension does not ask for your name, email address, account credentials, or browsing history.

## Security practices for users

- Install the extension from the project source or an official release you trust.
- Before loading an unpacked copy, check that the selected folder contains the expected `manifest.json` and local project files.
- Review the permissions on the extension card at `chrome://extensions`.
- Keep Chrome updated.
- Do not install modified or repackaged copies from an untrusted source.
- If you no longer need the extension, remove it from `chrome://extensions`. Chrome will remove its extension data as part of the removal process; do not rely on this as a secure-erasure guarantee for every storage medium or backup.

## Reporting a security vulnerability

Please do not publish details of an unpatched vulnerability in a public issue. Send a private report to:

**Darshseraphic**  
[Darsh.seraphic@gmail.com](mailto:Darsh.seraphic@gmail.com)

Include, where possible:

- A concise description of the suspected vulnerability and its potential impact.
- The affected extension version and Chrome version.
- Clear reproduction steps or a minimal proof of concept that does not expose other people's data.
- Any relevant console output or screenshots, with personal information removed.

Please allow the maintainer an opportunity to review the report before publicly disclosing technical details. No fixed response or remediation timeline is promised. Do not attempt to access data, accounts, or systems that are not yours while investigating an issue.

## Scope and limitations

This document describes the behavior of the source currently included in this repository. It is not a guarantee that every future release will have identical behavior. Review the manifest and source code for the exact version you install. Third-party materials, if added in the future, may have separate security properties and license terms.
