Account Enumeration

Detects authentication and registration endpoints that reveal whether a username or email exists, enabling targeted attacks.

zakirkun 4a99f46 2 files · 2.1 KB Updated

File contents

Account Enumeration

Overview

Applications that return different responses for valid vs invalid usernames allow attackers to enumerate valid accounts for:

  • Targeted phishing campaigns
  • Credential stuffing (knowing which accounts exist)
  • Social engineering targeting known employees

Detection Strategy

Look for error messages that distinguish "wrong password" from "user not found".

Remediation

  • Return identical error messages regardless of whether username exists
  • Use constant-time comparison to prevent timing-based enumeration
  • Implement CAPTCHA after multiple failed attempts

zakirkun/ice-tea/tree/main/skills/auth/account-enumeration commit 4a99f46be2

Frequently asked questions

npx skillmds@latest add zakirkun/account-enumeration