当前位置:论坛首页 > Linux面板 > Linux面板教程

监测黑客入侵服务器的事件----【堡塔入侵检测】

发表在 Linux面板2023-5-26 12:27   [复制链接] 224 97590

发表于 2025-11-6 09:32:53 | 显示全部楼层

腾讯云的最新内核版本暂时不支持,这一块内核版本是和官方Linux部分内容是调整过的,后续会支持
使用道具 举报 回复 支持 反对
发表于 2025-11-6 10:39:51 | 显示全部楼层
系统:Debian GNU/Linux 12 (bookworm) x86_64(Py3.7.16)
当前内核版本(6.1.0-22-amd64)不支持使用堡塔入侵检测
使用道具 举报 回复 支持 反对
发表于 2025-11-6 16:30:13 | 显示全部楼层
堡塔安全Bacon 发表于 2025-11-6 09:32
腾讯云的最新内核版本暂时不支持,这一块内核版本是和官方Linux部分内容是调整过的,后续会支持 ...

辛苦了,用 宝塔升级的  防火墙把外网 ip   限制了。。好多了
使用道具 举报 回复 支持 反对
发表于 2025-11-6 22:07:53 | 显示全部楼层
系统:OpenCloudOS 9.4 x86_64(Py3.7.16)

错误:
微信图片_2025-11-06_220548_936.png
使用道具 举报 回复 支持 反对
发表于 2025-11-8 08:11:08 | 显示全部楼层
内核版本(6.8.0-78-generic)不支持使用:
# cd /www/server/panel/plugin/bt_hids/LKM/ && make
|-----------------------------------|
| building HIDS kernel module       |
|-----------------------------------|
make -C /lib/modules/6.8.0-78-generic/build M=/www/server/panel/plugin/bt_hids/LKM modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-78-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/init.o
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/trace.o
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/trace_buffer.o
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/smith_hook.o
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/anti_rootkit.o
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/filter.o
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/util.o
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/memcache.o
  LD [M]  /www/server/panel/plugin/bt_hids/LKM/hids_driver.o
  MODPOST /www/server/panel/plugin/bt_hids/LKM/Module.symvers
  CC [M]  /www/server/panel/plugin/bt_hids/LKM/hids_driver.mod.o
  LD [M]  /www/server/panel/plugin/bt_hids/LKM/hids_driver.ko
  BTF [M] /www/server/panel/plugin/bt_hids/LKM/hids_driver.ko
Skipping BTF generation for /www/server/panel/plugin/bt_hids/LKM/hids_driver.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-78-generic'
make -C test
make[1]: Entering directory '/www/server/panel/plugin/bt_hids/LKM/test'
|---------------------------------|
| building HIDS pipe reader       |
|---------------------------------|
     CC main.ou
building test programs
     CC rst
make[1]: Leaving directory '/www/server/panel/plugin/bt_hids/LKM/test'
root@iZn5img5yqb8ajZ:/www/server/panel/plugin/bt_hids/LKM#
使用道具 举报 回复 支持 反对
发表于 2025-11-11 09:14:59 | 显示全部楼层
宝塔用户_nyidjw 发表于 2025-11-8 08:11
内核版本(6.8.0-78-generic)不支持使用:
# cd /www/server/panel/plugin/bt_hids/LKM/ && make
|--------- ...

这个已经编译成功了。能正常运行了,重新打开插件或者修复一下,就能使用了
使用道具 举报 回复 支持 反对
发表于 2025-11-11 15:16:56 | 显示全部楼层
root@iZgq1np1s7vda0Z:~# cd /www/server/panel/plugin/bt_hids/LKM/ && make
Makefile:154: *** Kernel header files related to 6.1.0-31-amd64 not found.  Stop.


Debian 12/当前内核版本(6.1.0-31-amd64)不支持使用堡塔入侵检测,更换内核版本


请问可以支持这个版本吗
使用道具 举报 回复 支持 反对
发表于 2025-11-11 23:08:10 | 显示全部楼层
当前内核版本(6.1.0-40-amd64)不支持使用堡塔入侵检测,更换内核版本参考:
https://www.bt.cn/bbs/thread-113964-1-1.html

|-----------------------------------|
| building HIDS kernel module       |
|-----------------------------------|
make -C /lib/modules/6.1.0-40-amd64/build M=/www/server/panel/plugin/bt_hids/LKM modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-40-amd64'
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-40-amd64'
make -C test
make[1]: Entering directory '/www/server/panel/plugin/bt_hids/LKM/test'
|---------------------------------|
| building HIDS pipe reader       |
|---------------------------------|
     CC main.ou
building test programs
     CC rst
使用道具 举报 回复 支持 反对
发表于 2025-11-11 23:08:48 | 显示全部楼层
当前内核版本(6.1.0-40-amd64)不支持使用堡塔入侵检测,更换内核版本参考:
https://www.bt.cn/bbs/thread-113964-1-1.html

|-----------------------------------|
| building HIDS kernel module       |
|-----------------------------------|
make -C /lib/modules/6.1.0-40-amd64/build M=/www/server/panel/plugin/bt_hids/LKM modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-40-amd64'
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-40-amd64'
make -C test
make[1]: Entering directory '/www/server/panel/plugin/bt_hids/LKM/test'
|---------------------------------|
| building HIDS pipe reader       |
|---------------------------------|
     CC main.ou
building test programs
     CC rst
使用道具 举报 回复 支持 反对
发表于 2025-11-21 10:58:43 | 显示全部楼层
cd /www/server/panel/plugin/bt_hids/LKM/ && make
|-----------------------------------|
| building HIDS kernel module       |
|-----------------------------------|
make -C /lib/modules/6.8.0-88-generic/build M=/www/server/panel/plugin/bt_hids/LKM modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-88-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-88-generic'
make -C test
make[1]: Entering directory '/www/server/panel/plugin/bt_hids/LKM/test'
|---------------------------------|
| building HIDS pipe reader       |
|---------------------------------|
     CC main.ou
building test programs
     CC rst
make[1]: Leaving directory '/www/server/panel/plugin/bt_hids/LKM/test'
使用道具 举报 回复 支持 反对
root@TranBon-BT10:/www/server/panel/plugin/bt_hids/LKM# uname -a
Linux TranBon-BT10 5.10.0-34-amd64 #1 SMP Debian 5.10.234-1 (2025-02-24) x86_64 GNU/Linux

局部截取_20251204_000811.png
使用道具 举报 回复 支持 反对
发表于 3 天前 | 显示全部楼层
宝塔用户_pdxzje 发表于 2025-12-4 00:09
root@TranBon-BT10:/www/server/panel/plugin/bt_hids/LKM# uname -a
Linux TranBon-BT10 5.10.0-34-amd64  ...

已编译成功,修复一下插件就可以正常使用了
使用道具 举报 回复 支持 反对
发表于 3 天前 | 显示全部楼层
jacky1983 发表于 2025-11-21 10:58
cd /www/server/panel/plugin/bt_hids/LKM/ && make
|-----------------------------------|
| building HI ...

已编译成功,修复一下插件就可以正常使用了
使用道具 举报 回复 支持 反对
发表于 3 天前 | 显示全部楼层
xiyuvi23 发表于 2025-11-11 15:16
root@iZgq1np1s7vda0Z:~# cd /www/server/panel/plugin/bt_hids/LKM/ && make
Makefile:154: *** Kernel he ...

支持这个版本,这个是缺少 6.1.0-31-amd64-header的内核头文件,需要下载一个
使用道具 举报 回复 支持 反对
发表于 2 小时前 | 显示全部楼层
堡塔安全Bacon 发表于 2025-12-4 09:18
已编译成功,修复一下插件就可以正常使用了

修复插件后还是不行
  1. root@TranBon-BT10:~# uname -a
  2. Linux TranBon-BT10 5.10.0-34-amd64 #1 SMP Debian 5.10.234-1 (2025-02-24) x86_64 GNU/Linux
  3. root@TranBon-BT10:~#
  4. root@TranBon-BT10:~# cd /www/server/panel/plugin/bt_hids/LKM/ && make
  5. |-----------------------------------|
  6. | building HIDS kernel module       |
  7. |-----------------------------------|
  8. make -C /lib/modules/5.10.0-34-amd64/build M=/www/server/panel/plugin/bt_hids/LKM modules
  9. make[1]: Entering directory '/usr/src/linux-headers-5.10.0-34-amd64'
  10.   CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/init.o
  11.   CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/trace.o
  12.   CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/trace_buffer.o
  13.   CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/smith_hook.o
  14.   CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/anti_rootkit.o
  15.   CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/filter.o
  16.   CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/util.o
  17.   CC [M]  /www/server/panel/plugin/bt_hids/LKM/src/memcache.o
  18.   LD [M]  /www/server/panel/plugin/bt_hids/LKM/hids_driver.o
  19.   MODPOST /www/server/panel/plugin/bt_hids/LKM/Module.symvers
  20.   LD [M]  /www/server/panel/plugin/bt_hids/LKM/hids_driver.ko
  21. make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-34-amd64'
  22. make -C test
  23. make[1]: Entering directory '/www/server/panel/plugin/bt_hids/LKM/test'
  24. |---------------------------------|
  25. | building HIDS pipe reader       |
  26. |---------------------------------|
  27.      CC main.ou
  28. building test programs
  29.      CC rst
  30. make[1]: Leaving directory '/www/server/panel/plugin/bt_hids/LKM/test'
  31. root@TranBon-BT10:/www/server/panel/plugin/bt_hids/LKM#
复制代码

局部截取_20251207_142921.png 局部截取_20251207_142915.png 局部截取_20251207_143054.png
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表