用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-ubuntu1804-v220-4-5-1-4命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-ubuntu1804-v220-4-5-1-4 |
| description | Ensure inactive password lock is 30 days or less |
| category | cis-iam |
| version | 2.2.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","linux","ubuntu-18.04","users","password-policy"] |
| cis_id | 4.5.1.4 |
| cis_benchmark | CIS Ubuntu Linux 18.04 LTS Benchmark v2.2.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
User accounts that have been inactive for an extended period of time pose a security risk. An attacker could use an inactive account to gain access to the system without being detected. It is recommended that inactive accounts be locked after 30 days.
Inactive accounts pose a threat to system security since the users are not logging in to notice failed login attempts or other anomalies.
Run the following command and verify INACTIVE is 30 or less:
useradd -D | grep INACTIVE
Verify all users with a password have their inactive period set:
awk -F: '($2~/^\$.+\$/){print $1 " " $7}' /etc/shadow
INACTIVE=30 or less, but not -1.
No user should have a value greater than 30 or -1 in field 7 of /etc/shadow.
Set the default inactive period:
useradd -D -f 30
Modify user parameters for all users with a password set to match:
chage --inactive 30 <user>
INACTIVE=-1
v8 - 5.2 Use Unique Passwords - Use unique passwords for all enterprise assets.
v7 - 4.4 Use Unique Passwords.
Automated