Security Threat model
What Memvo protects, and how to check.
Memvo holds personal financial records. This page lists each claim, the file in the repository that backs it, and what is outside its reach.
What is stored, and where
| Data | Where |
|---|---|
| Transactions, verbatim | ~/.memvo/vault.db, one SQLite file |
| Path and SHA-256 of each imported file | The same file |
| Your statement files | Where you keep them. Memvo only reads them. |
Nothing else is written: no config file, cache, log or telemetry.
Claims and how to verify them
| Claim | How to check |
|---|---|
| No network access | No networking module is imported anywhere in src/. The test suite blocks every socket call (tests/conftest.py), so a change that goes online fails CI. |
| No run-time dependencies | dependencies = [] in pyproject.toml. Only the Python standard library is used. |
| Agents cannot change data | The MCP server exposes seven tools, all read-only (src/memvo/mcp.py). There is no import, edit or delete tool. |
| Stored rows match your files | memvo audit re-hashes each source file and compares every stored row with the bytes on disk. |
| Releases come from the public repository | PyPI files are uploaded by GitHub Actions through trusted publishing and carry a provenance attestation. See Verify a release. |
In scope
- Malformed or hostile statement files. CSV and OFX are parsed with the standard library and regular expressions. There is no XML entity expansion,
evalor shell call. Bad rows are skipped and reported with their line. Robustness tests feed both readers random input on every CI run; they found and fixed a crash on Python 3.10 before 0.1.0a2. - Malformed or hostile PDF files. The PDF reader only decodes text. It never runs JavaScript, opens embedded files or follows links, and object references and nested forms are depth-limited. Tests import randomly damaged PDFs on every CI run; each one is read or fails with a plain error.
- SQL injection. Every value reaches SQLite as a bound parameter. SQL text is assembled only from fixed fragments.
- An agent asking for too much. MCP inputs are validated against a JSON schema that rejects unknown fields, and results are capped at 100 entries.
Out of scope
- Someone with access to your user account. The vault is protected by file-system permissions only. Use full-disk encryption.
- What an agent does with an answer. Memvo returns rows with receipts. The MCP client decides where that text goes, and a cloud-hosted model receives whatever the tools return.
- The bank's own export. Memvo reports what the file says.
reconcilecatches broken running balances but cannot know about a transaction the bank left out.
Report a problem
Please report vulnerabilities privately through GitHub's advisory form, or by email to dev@memvo.pro. Include the Memvo version, your OS and Python version, and a made-up file that reproduces it. Never send a real statement.
Machine-readable contact: /.well-known/security.txt. Automated checks on the code: CodeQL and OpenSSF Scorecard.