全国产飞腾模块麒麟信安操作系统安全漏洞

1、背景介绍

目前在全国产飞腾模块上部署了麒麟信安操作系统,经第三方机构检测存在以下漏洞

操作系统版本为

内核版本为

openssh版本为

2、openssh CBC模式漏洞解决

首先查看ssh加密信息

bash 复制代码
nmap --script "ssh2*" 127.0.0.1 | grep -i cbc

可以通过修改/etc/ssh/sshd_config中Ciphers那行进行解决

3、Tracerouter探测漏洞解决

首先关闭探测,如果防火墙没打开首先输入下面两行打开防火墙

bash 复制代码
systemctl enable firewalld
systemctl restart firewalld
bash 复制代码
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p ICMP --icmp-type 0 -m comment --comment "deny traceroute" -j DROP
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p ICMP --icmp-type 3 -m comment --comment "deny traceroute" -j DROP
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p ICMP --icmp-type 11 -m comment --comment "deny traceroute" -j DROP

重新载入防火墙配置

bash 复制代码
firewall-cmd --reload

查看防火墙规则

bash 复制代码
firewall-cmd --direct --get-all-rules

如果之前已设置可以通过下面命令删除原有配置

4、SSH版本信息可被获取漏洞解决

解决方案就是自定义Banner来代替系统默认的Banner,保证SSH信息不被泄露,

创建Banner文件

bash 复制代码
touch /etc/ssh/ssh_banner
echo "Wecome to use ssh" > /etc/ssh/ssh_banner

修改sshd_config配置文件

bash 复制代码
vim /etc/ssh/sshd_config

查询到 #Banner none,在其下面指定banner文件的路径

修改完后重启sshd服务

bash 复制代码
systemctl restart sshd

用其他主机ssh,验证配置

补充说明:其实第ssh漏洞应该也可以通过关闭ssh服务来解决,具体见之前写的一篇博文

湖南麒麟SSH服务漏洞_麒麟系统漏洞-CSDN博客

相关推荐
F_Quant8 小时前
🚀 Python打包踩坑指南:彻底解决 Nuitka --onefile 配置文件丢失与重启报错问题
python·操作系统
序安InToo9 小时前
第6课|注释与代码风格
后端·操作系统·嵌入式
用户962377954481 天前
DVWA 靶场实验报告 (High Level)
安全
数据智能老司机1 天前
用于进攻性网络安全的智能体 AI——在 n8n 中构建你的第一个 AI 工作流
人工智能·安全·agent
数据智能老司机1 天前
用于进攻性网络安全的智能体 AI——智能体 AI 入门
人工智能·安全·agent
用户962377954481 天前
DVWA 靶场实验报告 (Medium Level)
安全
red1giant_star1 天前
S2-067 漏洞复现:Struts2 S2-067 文件上传路径穿越漏洞
安全
用户962377954481 天前
DVWA Weak Session IDs High 的 Cookie dvwaSession 为什么刷新不出来?
安全
chlk1232 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
cipher3 天前
ERC-4626 通胀攻击:DeFi 金库的"捐款陷阱"
前端·后端·安全