{"id":19979166,"url":"https://github.com/tarunbatra/login-attack-demo","last_synced_at":"2025-06-20T20:41:35.849Z","repository":{"id":66341239,"uuid":"131192293","full_name":"tarunbatra/login-attack-demo","owner":"tarunbatra","description":"Demo: dictionary attack exploiting error messages during login","archived":false,"fork":false,"pushed_at":"2018-04-29T07:41:01.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T19:26:45.045Z","etag":null,"topics":["analysis","attack","brute-force-attacks","demo","dictionary-attack","login-flow"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarunbatra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-26T17:57:07.000Z","updated_at":"2021-11-18T12:52:33.000Z","dependencies_parsed_at":"2023-03-10T23:51:45.526Z","dependency_job_id":null,"html_url":"https://github.com/tarunbatra/login-attack-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tarunbatra/login-attack-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Flogin-attack-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Flogin-attack-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Flogin-attack-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Flogin-attack-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarunbatra","download_url":"https://codeload.github.com/tarunbatra/login-attack-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Flogin-attack-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261014092,"owners_count":23097174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","attack","brute-force-attacks","demo","dictionary-attack","login-flow"],"created_at":"2024-11-13T03:36:49.503Z","updated_at":"2025-06-20T20:41:30.833Z","avatar_url":"https://github.com/tarunbatra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# login-attack-demo\n\n## Description\nThis is a demo script which compares the effects of error messages on the security\nof a login process from attacks.\n\n## Example\n```sh\n\u003e node index.js\n\nRandom user generated: { username: 'engineer', password: 'spring' }\nTime to crack (smart): 16ms\nTime to crack (naive): 0ms\nTRIES (smart): 715679\nTRIES (naive): 1083\n```\n\n## Components\n\n#### Dictionary\nA collection of 1575 most commonly used passwords based on [danielmiessler/SecLists][dictionary-source].\n\n#### Naive server\nA server which gives out specific error messages based on the failing stage of the login process. If the username is invalid, it'd say `Invalid username`.\n\n#### Smart server\nA server which gives out vague error messages on failure of the login process. If the password is invalid and not the username, it'd still say `Invalid username/password`.\n\n#### Attacker\nA hostile client which uses the dictionary to generate a pair of username and password and uses them to break into the system. It also analyzes the error messages on the following rules:\n\n* An error message saying the password was invalid, indicates the username was a valid one.\n* An error message saying the username was invalid, indicates no combination of password will result in a successful login.\n* An inconclusive error message is ignored and the next combination is tried.\n\n## Assumptions\n\n* It is assumed that the dictionay defines the sample space for a valid username and password.\n\n## License\nMIT\n\n[dictionary-source]: https://github.com/danielmiessler/SecLists/blob/master/Passwords/probable-v2-top1575.txt","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarunbatra%2Flogin-attack-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarunbatra%2Flogin-attack-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarunbatra%2Flogin-attack-demo/lists"}