用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-ubuntu1804-v220-4-4-5命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-ubuntu1804-v220-4-4-5 |
| description | Ensure all current passwords uses the configured hashing algorithm |
| category | cis-iam |
| version | 2.2.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","linux","ubuntu-18.04","pam","authentication"] |
| cis_id | 4.4.5 |
| cis_benchmark | CIS Ubuntu Linux 18.04 LTS Benchmark v2.2.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
All accounts should use the configured password hashing algorithm. With PAM this is typically yescrypt or sha512.
If accounts are still using older or weaker hashing algorithms after changing the system default, those password hashes remain more vulnerable to brute-force attacks.
Run the following script to verify all current passwords use the configured hashing algorithm:
#!/usr/bin/env bash
{
l_hashing_algorithm="$(grep -Pi '^\h*ENCRYPT_METHOD\h+(SHA512|yescrypt)\b' /etc/login.defs | awk '{print $2}' | tr '[:upper:]' '[:lower:]')"
case "$l_hashing_algorithm" in
yescrypt) l_hash_value='\$y\$' ;;
sha512) l_hash_value='\$6\$' ;;
*) echo "ERROR: ENCRYPT_METHOD not set to SHA512 or yescrypt"; exit 1 ;;
esac
l_output=""
while IFS= read -r l_user; do
l_hash="$(awk -F: -v user="$l_user" '($1 == user){print $2}' /etc/shadow)"
if ! grep -Pq "$l_hash_value" <<< "$l_hash"; then
l_output="$l_output\n - User: $l_user is not using $l_hashing_algorithm hashing"
fi
done < <(awk -F: '($2 ~ /^\$.+\$/){print $1}' /etc/shadow)
[ -z ];
-e
-e
}
** PASS ** - All users are using the configured hashing algorithm
Set all users' passwords to use the configured hashing algorithm. Lock non-compliant accounts and force password changes:
passwd -e <user>
This will force the user to change their password on next login, which will use the new hashing algorithm.
v8 - 3.11 Encrypt Sensitive Data at Rest.
v7 - 16.4 Encrypt or Hash All Authentication Credentials.
Manual