用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-ubuntu1604-v200-4-2-1-6命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-ubuntu1604-v200-4-2-1-6 |
| description | Ensure remote rsyslog messages are only accepted on designated log hosts |
| category | cis-logging |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","linux","ubuntu-16.04","logging","rsyslog"] |
| cis_id | 4.2.1.6 |
| cis_benchmark | CIS Ubuntu Linux 16.04 LTS Benchmark v2.0.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
By default, rsyslog does not listen for log messages coming in from remote systems. The ModLoad tells rsyslog to load the imtcp.so module so it can listen over a network via TCP. The InputTCPServerRun option instructs rsyslogd to listen on the specified TCP port.
The guidance in the section ensures that remote log hosts are configured to only accept rsyslog data from hosts within the specified domain and that those systems that are not designed to be log hosts do not accept any remote rsyslog messages. This provides protection from spoofed log data and ensures that system administrators are reviewing reasonably complete syslog data in a central location.
Note: The $ModLoad imtcp line can have the .so extension added to the end of the module, or use the full path to the module.
None.
Run the following commands and verify the resulting lines are:
Run the following command and verify the output for $ModLoad imtcp:
grep '$ModLoad imtcp' /etc/rsyslog.conf /etc/rsyslog.d/*.conf
Output for designated log hosts:
$ModLoad imtcp
Output for systems that are not log hosts: (No output is also acceptable)
# $ModLoad imtcp
Run the following command and verify the output for $InputTCPServerRun:
grep '$InputTCPServerRun' /etc/rsyslog.conf /etc/rsyslog.d/*.conf
Output for designated log hosts:
$InputTCPServerRun 514
Output for systems that are not log hosts: (No output is also acceptable)
# $InputTCPServerRun 514
On designated log hosts, $ModLoad imtcp and $InputTCPServerRun 514 should be uncommented. On all other systems, these lines should be commented out or not present.
For hosts that are designated as log hosts, edit the /etc/rsyslog.conf file and un-comment or add the following lines:
# Add or uncomment in /etc/rsyslog.conf for designated log hosts:
$ModLoad imtcp
$InputTCPServerRun 514
For hosts that are not designated as log hosts, edit the /etc/rsyslog.conf file and comment or remove the following lines:
# Comment out in /etc/rsyslog.conf for non-log hosts:
# $ModLoad imtcp
# $InputTCPServerRun 514
Run the following command to reload the rsyslogd configuration:
systemctl restart rsyslog
rsyslog does not accept remote messages by default.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v7 | 9.2 Ensure Only Approved Ports, Protocols and Services Are Running Ensure that only network ports, protocols, and services listening on a system with validated business needs, are running on each system. |