Code Monkey home page Code Monkey logo

honeywords's Introduction

Honeywords

Password-cracking detection using honeywords Inspired from Honeywords: Making Password-Cracking Detectable by Ari Juels and Ronald L. Rivest - link

Overview

This project provides additional security for a login system in the case of password hashes leaking. For each user, k-1 additional passwords are generated and their hashes are stored. By doing this, an attacker who can reverse the hashes for those generated passwords can not distinguish the correct password (sugarword) from the others (honeywords).

A honeychecker (secure server) is used to supervise the authentications and report incidents in case of attacks. The key idea in this method is to be able to generate passwords that look real in order to achieve honeypot flatness.

For the simplicity of the project, only the webserver is used here, but the honeychecker behavior is simulated correctly.

Two methods from the paper are implemented:

  • take-a-tail
  • chaffing-with-a-password-model (uses first 10k passwords from the RockYou dataset)

Project structure

.
├── static               # stylesheets for the webserver
├── templates            # HTML files for flask
├── attack.py            # attacker script
├── honeywords.py        # honeyword generation module
├── rockyou_10000.txt    # first 10k passwords from the RockYou dataset, used in chaffing
├── users_chaffing.db    # chaffing database
├── users_tail.db        # take-a-tail database
├── webserver.py         # webserver script (needs flask)
└── Proiect IC.pdf       # Romanian description of this implementation

How to run

  1. Install flask for Python 2.7:
pip install flask
  1. Run the webserver with the generation method given as argument:
python webserver.py [take-a-tail|chaffing]
  1. Register a user here and memorize the credentials.

  2. Run the attacker script to see the information an attacker who reverses hashes would get:

python attacker.py username [take-a-tail|chaffing]
  1. (optional) Login with one of the passwords here obtained by the attacker to simulate a real scenario.

honeywords's People

Contributors

andreiapostoae avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.