spectrawl icon indicating copy to clipboard operation
spectrawl copied to clipboard

Auth storage hardening: optional encryption-at-rest for cookies/OAuth tokens in SQLite

Open DeadlySilent opened this issue 8 months ago • 0 comments

In sandbox tests, auth data is persisted in SQLite (cookies.db) with token/cookie material stored as plain DB fields.

Request

Add optional encryption-at-rest for sensitive auth fields:

  • oauth_token
  • oauth_refresh
  • cookies
  • credentials

Suggested approach

  • passphrase/key via env var
  • encrypt/decrypt sensitive columns in app layer
  • document key rotation and backup behavior
  • fallback to plaintext mode only when explicitly configured

Why

Greatly reduces blast radius if disk/filesystem is compromised.

Version

  • spectrawl v0.3.20

DeadlySilent avatar Mar 10 '26 21:03 DeadlySilent