san_ssh_security
扫描 /etc/ssh/sshd_config 中的安全漏洞,返回风险列表及加固建议。
- 路由:
POST /ssh_security - action:
san_ssh_security
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 san_ssh_security |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| num | Integer | 检测项总数 |
| result | Array | 风险列表 |
| result[].id | Integer | 风险编号 |
| result[].name | String | 风险名称,如 SSHD 强制使用V2安全协议 |
| result[].level | String | 危害等级:1=低 / 2=中 / 3=高 |
| result[].Suggestions | String | 加固建议和具体操作步骤 |
| result[].repaired | String | 是否可修复:1=可 / 0=不可 |
示例
{
"num": 80,
"result": [{
"id": 2,
"name": "SSHD 强制使用V2安全协议",
"level": "3",
"harm": "高",
"repaired": "1",
"Suggestions": "加固建议:在 /etc/ssh/sshd_config 中设置 Protocol 2"
}]
}