Skip to content
Help

How Kavach works.

The same articles as the Guide inside the dashboard. Press ? in the dashboard to open it.

How your files are protected

Every file is encrypted before it is written to disk, with its own key.

  • Contents: AES-256-GCM with a fresh key and nonce per file. A changed byte fails the GCM tag check, so tampering is detected when the file is opened.
  • Key wrap: ML-KEM-768 + X25519. Each file key is sealed with a post-quantum and a classical key exchange, so both would have to be broken.
  • Master key: kept in the server's secrets folder (a Docker secret), outside the database, the logs and the code.

Downloads are decrypted on the server for the signed-in user only, and every download is recorded.

Who can see what

One gate on the server checks every request: your role decides which files you can open and search.

  • Admin: every department, plus people, roles and the audit log.
  • HR: the files of their own department, upload and type changes.
  • Employee: only their own files, and who opened them.

Search results and counts never include files you can't open, and a refused request is recorded too.

Searching scanned documents

At upload, Kavach reads the text of PDFs and Word files, and runs Tesseract OCR on scans and phone photos. The text is indexed, then the file is encrypted.

Search shows highlighted snippets, only from files you are allowed to open. Every search is logged with its query.

Proving nothing was changed

The audit log is a hash chain: each entry stores the SHA3-256 hash of the one before it, and the database refuses edits and deletes.

  • Verify chain re-checks every link. One edited row breaks the chain at that entry.
  • Seal checkpoint signs the chain head with ML-DSA-65, so a later check can prove what the log looked like then.

Keyboard shortcuts

In the dashboard:

  • / Search
  • U Upload
  • ? Open or close the Guide
  • Esc Close the Guide, a dialog or the tour
FAQ

Questions HR and IT ask first.

Where are the encryption keys kept?

Each file has its own AES-256 key. That key is stored only in wrapped form, sealed with ML-KEM-768 + X25519 under the vault's master key. The master key lives in a Docker secret on your server and never enters the database.

Can HR see every employee's files?

No. HR staff see only their own department, employees see only their own files, and admins see everything. The server checks the role on every request, and every view is logged.

What does "post-quantum" mean here?

AES-256 is already considered safe against quantum computers. The part that changes is key exchange and signatures, so Kavach wraps file keys with ML-KEM-768 (paired with X25519) and signs audit checkpoints with ML-DSA-65, both NIST standards.

Can someone quietly edit the audit log?

Each entry includes the SHA3-256 hash of the entry before it, so changing or deleting one breaks the chain. Verify chain recomputes every link, and signed checkpoints prove what the log looked like at a point in time.

Does it work with scanned paper documents?

Yes. Scans and phone photos are read with Tesseract OCR at upload, so a phrase from inside a scanned letter is searchable straight away.

Where is our data stored?

Each company gets its own server with its own master key and backups. Nothing is shared between companies.

Put your HR documents behind armour.

Sign in to the dashboard, or read exactly how your files are protected.