Skip to content

RavenTrap 1.1.0

Latest

Choose a tag to compare

@ancientswede ancientswede released this 02 Dec 15:25
· 1 commit to main since this release

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.