360 Secure SkillHub
360 安全技能中心

Linux Security Audit

该 Skill 面向 Linux 服务器安全审计,提供一组本地 shell 命令,检查开放端口、SSH 登录失败记录、sudo 用户、全局可写文件及可登录 shell 的用户,适用于新服务器加固、入侵排查或例行安全检查。描述提到防火墙规则与 SSH 配置检查,但正文未给出对应命令。

laolaoqi
laolaoqi
热度 16.02
最近更新 2026-05-08 10:11:46
分类:安全依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add linux-security-audit
Metadata
name
linux-security-audit
description
Comprehensive Linux security audit - check SSH config, firewall rules, user permissions, open ports, running services, and common vulnerabilities. Use when securing a new server, investigating a breach, or running routine security checks.

Linux Security Audit

10-point security check for Linux servers.

Quick Scan

# Open ports
ss -tlnp

# Failed SSH logins
grep "Failed password" /var/log/auth.log | wc -l

# Sudo users
grep -Po '^sudo:.*$' /etc/group

# World-writable files
find / -perm -2 -type f 2>/dev/null | wc -l

# Users with shells
cat /etc/passwd | grep -E '/(bash|sh|zsh)$'