Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
HIRIS — Linux 主机事件响应工具,可检测反弹 shell、Web shell、Meterpreter 和无文件植入,然后冻结进程、封禁攻击者 IP 并隔离二进制文件。 | Kitploit
工具/GitHubGitHub/k3ystr0k3r/hiris
防御工具数据包嗅探与分析持久化机制IDS/IPS规避网络安全恶意软件分析入侵检测事件响应日志分析
GitHubk3ystr0k3r/hiris

HIRIS

Linux 主机事件响应工具,可检测反弹 shell、Web shell、Meterpreter 和无文件植入,然后冻结进程、封禁攻击者 IP 并隔离二进制文件。

15小时29分前尚未审核
分享
查看仓库

🛡️ HIRIS

██╗  ██╗██╗██████╗ ██╗███████╗
██║  ██║██║██╔══██╗██║██╔════╝
███████║██║██████╔╝██║███████╗
██╔══██║██║██╔══██╗██║╚════██║
██║  ██║██║██║  ██║██║███████║
╚═╝  ╚═╝╚═╝╚═╝  ╚═╝╚═╝╚══════╝

Python 3.10+ Platform License

HIRIS(Host Incident Response & Isolation System,主机事件响应与隔离系统)是一款 Linux 事件响应工具,它会在主机上搜寻攻击者并当场将其冻结。反弹 shell、Web shell、Meterpreter、无文件植入、暴力破解入侵:HIRIS 都能捕获它们,用 SIGSTOP 停止进程,切断攻击者的 IP,隔离二进制文件,并将一切记录到日志中以便回滚。

❗ 注意: HIRIS 的设计宗旨是不妨碍你的正常工作。它绝不会触碰自身的进程树、你的 SSH 会话、你的源 IP,也不会触碰 sshd、systemd 和 auditd 等核心服务。

📝 描述

大多数工具只会告诉你攻击者已经入侵。而 HIRIS 会在他们仍身处其中时将其阻止。

它在启动时会扫描所有正在运行的进程,因此即使在 HIRIS 启动之前就已存在的 shell 也会被捕获,随后它会持续监视新出现的进程。一旦发现匹配项,响应计划会按顺序执行:

  1. 隔离:攻击者的 IP 会被丢弃到专用的 HIRIS iptables 链中,活动连接会通过 ss -K 被终止。
  2. 冻结:进程会通过 SIGSTOP(或 cgroup v2 freezer)被停止。默认情况下不会杀死任何进程,因此证据会保留在内存中。
  3. 隔离文件:二进制文件会被计算哈希并复制到隔离目录。
  4. 记录日志:每个操作都会写入 JSONL 日志,hiris thaw 可以将其逆转。

冻结会在 freeze_timeout(默认 1 小时)后自动解冻,以防启发式规则误判。

🌟 功能特性

  • 全系统扫描:在启动时以及每 60 秒检查所有正在运行的进程,而不仅仅是新进程 🔍。
  • 反弹 Shell 检测:检测 stdin/stdout 连接到 TCP socket 的 shell,以及通过 nc、socat 或 python 升级为 pty 的 shell 🐚。
  • Web Shell 检测:检测由 nginx、apache、php-fpm 等进程生成的 shell,或以 www-data 身份运行的 shell 🌐。
  • Metasploit 覆盖:检测 /tmp 或 /dev/shm 中的 Meterpreter 和 msfvenom 载荷、无终端的 ssh_login 会话、postgres_login 超级用户会话 🎯。
  • 无文件植入检测:检测从 memfd_create 运行的进程、从 memfd 映射的代码,以及带有远程连接的大型匿名可执行内存 👻。
  • 暴力破解关联:对 SSH 或 PostgreSQL 进行暴力破解并随后保持会话的 IP 会被冻结并封锁 🔗。
  • 数据库 Shell:检测由 postgres 或 mysqld(COPY ... FROM PROGRAM、UDF exec)生成的 shell 🗄️。
  • 持久化监视:对 cron、systemd 单元和 /root/.ssh 使用 inotify 监视 📌。
  • 网络 IDS:可选的 Suricata 风格规则数据包捕获 📡。
  • 内联 IPS:在 auditd 记录进程的 execve 时立即冻结进程,无轮询延迟 ⚡。
  • 回滚:hiris thaw 可根据日志撤销冻结和 iptables 规则 ↩️。
  • 自我保护:预检守卫会拒绝任何可能影响 HIRIS 自身、你的会话或维持主机运行的服务计划 🧷。

🛠️ 安装配置

环境要求

  • 带有 /proc 的 Linux
  • Python 3.10+
  • Root 权限(冻结其他用户的进程和读取 /proc/*/fd 需要它)
  • 用于隔离的 iptables 和 ss
  • 用于 hiris ips 的 auditd

安装

  1. 克隆仓库:

    git clone https://github.com/K3ysTr0K3R/HIRIS.git
    cd HIRIS
    
  2. 安装它:

    sudo pip install -e .
    

    或者直接从文件夹运行,无需安装:

    sudo python3 -m hiris --help
    
  3. 可选的 YARA 支持:

    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

监视模式

仅告警,不进行任何改动:

sudo hiris watch

自动冻结攻击者:

sudo hiris watch --auto-respond --i-understand-the-risk

HIRIS 在监视时会显示实时状态行,并在捕获到目标时立即打印告警框:

╭─ ◆ 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

内联 IPS

在 auditd 记录进程的 execve 时立即冻结该进程,而不是等待下一次 /proc 轮询:

sudo hiris ips --auto-respond --i-understand-the-risk

回滚

每次响应都会向 /var/lib/hiris/reports/ 写入一份日志。先预览回滚,然后应用它:

sudo hiris thaw /var/lib/hiris/reports/journal-1795814771.jsonl
sudo hiris thaw /var/lib/hiris/reports/journal-1795814771.jsonl --force

被隔离的二进制文件是故意留在磁盘上的:它们是证据。

⚙️ 配置

HIRIS 读取 /etc/hiris/config.yaml。每个键都是可选的:

quarantine_dir: /var/lib/hiris/quarantine
report_dir: /var/lib/hiris/reports
freeze_method: sigstop
freeze_timeout: 3600
ignore_loopback: true
protected_uids: [1000]
protected_ttys: [/dev/pts/0]
watch_auto_respond: false
watch_kill: false
db_auto_respond: false
correlation_window_sec: 3600
memory_allow_comms: [myjitapp]
ssh_brute_threshold: 5
ssh_brute_window_sec: 300
auth_log_path: /var/log/auth.log
auth_log_paths:
  5432: /var/log/postgresql/postgresql-18-main.log
network_auto_respond_sids: [2100498]
键作用
freeze_methodsigstop、cgroup 或 both
freeze_timeout冻结自动解冻前的秒数,0 表示永不自动解冻
ignore_loopback跳过 127.0.0.1 连接。设置 false 以针对 localhost 进行测试
protected_uids / protected_ttys永不冻结这些用户拥有的进程
db_auto_respond冻结 PostgreSQL 超级用户 TCP 会话(默认仅告警)
correlation_window_sec暴力破解 IP 的记忆时长
memory_allow_comms允许拥有匿名可执行内存的额外 JIT 运行时
auth_log_paths额外需要监视暴力破解的按端口服务日志
network_auto_respond_sids在 --network 模式下允许触发响应的规则 SID

🔁 作为服务运行

contrib/ 中附带了一个 systemd 单元:

sudo cp -r . /opt/hiris
sudo cp contrib/hiris.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now hiris

实时观看:

journalctl -u hiris -f

先以仅告警模式运行几天,看看它原本会冻结哪些进程。有些 Web 应用确实会合法地执行 shell 命令。

⚠️ 免责声明

HIRIS 会在其运行的机器上冻结甚至终止进程,并修改防火墙规则。启发式规则可能误判,从而阻止合法操作。请先在仅告警模式下测试,并自行承担使用风险。对于本工具造成的任何损害,我概不负责。

下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    1.0k
  • 2

    wifit3

    derv82/wifit3

    Wifite 但仅限 USB 且跨平台。

    832
  • 3

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    600
  • 4

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    532
  • 5

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP 服务器,提供 180 多个逆向工程工具,聚合了 Ghidra、IDA、x64dbg、Frida 以及其他 56 个后端,并内置原生二进制解析器和包含 4,200 项技能的知识库。

    384
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    324

探索所有工具

浏览我们的工具集合

查看所有工具 →