用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-ubuntu2004-v300-3-1-2命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-ubuntu2004-v300-3-1-2 |
| description | Ensure wireless interfaces are not available |
| category | cis-networking |
| version | 3.0.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","linux","ubuntu-20.04","network"] |
| cis_id | 3.1.2 |
| cis_benchmark | CIS Ubuntu Linux 20.04 LTS Benchmark v3.0.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Wireless networking is used when wired networks are unavailable.
-IF- wireless is not to be used, wireless devices can be disabled to reduce the potential attack surface.
Many if not all laptop workstations and some desktop workstations will connect via wireless requiring these interfaces be enabled.
Run the following script to verify no wireless interfaces are active on the system:
#!/usr/bin/env bash
{
l_output="" l_output2=""
module_chk()
{
# Check how module will be loaded
l_loadable="$(modprobe -n -v "$l_mname")"
if grep -Pq -- '^\h*install \\/bin\\/(true|false)' <<< "$l_loadable"; then
l_output="$l_output\n - module: \"$l_mname\" is not loadable: \"$l_loadable\""
else
l_output2="$l_output2\n - module: \"$l_mname\" is loadable: \"$l_loadable\""
fi
# Check is the module currently loaded
if ! lsmod | grep "$l_mname" > /dev/null 2>&1; then
l_output="$l_output\n - module: \"$l_mname\" is not loaded"
else
l_output2="$l_output2\n - module: \"$l_mname\" is loaded"
modprobe --showconfig | grep -Pq -- ;
l_output=
l_output2=
}
[ -n ];
l_dname=$( driverdir $(find /sys/class/net/*/ - d -name wireless | xargs -0 );
; | -u)
l_mname ;
module_chk
[ -z ];
-e
[ -z ];
-e
-e
-e
[ -n ] && -e
}
Audit Result: ** PASS ** - System has no wireless NICs installed, or all wireless modules are not loadable, not loaded, and deny listed.
Run the following command to disable any wireless interfaces:
# find /lib/modules/`uname -r`/kernel/drivers/net/wireless -name '*.ko' -printf 'install %f
/bin/false\nblacklist %f\n\n' | sed 's/\.ko//1' >> /etc/modprobe.d/blacklist-wireless.conf
Note: the *.conf file in /etc/modprobe.d/ in the above command can renamed as needed.
Wireless interfaces are enabled if wireless hardware is present.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and Software | x | x | |
| v7 | 15.4 Disable Wireless Access on Devices if Not Required | x | ||
| v7 | 15.5 Limit Wireless Access on Client Devices | x |