Skip to content

feat: add login anomaly detection alerts#1047

Open
helh1723-lang wants to merge 1 commit into
rohitdash08:mainfrom
helh1723-lang:finmind-login-anomaly-124
Open

feat: add login anomaly detection alerts#1047
helh1723-lang wants to merge 1 commit into
rohitdash08:mainfrom
helh1723-lang:finmind-login-anomaly-124

Conversation

@helh1723-lang
Copy link
Copy Markdown

Summary

  • record login attempts with IP, user agent, success status, and anomaly reason
  • flag suspicious logins for new IP/device and repeated failed attempts
  • expose /auth/security-events and show a security alert toast on login
  • document the API changes and add backend/frontend tests

Fixes #124

Validation

  • python -m py_compile packages/backend/app/models.py packages/backend/app/routes/auth.py packages/backend/app/init.py packages/backend/tests/test_auth.py
  • git diff --check
  • Full pytest/jest not run locally because pytest, black, and jest are not installed in this environment

Security and Ownership

  • PR opened from a fork
  • No secrets added
  • No unrelated files changed

@helh1723-lang
Copy link
Copy Markdown
Author

/claim #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login anomaly detection & suspicious activity alerts

1 participant