Skip to content

Releases

RavenTrap 1.1.0

Choose a tag to compare

@ancientswede ancientswede released this 02 Dec 15:25

Firewall log: see who knocks on ports you never opened.

Your router already blocks most of what reaches your public address. With the firewall log on, it tells RavenTrap about it: who knocked on which closed port, and when. You see the scanners that never reach the honeypot, which ports they want, and which of them also tried the honeypot. Off by default.

What it does

  • Your router sends its log of blocked connections by syslog (UDP, port 5514 by default)
  • Understood: iptables and nftables (UniFi, EdgeRouter, OpenWrt, any Linux router), pf filterlog (OPNsense, pfSense), MikroTik RouterOS and CEF
  • Only address, protocol, port and time are kept, counted per address, day and port. LAN addresses, accepted and outgoing traffic and port forwards are skipped
  • Only senders you allow are read: syslog over UDP has no login
  • Campaigns, Firewall: the most knocked ports and the busiest knockers of the last 7 days. Attacker pages get a Firewall card, and attackers that also knocked on the router get the tag firewall (a label only, the score does not change)
  • Settings, Firewall log: on/off, port, allowed senders, how long to keep (90 days by default) and, off by default, knockers on the blocklist. It shows what arrives, a sender that is not allowed, and the last line it did not understand
  • /healthz and ntfy report a collection problem when it is on and nothing came for 6 hours
  • The JSON export of an attacker has a firewall list

Guide with router examples: docs/firewall-log.md

UniFi
Tested with Network 11 and a UXG Pro. In CyberSecure, Traffic Logging, choose SIEM Server and tick Debug Logs: without it the gateway does not send its blocks from the internet. Allow both the controller and the gateway as senders.

Updating

  • From a git folder: git pull && ./update-huginn.sh on the RavenTrap machine. The honeypot side has not changed
  • Docker: docker compose pull && docker compose up -d. To use the firewall log, also publish 5514:5514/udp (see docker-compose.yml)
  • Debian package: download huginn_all.deb below and install it with apt install ./huginn_all.deb

Nothing changes until you turn it on in Settings. The stability promise from 1.0 holds: feeds, exports, /healthz, /metrics and .env settings work as before.

Tested: 789 tests, upgrade from 0.9, 0.20, 0.35 and 1.0.0, and two days on a live UniFi network.

RavenTrap 1.0.0

Choose a tag to compare

@ancientswede ancientswede released this 30 Nov 06:27

RavenTrap 1.0. Six release candidates since 21 November, without serious faults: upgrade tests from 0.9 onwards, end-to-end installs on clean machines, and two 24-hour fuzzing runs of the honeypot export parser (about 1.8 million generated exports, nothing found).

Stability promise
From 1.0.0 the blocklist feeds, the JSON and CSV exports, /healthz, /metrics and the settings in .env keep working the same way through all 1.x releases. Details: docs/stability.md.

New name for the repository and the image

  • The repository is now github.com/ancientswede/RavenTrap. GitHub forwards old links and git remotes, so an existing Huginn folder keeps working with git pull
  • The image is now ghcr.io/ancientswede/raventrap. Through 1.x it is still pushed as ghcr.io/ancientswede/huginn, so existing Docker installs keep updating
  • Settings keep their HUGINN_ names, and the service, user, paths, feeds and metrics stay the same. Nothing to change when you update

Changes since rc6

  • New page: short cards come first, two side by side, and long ones get the full width below, so a card with two files no longer stands half empty next to a long list of scripts

Updating

  • From a git folder: git pull && ./update-huginn.sh on the RavenTrap machine. The honeypot side has not changed since rc6
  • Docker: docker compose pull && docker compose up -d
  • Debian package: download huginn_all.deb below and install it with apt install ./huginn_all.deb

Tested: 773 tests, upgrade from 0.9, 0.20, 0.35 and rc6.

RavenTrap 1.0.0-rc6

RavenTrap 1.0.0-rc6 Pre-release
Pre-release

Choose a tag to compare

@ancientswede ancientswede released this 28 Nov 09:40

Sixth release candidate for RavenTrap 1.0. Safer updates, the last fixes from the rc2 security review that were left for later, and a fix for the newest Cowrie. Run ./update-honeypot.sh on the honeypot too.

Updating

  • A failed update now puts back the database copy from just before it, not only the old code. ./update-huginn.sh --rollback --with-db does the same by hand
  • app.py restore-db reads both compressed and plain copies
  • update-huginn.sh and the Docker health check ask the address RavenTrap actually listens on (HUGINN_BIND), so a server bound to one LAN address is no longer rolled back after a good update. HUGINN_BIND=:: (IPv6) works
  • No empty "What is new" list after going back to an older version with --force

Honeypot (run ./update-honeypot.sh)

  • The upload patch fits the newest Cowrie. Cowrie now keeps one file system per connection and honours scp -t TARGET itself (cowrie/cowrie#40791, #40792), so only the parts it still lacks are applied. Before this, a fresh install showed "patch:upload missing"
  • A new file with the same name as an earlier one, captured within the same second, no longer gets the earlier file's SHA-256
  • The log reader no longer drops a line and fills it from an older rotated file
  • hp-identity takes at most 4 MB from OpenCanary and only the start of a web answer

Other

  • A country while ipwho.is pauses (free allowance used up): the registry country of the netblock from the Team Cymru lookup, until ipwho.is answers
  • /metrics: service labels only from a fixed list
  • Blocklist help: download the ipset and MikroTik feeds to a file and import only a complete one (a broken transfer piped straight into ipset restore could leave an empty list)
  • Release files are only built from an existing version tag
  • The upgrade test compares every old row before new data comes in, fails on duplicates, and also serves on one address and on IPv6

Tested: 771 tests, upgrade from 0.20, 0.35, rc3 and rc5, an end-to-end install on two clean machines (including a failed update and --rollback --with-db), and 24 hours of fuzzing the honeypot export parser (about 900,000 generated exports, nothing found).

Try it with ghcr.io/ancientswede/huginn:1.0.0-rc6, or the docker-compose.yml attached here. If nothing serious turns up, 1.0.0 follows.

RavenTrap 1.0.0-rc5

RavenTrap 1.0.0-rc5 Pre-release
Pre-release

Choose a tag to compare

@ancientswede ancientswede released this 23 Nov 17:40

Huginn is now RavenTrap. Another, much older open source project is already called Huginn, so the visible name changed before 1.0. Nothing else did: the HUGINN_* settings, /opt/huginn, the huginn service and user, the database, feeds, /metrics, the JSON export and everything on the honeypot keep their names, so updating needs no changes on your side. The repository and the Docker image (ghcr.io/ancientswede/huginn) are renamed at 1.0; the update check already looks under both names.

This release also includes rc4, which was not published separately.

Name

  • Pages, alerts, README, docs and the banner say RavenTrap
  • A page title still set to the old default "Huginn" shows RavenTrap; a title you chose yourself is kept
  • The menu fits on a 1400 px wide screen again
  • The live demo moved to https://ancientswede.se/raventrap/ (old links redirect)

Honeypot data (found by fuzzing the export parser with generated exports)

  • Only real hashes are read from Cowrie: a HASSH must be 32 hex characters, a file or session recording hash 64. Other text no longer turns into file, HASSH or replay links
  • Every link built from honeypot data is URL-encoded

Smaller fixes

  • Honeypot protection is no longer "all in place" when the report holds no sandbox or limits checks; it alerts instead
  • /healthz on a host name outside HUGINN_ALLOWED_HOSTS only says up or down. 127.0.0.1 and localhost still get version and problems, so update-huginn.sh and monitoring on the machine keep working
  • Forms work when the browser writes the host name in other letter case

Try it with ghcr.io/ancientswede/huginn:1.0.0-rc5, or the docker-compose.yml attached here. Please report anything odd as an issue.

Huginn 1.0.0-rc3

Huginn 1.0.0-rc3 Pre-release
Pre-release

Choose a tag to compare

@ancientswede ancientswede released this 22 Nov 15:07

Third release candidate for Huginn 1.0. No new features: fixes from two separate security reviews of rc2, one by a Claude security agent and one by OpenAI Codex (GPT-6.2-Astra, max reasoning). That is not the same as a human audit, so reports are very welcome (see SECURITY.md).

Blocklists

  • The feeds and the C2 list never hold the big public DNS resolvers (1.1.1.1, 8.8.8.8, 9.9.9.9 and others) or the addresses in the new HUGINN_NEVER_BLOCK. A fully compromised honeypot could otherwise put any address on them with fake log lines. Put your own WAN address, VPS and VPN server in HUGINN_NEVER_BLOCK. Only Always block on an IP page overrides it
  • The feeds hold at most HUGINN_BL_MAX addresses (50000), highest score first; the C2 list as many, those seen from the most attackers first

Honeypot data

  • A service log can no longer fake the honeypot's protection report: hp-export drops lines that look like section markers, and Huginn uses the last copy of each section
  • A deeply nested line in the Suricata alerts, or an IDS counter with non-ASCII digits, no longer stops every sync

Web page

  • install-huginn.sh fills in HUGINN_ALLOWED_HOSTS with the machine's names and addresses, which stops DNS rebinding. Existing installs keep their setting. Behind a reverse proxy, add the name you open Huginn by; the "Unknown host" page says so

Honeypot and tools (run ./update-honeypot.sh on the honeypot too)

  • A Cowrie or OpenCanary service that will not start with its sandbox or limits is left stopped with them in place, never run without them. Huginn alerts that it is not running
  • tools/check-isolation.sh fails when a LAN machine answers ping or refuses a connection: it is reachable, even if that port is closed. Run it again after updating

Try it with ghcr.io/ancientswede/huginn:1.0.0-rc3, or the docker-compose.yml attached here. Please report anything odd as an issue. If nothing serious turns up, 1.0.0 follows.

Huginn 1.0.0-rc2

Huginn 1.0.0-rc2 Pre-release
Pre-release

Choose a tag to compare

@ancientswede ancientswede released this 21 Nov 21:31

Second release candidate for Huginn 1.0. No new features: fixes from a full review of every script and page before 1.0, and DNS list lookups that stay on recent attackers.

Security

  • ntfy: a redirect from the server is no longer followed, so the access token cannot end up at another host
  • The command that connects Huginn to the honeypot is built only from a checked key
  • The honeypot installer checks that the real sshd has left port 22 (IPv6 too); tools/check-isolation.sh tests IPv6 and reports targets it could not test
  • import and ingest-once refuse to run without the settings in .env, so masking and retention always apply (the docs give a systemd-run command that loads them)
  • Behind a trusted proxy that reports https, a form from the http address is refused; a form that is too large changes nothing (413); a login that races a password change cannot outlive it
  • The installer only adds a link to Huginn in ntfy messages when the ntfy server is on your own network; the demo build ignores the machine's own HUGINN_ settings

Data and lookups

  • DroneBL, Spamhaus and Abusix only look up attackers seen in the last 30 days (or with a fresh IDS alert), like GreyNoise and http:BL
  • Retention also removes a gone attacker's lookups and session recordings
  • Countries: an attacker whose location lookup failed (ipwho.is over its free allowance) is asked again after a day, and the card says "Not known yet"
  • import reads the honeypot's gzipped logs and reports files it cannot read
  • A DNS list answer and the tag it gives are saved together; VirusTotal's daily allowance is booked atomically; an Abusix allowance of 1 is one lookup
  • IPv6 attacker pages open from Huginn's own links; the C2 feed follows v6=0 and HUGINN_C2_EXCLUDE matches an IPv6 address however it is written

Monitoring

  • /healthz answers 503 while a collection problem is open, as the stability promise says, and an alert that could not be sent is tried again

Honeypot and packages (run ./update-honeypot.sh on the honeypot too)

  • hp-traps: POP3, IMAP, PostgreSQL and SOCKS5 sessions get a total time limit and a share of the places each, like SMTP
  • update-honeypot.sh also updates hp-add-huginn-key, and installs hp-readlogs before turning Suricata on
  • Debian package: a failed upgrade is reported to dpkg instead of being marked as done
  • uninstall-huginn.sh only removes a folder that holds Huginn; the uninstaller shows the ports sshd really listens on
  • The Docker files of a release candidate run that candidate's image instead of latest
  • The manual install copies static/ (web attack rules, map); the Account page shows how many web rules are loaded

Try it with ghcr.io/ancientswede/huginn:1.0.0-rc2, or the docker-compose.yml attached here. Please report anything odd as an issue. If nothing serious turns up, 1.0.0 follows.

Huginn 1.0.0-rc1

Huginn 1.0.0-rc1 Pre-release
Pre-release

Choose a tag to compare

@ancientswede ancientswede released this 21 Nov 02:16

First release candidate for Huginn 1.0. No new features since 0.52.2: this release is about promises and proof.

Stability promise. From 1.0, the feed URLs and their parameters, the JSON and CSV exports, /healthz, the /metrics names and the environment variable names stay as they are until 2.0. Upgrades work from any earlier version. Details in the README under Stability promise.

Tested upgrades. tools/upgrade-test.py builds a database with an old release (0.9, 0.20, 0.35 and the previous one in CI), opens it with this version and checks that nothing is lost and every page, feed, export and /metrics still works. A restore from a real backup was also tested.

Signed downloads. The .deb, the Docker files and the image on ghcr.io carry build provenance from GitHub Actions. Check a download with:

gh attestation verify huginn_all.deb -R ancientswede/Huginn

Release candidates. Versions such as 1.0.0-rc1 are understood everywhere: the update notice never offers a release candidate to a 0.x install, the Debian package is 1.0.0~rc1 (so 1.0.0 is newer), and the Docker latest tag stays on the last stable release. Use ghcr.io/ancientswede/huginn:1.0.0-rc1 to try this one.

Please report anything odd as an issue. If nothing serious turns up, 1.0.0 follows in about two weeks.

Huginn 0.52.2: Spamhaus, abuse contacts, own DNS resolver, new Grafana dashboard

Choose a tag to compare

@ancientswede ancientswede released this 19 Nov 18:35

Everything since 0.51.0.

Update Huginn (update-huginn.sh). The honeypot needs no update for this one.

0.52.0: Spamhaus, abuse contacts and your own DNS resolver

  • Spamhaus ZEN on the attacker page: spam source (SBL), exploited or infected machine (XBL), hijacked network (DROP) or home range (PBL)
  • SBL, XBL and DROP give the tag spamhaus; the score does not change
  • Spamhaus needs your own resolver (it refuses Cloudflare, Quad9, Google): see Own DNS resolver in the README, a few lines with Unbound
  • Abuse contact per attacker from the free Abusix Abuse Contact DB, with a Report link that opens a ready e-mail
  • Every DNS lookup can use any resolver: a choice for 127.0.0.1 and a field for another address
  • Campaigns: the DroneBL tab also counts Spamhaus lists
  • On the author's honeypot: 12 of the first 20 attackers were on Spamhaus (5 as exploited or infected machines), and all 40 first attackers got an abuse contact

0.52.1: help and filters

  • Help explains dronebl and spamhaus
  • Attackers can be filtered on dronebl, spamhaus and ids-alert

0.52.2: DNS lookups recover by themselves

  • DroneBL and Spamhaus try their test question once more before pausing
  • A resolver that did not answer in time pauses them for 15 minutes, not an hour

New Grafana dashboard

  • Rebuilt from scratch: short titles with sparklines, colours that mean something, hourly bars
  • Lookup allowances as a bar per service (share of today's limit), decoy cap per service
  • Version, backup age, events stored, lookup errors, database size
  • Import examples/grafana/huginn-dashboard.json and pick your Prometheus; built by tools/grafana-dashboard.py

From LinkedIn comments. Thanks!

Huginn 0.51.0: DroneBL lookups

Choose a tag to compare

@ancientswede ancientswede released this 19 Nov 17:06

Everything since 0.50.2.

Update Huginn (update-huginn.sh). The honeypot needs no update for this one.

0.51.0: DroneBL lookups

  • Is the attacker a known drone, botnet member, open proxy, brute forcer or compromised router? (DroneBL, free, no key)
  • Shown on the attacker page and in the JSON export, with the tag dronebl (the score is not changed)
  • Campaigns has a DroneBL tab with attackers per class
  • On by default; turn it off or pick a DNS server on Settings, Lookups
  • The DNS server is tested first: Pi-hole and many routers drop DroneBL's answers (127.0.0.x)
  • Until you pick one, it uses the server chosen for Project Honey Pot
  • On the author's own honeypot, 12 of the first 40 attackers were already listed, mostly as brute forcers
  • From a LinkedIn comment

0.50.3: uninstall fix

  • uninstall-honeypot.sh --purge now also deletes the hp-traps logs (they sit under /var/log/private)
  • Found by a full clean install and uninstall test on two test machines

Huginn 0.50.2: share malware with Sanesecurity, a full code review, faster Search

Choose a tag to compare

@ancientswede ancientswede released this 18 Nov 20:24

Everything since 0.48.0, in one release.

Update both sides: Huginn (update-huginn.sh) and the honeypot (update-honeypot.sh, which installs the new hp-readlogs and updated tools).

0.49.0: share captured malware with Sanesecurity

  • Files lists the captured files VirusTotal has never seen, with a ready command for the honeypot
  • New hp-sample-zip packs them into a zip with the password infected, ready to send to Sanesecurity for ClamAV signatures
  • Nothing is run, and nothing leaves the honeypot unless you send the zip
  • The attacker page links to Cisco Talos
  • From a LinkedIn comment

0.49.1: fixes from a full code review

  • Mark as shared takes the included: line hp-sample-zip prints, so only files really in the zip are marked
  • Deleted files leave the share list, and large files get the right hash
  • New web rules remove tags the old rules gave
  • Decoy cap: a line sent twice counts once; old events are not stored again after a restart
  • returned/stepped-up: tarpit time counts as being there, a failed download is not a payload
  • Tor is judged per listing period
  • Odd VirusTotal answers count as errors; GreyNoise and http:BL are no longer held back by LAN addresses
  • Settings forms saved at the same time keep both changes, and a failed ntfy alert is sent again

0.50.0: honeypot hardening (same review)

  • The honeypot reads logs, patch checks and captured files as the user who owns them, never as root
  • Logs are read from the end instead of the whole history on every sync
  • The IDS switch is only on when both engine and rule timer run
  • A new Suricata config is tested first, and the old one comes back if the engine will not start
  • Failed Cowrie or OpenCanary upgrades go back to the version that ran before
  • One broken field in the export no longer stops the whole sync
  • Board and Overview numbers are kept for up to 5 minutes

0.50.1: faster Search

  • About twice as fast on common words

0.50.2: ready for the newest Cowrie

  • Cowrie now reads the persona's memory figures itself, so Huginn's free patch is no longer needed there
  • The honeypot status shows it as in place instead of missing after a Cowrie upgrade

Also

  • The changelog in Huginn (Account) is now a headline with bullet points