用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-ubuntu1804-v220-1-8-4命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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
正在显示 SKILL.md
基于 SOC 职业分类
| name | cis-ubuntu1804-v220-1-8-4 |
| description | Ensure GDM screen locks when the user is idle |
| category | cis-networking |
| version | 2.2.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","linux","ubuntu-18.04","gdm","gnome","screen-lock","idle","dconf"] |
| cis_id | 1.8.4 |
| cis_benchmark | CIS Ubuntu Linux 18.04 LTS Benchmark v2.2.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
GNOME Desktop Manager can make the screen lock automatically whenever the user is idle for some amount of time.
idle-delay=uint32 {n} - Number of seconds of inactivity before the screen goes blanklock-delay=uint32 {n} - Number of seconds after the screen is blank before locking the screenExample key file:
# Specify the dconf path
[org/gnome/desktop/session]
# Number of seconds of inactivity before the screen goes blank
# Set to 0 seconds if you want to deactivate the screensaver.
idle-delay=uint32 900
# Specify the dconf path
[org/gnome/desktop/screensaver]
# Number of seconds after the screen is blank before locking the screen
lock-delay=uint32 5
Setting a lock-out value reduces the window of opportunity for unauthorized user access to another user's session that has been left unattended.
Run the following script to verify that the screen locks when the user is idle:
#!/usr/bin/env bash
{
# Check if GNOME Desktop Manager is installed. If package isn't installed, recommendation is Not Applicable\n
# determine system's package manager
l_pkgoutput=""
if command -v dpkg-query > /dev/null 2>&1; then
l_pq="dpkg-query -s"
elif command -v rpm > /dev/null 2>&1; then
l_pq="rpm -q"
fi
# Check if GDM is installed
l_pcl="gdm gdm3" # Space separated list of packages to check
for l_pn in $l_pcl; do
$l_pq "$l_pn" > /dev/null 2>&1 && l_pkgoutput="\n - Package: \"\" exists on the system\n - checking configuration"
[ -n ];
l_output= l_output2=
l_idmv=
l_ldmv=
l_kfile=
[ -n ];
l_profile=.
l_pdbdir=
l_idv=
[ -n ];
[ -gt -a -le ] && l_output=
[ = ] && l_output2=
[ -gt ] && l_output2=
l_output2=
l_ldv=
[ -n ];
[ -ge -a -le ] && l_output=
[ -gt ] && l_output2=
l_output2=
grep -Psq /etc/dconf/profile/*;
l_output=
l_output2=
[ -f ];
l_output=
l_output2=
l_output2=
l_output=
[ -n ] && -e
[ -z ];
-e
-e
[ -n ] && -e
}
idle-delay=uint32 Should be 900 seconds (15 minutes) or less, not 0 (disabled) and follow local site policylock-delay=uint32 should be 5 seconds or less and follow local site policyCreate or edit a file in the /etc/dconf/profile/ and verify it includes the following:
user-db:user
system-db:{NAME_OF_DCONF_DATABASE}
Note: local is the name of a dconf database used in the examples.
Example:
echo -e '\nuser-db:user\nsystem-db:local' >> /etc/dconf/profile/user
Create the directory /etc/dconf/db/{NAME_OF_DCONF_DATABASE}.d/ if it doesn't already exist:
Example:
mkdir /etc/dconf/db/local.d
Create the key file /etc/dconf/db/{NAME_OF_DCONF_DATABASE}.d/{FILE_NAME} to provide information for the {NAME_OF_DCONF_DATABASE} database:
Example script:
#!/usr/bin/env bash
{
l_key_file="/etc/dconf/db/local.d/00-screensaver"
l_idmv="900" # Set max value for idle-delay in seconds (between 1 and 900)
l_ldmv="5" # Set max value for lock-delay in seconds (between 0 and 5)
{
echo '# Specify the dconf path'
echo '[org/gnome/desktop/session]'
echo ''
echo '# Number of seconds of inactivity before the screen goes blank'
echo '# Set to 0 seconds if you want to deactivate the screensaver.'
echo "idle-delay=uint32 $l_idmv"
echo ''
echo '# Specify the dconf path'
echo '[org/gnome/desktop/screensaver]'
echo ''
echo '# Number of seconds after the screen is blank before locking the screen'
echo "lock-delay=uint32 $l_ldmv"
} > "$l_key_file"
}
Note: You must include the uint32 along with the integer key values as shown.
Run the following command to update the system databases:
dconf update
Note: Users must log out and back in again before the system-wide settings take effect.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 4.3 Configure Automatic Session Locking on Enterprise Assets | X | X | X |
| v7 | 16.11 Lock Workstation Sessions After Inactivity | X | X | X |
| Techniques / Sub-techniques | Tactics | Mitigations |
|---|---|---|
| T1461 | TA0027 | M1012 |