What is stored
Free scan: nothing. Files you drop into the free overpayment scan are checked in memory and then discarded. No database rows are written, no files are saved to disk, and file contents are never logged. You see a summary only.
Accounts: records you upload or import into an account are stored in your workspace in the MarginGuard database, on the MarginGuard server, so your audits and findings are there next time you sign in.
Encryption in transit
Every connection to MarginGuard uses HTTPS (TLS), provided through Cloudflare. Your sign-in cookie is marked HttpOnly and SameSite=Strict, and is only sent over HTTPS, so page scripts can’t read it and other sites can’t send it.
Signing in
- Passwords need at least 12 characters, with at least 5 different characters, and are stored only as scrypt hashes, never as the password itself.
- Every password sign-in also needs a 6-digit code emailed to you. Codes expire after 10 minutes and allow 5 wrong tries.
- You can add an authenticator app for two-step verification. With one turned on, a sign-in from a new browser also sends you an alert email.
- You can sign in with a passkey instead: your fingerprint, face or device PIN. MarginGuard stores only the passkey’s public key.
Separate workspaces
Each company’s records sit in its own workspace. Only people invited to a workspace can open its audits, findings and files, and their role decides what they can change. Other customers can’t see your workspace. Contract prices you store are private to your workspace and are never used to compare you with anyone else.
Backups
The database is copied every 6 hours. Each copy is checked for integrity when it is made, and the latest 8 copies are kept, about 2 days. A daily off-site copy also goes to iCloud Drive; it is not encrypted by MarginGuard and is kept for 14 days, plus one a month for up to 12 months.
The server watches itself around the clock. If the site stops answering, a backup is late or fails its check, or memory or disk runs low, I get an alert email.
AI reading
PDFs, scans and photos of invoices are read by fixed rules and text recognition on the MarginGuard server. Each line must add up (quantity × price = amount), and anything uncertain is marked “needs a look” and not counted.
No AI model reads your documents unless a workspace owner turns on AI reading and adds the workspace’s own Claude or OpenAI key. It is off by default. When it is on:
- the key is stored encrypted and is only ever shown as its last 4 characters;
- every call is logged with its purpose, file name and outcome, but not its content;
- every value the model returns must appear in the document itself, or the invoice is held for a look.
The free scan never uses AI.
Staff access
MarginGuard’s staff tools need two-step verification and lock again after 15 minutes without activity. Sensitive staff actions need a fresh code, and every staff action is written to an activity log that shows if any entry is edited or deleted.
Your data, your control
- You can remove uploaded payment, credit-note and contract files yourself, at any time.
- You can download a full copy of your account’s data at any time.
- You can delete your account yourself. It asks for your password, a code emailed to you and your company name. Workspaces only you use are deleted with everything in them; a workspace other people use passes to another admin. Deleted data leaves the backups as they age out (about 2 days on this computer, up to 12 months in the iCloud copies).
- Only upload records you have permission to use.
Report a security issue
If you think you’ve found a security problem, tell me through the contact form and choose “Something else”. Describe what you found and how to reproduce it, but please don’t include passwords or other people’s data. I read every request and reply by email.