Skip to content

Functional Security Completion #104

Description

@Sergo706

Goal: Finalize the "Kill-Switch" logic described in
TORT.pdf
and refine defensive aggression.

TOTP & Recovery Code Logic:

  • Update rotateRefreshTokens controller to support the full flow:
      1. Detect Anomaly → 2. Refuse TOTP → 3. Demand Recovery Code.
  • Implement endpoints for generating, displaying, and rotating Recovery Codes.

Tuning "Nuclear" Defenses:

  • Refactor the strangeThings (Anomaly) logic to distinguish between Suspicious (Step-Up Auth required) and Malicious (Kill-Switch / Revoke All).
  • Configuration: Add a REUSE_GRACE_PERIOD (e.g., 30s) config option for SaaS deployments to prevent user lockouts caused by network race conditions ("Sniper" false positives).

Libraries To Use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions