Coder Social home page Coder Social logo

notspepino / xz-vulnerable-honeypot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lockness-ko/xz-vulnerable-honeypot

0.0 0.0 0.0 22 KB

An ssh honeypot with the XZ backdoor. CVE-2024-3094

License: GNU General Public License v2.0

Shell 84.23% Dockerfile 15.77%

xz-vulnerable-honeypot's Introduction

xz-vulnerable-honeypot

An ssh honeypot with the XZ backdoor. CVE-2024-3094

TODO: hook the backdoor and/or sshd. log rsa keys for decryption.

notes:

Warning

PLEASE run this on a separate isolated system. Docker is configured in a way that allows a threat actor to easily escape it. Docker is only used to get all the shared libraries working and configured.

Installation

Install notify by projectdiscovery using the following command:

go install -v github.com/projectdiscovery/notify/cmd/notify@latest

Run the following command to start the honeypot:

./monitor.sh DISCORD_WEBHOOK_URL

e.g.

./monitor.sh https://discord.com/api/webhooks/12345678909876/aaaaaaaa

This will use notify to send all logs to a discord webhook.

How it works

The vulnerable version of xz (5.6.1) and the liblzma linked version of sshd from the fedora repositories are ran in the configuration that activates the backdoor. Monitoring is provided by bpftrace, strace, tcpdump, and the sshd process itself.

  • bpftrace
    • Syscall monitoring and shared library hooking.
  • strace
    • Syscall montioring for the parent sshd process.
  • tcpdump
    • Capturing packets.
  • sshd
    • Login events (NOTE This will most likely not capture the login event for a bad actor as the backdoor uses set_log_mask to change the logging behaviour when the attacker attempts to login)

xz-vulnerable-honeypot's People

Contributors

lockness-ko 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.