Coder Social home page Coder Social logo

honeyssh's Introduction

honeyssh

honeyssh is a Honey-Pod for SSH. It automatically logs username and password tries during brute-force attacks.

This repository contains two applications, honeyssh itself as well as statsd which provides a simple HTTP API to query logon attempts.

Installation and Usage

Installation of honeyssh requires a working GoLang environment:

go install github.com/nethack42/honeyssh

When started without a configuration file or commandline parameters, honeyssh will start in user/password logging mode. Incoming authentication requests are logged and afterwards rejected with "wrong password".

$ ./setup_db.sh
$ nohup ./statsd &
sudo ./honeyssh --listen 0.0.0.0:22
...
INFO[57] Logon attempt: host=112.99.218.173:51445 version=SSH-2.0-sshlib-0.1 user="root" pass="system"
INFO[57] Logon attempt: host=112.99.218.173:51445 version=SSH-2.0-sshlib-0.1 user="root" pass="raspi"
INFO[57] Logon attempt: host=112.99.218.173:51445 version=SSH-2.0-sshlib-0.1 user="root" pass="ubnt"
INFO[57] Logon attempt: host=112.99.218.173:51445 version=SSH-2.0-sshlib-0.1 user="root" pass="00000000"
...

Query logon attempts:

$ curl http://localhost:4000/stats
{
    "recent_ips": {
        "153.99.182.12": 102,
        "185.110.132.202": 1,
        "185.29.9.169": 3
    },
    "recent_usernames": {
        "globalflash": 3,
        "root": 102,
        "test": 1
    },
    "recent_passwords": {
        "!QAZxsw2#EDC": 1,
        "!QAZzaq1": 1,
        "!qa2ws3ed": 1,
        "00": 1,
        "0o9i8u7y": 1,
        "100200": 1,
        "10203040": 1,
        "110120": 1,
        "1111111111": 1,
        "121314": 1,
        "123456789a": 1,
        "123456789a123": 1,
        "123456a?": 1,
        "1234abc": 1,
        "123qwe,.": 1,
        "159159": 1,
        "1qaz2wsx#EDC": 1,
        "1qaz3edc": 1,
        "1qazse4": 1,
        "3.1415": 1,
        "4444444": 1,
        "@dmin": 1,
        "[email protected]": 1,
        "P@ssword123456": 1,
        "Pass@1234": 1,
        "abc.123": 1,
    }
}

honeyssh's People

Watchers

James Cloos 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.