diff --git a/benchmarks/services/3.1-disable-firewall.md b/benchmarks/services/3.1-disable-firewall.md deleted file mode 100644 index 58edc743b7fa319381c7c720c1112924340c8c9d..0000000000000000000000000000000000000000 --- a/benchmarks/services/3.1-disable-firewall.md +++ /dev/null @@ -1,7 +0,0 @@ -# 3.1 禁用防火墙 - -## 安全等级 -## 描述 -## 修复建议 -## 扫描检测 -## 参考 diff --git a/benchmarks/services/3.1-disable-http-server.md b/benchmarks/services/3.1-disable-http-server.md new file mode 100644 index 0000000000000000000000000000000000000000..384d0473e1be128c5ba64787807c98441a9827c4 --- /dev/null +++ b/benchmarks/services/3.1-disable-http-server.md @@ -0,0 +1,33 @@ +# 3.1 禁用HTTP Server + +## 安全等级 + +Level 1 + +## 描述 + +HTTP 或 Web 服务器提供托管网站内容的能力。 + +除非需要将系统作为 Web 服务器运行,否则建议禁用软件包以减少潜在的攻击面。 + +## 修复建议 + +运行以下命令来禁用`httpd` + +```shell +systemctl --now disable httpd +``` + +## 扫描检测 + +运行以下命令来检查`httpd`是否被禁用 + +```shell +systemctl is-enabled httpd +``` + +期待的输出结果为`disabled` + +## 参考 + +- cis: 'https://www.cisecurity.org/benchmark/aliyun_linux' diff --git a/docs/development-guide.md b/docs/development-guide.md index dbd94297c9c50cd756d45fd22258022a85451087..17407e416d9e01be93f7fb68654c4ba90666d2d4 100644 --- a/docs/development-guide.md +++ b/docs/development-guide.md @@ -45,7 +45,7 @@ - 每一项包括对应的安全等级、描述、修复建议(怎么修复这一项)、扫描检测(怎么检查这一项是否通过)、参考(参考其它合规或者链接), 具体格式如下 ```MARKDOWN -# 3.1 禁用防火墙 +# 3.1 禁用HTTP Server ## 安全等级 ## 描述 diff --git a/examples/services/3.1-disable-firewall.md b/examples/services/3.1-disable-firewall.md deleted file mode 100644 index 58edc743b7fa319381c7c720c1112924340c8c9d..0000000000000000000000000000000000000000 --- a/examples/services/3.1-disable-firewall.md +++ /dev/null @@ -1,7 +0,0 @@ -# 3.1 禁用防火墙 - -## 安全等级 -## 描述 -## 修复建议 -## 扫描检测 -## 参考 diff --git a/examples/services/3.1-disable-http-server.md b/examples/services/3.1-disable-http-server.md new file mode 100644 index 0000000000000000000000000000000000000000..384d0473e1be128c5ba64787807c98441a9827c4 --- /dev/null +++ b/examples/services/3.1-disable-http-server.md @@ -0,0 +1,33 @@ +# 3.1 禁用HTTP Server + +## 安全等级 + +Level 1 + +## 描述 + +HTTP 或 Web 服务器提供托管网站内容的能力。 + +除非需要将系统作为 Web 服务器运行,否则建议禁用软件包以减少潜在的攻击面。 + +## 修复建议 + +运行以下命令来禁用`httpd` + +```shell +systemctl --now disable httpd +``` + +## 扫描检测 + +运行以下命令来检查`httpd`是否被禁用 + +```shell +systemctl is-enabled httpd +``` + +期待的输出结果为`disabled` + +## 参考 + +- cis: 'https://www.cisecurity.org/benchmark/aliyun_linux'