用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-ubuntu2004-v300-1-1-1-10命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-ubuntu2004-v300-1-1-1-10 |
| description | Ensure unused filesystems kernel modules are not available |
| category | cis-storage |
| version | 3.0.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","linux","ubuntu-20.04","kernel-module"] |
| cis_id | 1.1.1.10 |
| cis_benchmark | CIS Ubuntu Linux 20.04 LTS Benchmark v3.0.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Level 1 - Server, Level 1 - Workstation, Assessment: Manual
Filesystem kernel modules are pieces of code that can be dynamically loaded into the Linux kernel to extend its filesystem capabilities, or so-called base kernel, of an operating system. Filesystem kernel modules are typically used to add support for new hardware (as device drivers), or for adding system calls.
While loadable filesystem kernel modules are a convenient method of modifying the running kernel, this can be abused by attackers on a compromised system to prevent detection of their processes or files, allowing them to maintain control over the system. Many rootkits make use of loadable filesystem kernel modules in this way.
Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it. The following filesystem kernel modules have known CVE's and should be made unavailable if no dependencies exist:
afs - CVE-2022-37402ceph - CVE-2022-0670cifs - CVE-2022-29869exfat CVE-2022-29973ext CVE-2022-1184fat CVE-2022-22043fscache CVE-2022-3630fuse CVE-2023-0386gfs2 CVE-2023-3212nfs_common CVE-2023-6660nfsd CVE-2022-43945smbfs_common CVE-2022-2585This list may be quite extensive and covering all edges cases is difficult. Therefore, it's crucial to carefully consider the implications and dependencies before making any changes to the filesystem kernel module configurations.
WARNING: disabling or denylisting filesystem modules that are in use on the system may be FATAL. It is extremely important to thoroughly review this list.
Run the following script to:
Review the generated output.
#!/usr/bin/env bash
{
a_output=(); a_output2=(); a_modprobe_config=(); a_excluded=(); a_available_modules=()
a_ignore=( )
a_cve_exists=( )
()
{
l_out2=; grep -Pq -- <<< && l_out2=
! grep -Pq -- <<< ;
a_output2+=()
! grep -Pq -- <<< ;
a_output2+=()
lsmod | grep &> /dev/null;
l_output2+=( )
}
IFS= -r -d $ l_module_dir;
a_available_modules+=()
< <(find -mindepth 1 -maxdepth 1 - d ! -empty -print0)
IFS= -r l_exclude;
grep -Pq -- <<< ;
a_output2+=()
grep -Pq -- <<< ;
a_output+=()
< <(findmnt -knD | awk | -u)
a_modprobe_config+=()
< <(modprobe --showconfig | grep -P )
l_mod_name ;
[ =~ overlay ]] && l_mod_name=
[ != ] && f_module_fix
[ -gt 0 ] && \
\
[ -le 0 ];
[ -gt 0 ] &&
}
No unused filesystem kernel modules should be enabled. The audit script should return a passing state.
.conf with install filesystem kernel modules /bin/false in the /etc/modprobe.d/ directory.conf with deny list filesystem kernel modules in the /etc/modprobe.d/ directoryWARNING: unloading, disabling or denylisting filesystem modules that are in use on the system maybe FATAL. It is extremely important to thoroughly review the filesystems returned by the audit before following the remediation procedure.
Example of unloading the gfs2 kernel module:
# modprobe -r gfs2 2>/dev/null
# rmmod gfs2 2>/dev/null
Example of fully disabling the gfs2 kernel module:
# printf '%s\n' "blacklist gfs2" "install gfs2 /bin/false" >> /etc/modprobe.d/gfs2.conf
Note:
gfs2 must be updated with the appropriate module name for the command or example script below to run correctly.Various filesystem kernel modules are enabled by default.
v8 - 4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and Software (IG 2, IG 3) v7 - 9.2 Ensure Only Approved Ports, Protocols and Services Are Running (IG 2, IG 3)