Skip to content

Security: Devp31/authentication

Security

SECURITY.md

Security Notes & Recommended Improvements

This project is educational. Do not deploy as-is.

Immediate recommendations

  • Use a tested library (e.g., bcrypt or argon2-cffi) and a secure password policy.
  • Store salt and derived key using a well-defined binary format or use a single serialized field.
  • Encrypt the SQLite file at rest (e.g., use SQLCipher) if storing sensitive credentials locally.
  • Add password strength checks and rate-limiting.
  • Replace simple dialogs with a secure GUI framework that prevents clipboard leakage.
  • Add logging (securely) and monitoring for failed attempts and suspicious behavior.
  • Ensure backups and secrets (if any) are excluded from the repository.

Threats

  • Local file theft, malware, or OS compromise exposes users.db.
  • Weak password choices allow brute-force attacks, even with PBKDF2.
  • No multi-factor authentication (MFA).

Helpful links

There aren't any published security advisories