Skip to content

Security: elbanbydev/backkeep

Security

SECURITY.md

Security policy

Backkeep handles the two things a site cannot afford to lose: its database and its files. A bug here is not a cosmetic bug.

Reporting a vulnerability

Open a private security advisory on this repository, or email the maintainer. Please do not open a public issue for anything that could let someone read, restore over, or delete a backup they should not touch. You will get an answer, and credit if you want it.

What Backkeep does to stay safe

  • Restore is behind an explicit confirmation. backkeep:restore and Backkeep::restore() refuse to run unless the caller passes the force flag. Replacing live data is never a side effect of a typo.
  • Archives are checked before they are extracted. An entry with .., an absolute path or a Windows drive letter aborts the restore instead of writing outside the target folder.
  • Download links are signed and expire. The route is off by default; when it is on, links come from temporarySignedRoute and cannot be guessed.
  • Encryption is authenticated. AES-256-GCM per chunk, so a modified backup fails to decrypt instead of decrypting to garbage. The key never leaves your configuration.
  • No shell strings. The optional native binaries are called with an argument list, never through a shell, so a password or path cannot become a second command.
  • The dump is data, not code. Restoring runs the statements in the dump file you chose. Treat a backup file from an untrusted source the way you would treat any SQL file: do not restore it.

There aren't any published security advisories