cocaman / Log4Pot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log4Pot

A honeypot for the Log4Shell vulnerability (CVE-2021-44228).

Features

  • Listen on various ports for Log4Shell exploitation.
  • Detect exploitation in request line and headers.
  • Log to file and Azure blob storage.

Usage

  1. Install Poetry: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
  2. Install dependencies: poetry install
  3. Put parameters into log4pot.conf.
  4. Run: poetry run python log4pot.py @log4pot.conf

Analyzing Logs with JQ

List payloads from exploitation attempts:

select(.type == "exploit") | .payload

Decode all base64-encoded payloads from JNDI exploit:

select(.type == "exploit" and (.payload | contains("Base64"))) | .payload | sub(".*/Base64/"; "") | sub ("}$"; "") | @base64d

About


Languages

Language:Python 100.0%