Linux host incident response tool that detects reverse shells, web shells, Meterpreter and fileless implants, then freezes processes, blocks attacker IPs and quarantines binaries.
โโโ โโโโโโโโโโโโโ โโโโโโโโโโโ
โโโ โโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโ โโโโโโโโโ โโโโโโโโโโโโโโ
โโโ โโโโโโโโโ โโโโโโโโโโโโโโ
HIRIS (Host Incident Response & Isolation System) is a Linux incident response tool that hunts attackers on the box and freezes them on the spot. Reverse shells, web shells, Meterpreter, fileless implants, brute-force break-ins: HIRIS catches them, stops the process with SIGSTOP, cuts the attacker's IP, quarantines the binary and journals everything so it can be rolled back.
โ Note: HIRIS is built to stay out of your way. It never touches its own process tree, your SSH session, your source IP or core services like
sshd,systemdandauditd.
Most tools tell you an attacker got in. HIRIS stops them while they are still in.
It sweeps every running process on startup, so a shell that was already there before HIRIS started gets caught too, then keeps watching for new ones. When something matches, the response plan runs in order:
HIRIS iptables chain and live connections are killed with ss -K.SIGSTOP (or the cgroup v2 freezer). Nothing gets killed by default, so the evidence stays in memory.hiris thaw can reverse.Freezes thaw themselves after freeze_timeout (1 hour by default) in case a heuristic misfires.
nc, socat or python ๐.nginx, apache, php-fpm and friends, or running as www-data ๐./tmp or /dev/shm, ssh_login sessions with no terminal, postgres_login superuser sessions ๐ฏ.memfd_create, code mapped from memfds, and large anonymous executable memory with a remote connection ๐ป.postgres or mysqld (COPY ... FROM PROGRAM, UDF exec) ๐๏ธ./root/.ssh ๐.execve, no polling delay โก.hiris thaw undoes freezes and iptables rules from the journal โฉ๏ธ./proc/proc/*/fd needs it)iptables and ss for isolationauditd for hiris ipsClone the repository:
git clone https://github.com/K3ysTr0K3R/HIRIS.git
cd HIRIS
Install it:
sudo pip install -e .
Or run it straight from the folder without installing:
sudo python3 -m hiris --help
Optional YARA support:
sudo pip install -e ".[yara]"
Usage: hiris [-h] [--version] [-v] {scan,respond,watch,ips,thaw} ...
Commands:
scan One-shot scan, print findings and the response plan
respond Scan and build the plan; --force applies it
watch Continuously monitor and respond
ips Inline IPS on the auditd execve stream
thaw Reverse a response journal
Global:
-v, --verbose -v for INFO logs, -vv for DEBUG
--version Show version and exit
watch:
--auto-respond Execute the response plan automatically (default: alert only)
--i-understand-the-risk
Required with --auto-respond
--kill After freezing, kill the process (irreversible)
--break-glass Strip unsafe actions instead of refusing the plan
--interval SECONDS Seconds between /proc polls (default: 2.0)
--sweep-interval SECONDS
Seconds between full-system sweeps (default: 60, 0 = startup only)
--network Also capture and inspect network traffic
--rules FILE Suricata-style rules file for --network
--interface IFACE Capture interface (default: any)
--config FILE Config file (default: /etc/hiris/config.yaml)
scan / respond:
--force (respond) Apply the plan: isolate, freeze, quarantine
--kill (respond) Kill after freezing (irreversible)
--json FILE Write the full report as JSON
--yara RULES YARA rules to scan executables with
--since-days N Persistence lookback window
--fail-on SEVERITY Exit non-zero if a finding is this severe or worse
Alert only, nothing gets touched:
sudo hiris watch
Freeze attackers automatically:
sudo hiris watch --auto-respond --i-understand-the-risk
HIRIS shows a live status line while it watches and prints an alert box the moment something is caught:
โญโ โ CRITICAL โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ shell_socket_stdio 16:26:11 โโฎ
โ Reverse shell: bash (pid 516) has stdio on a network socket โ
โ โ
โ bash pid 516 has its standard input/output connected to 10.10.14.7. Interactive โ
โ shells should never read from a TCP socket. โ
โ โ
โ โ 10.10.14.7 โ
โ โ pid 516 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โก froze 516 ยท isolated 10.10.14.7 ยท journal-1795814771.jsonl
[*] Monitoring system โ น 237 procs ยท 1 findings ยท 1 frozen ยท sweep in 42s ยท up 00:05:12
sudo hiris scan
sudo hiris respond --force
sudo hiris scan --json report.json --fail-on high
Freezes processes the moment auditd logs their execve, instead of waiting for the next /proc poll:
sudo hiris ips --auto-respond --i-understand-the-risk
Every response writes a journal to /var/lib/hiris/reports/. Preview the rollback, then apply it:
sudo hiris thaw /var/lib/hiris/reports/journal-1795814771.jsonl
sudo hiris thaw /var/lib/hiris/reports/journal-1795814771.jsonl --force
Quarantined binaries are left on disk on purpose: they are evidence.
HIRIS reads /etc/hiris/config.yaml. Every key is optional: