Files
nuclei-templates/code/linux/audit/rsh-client.yaml

43 lines
1.4 KiB
YAML
Raw Normal View History

2025-08-28 23:41:32 +05:30
id: rsh-client
2025-06-18 23:58:37 -07:00
info:
name: Ensure rsh Client is Not Installed
author: Th3l0newolf
2025-08-19 18:03:12 +05:30
severity: info
2025-06-18 23:58:37 -07:00
description: |
2025-08-19 18:03:12 +05:30
The rsh-client package provides the Remote Shell client, which transmits data in plaintext and is considered insecure.If not explicitly required, it should be removed to reduce exposure to unauthorized remote access.
2025-06-18 23:58:37 -07:00
remediation: |
2025-08-19 18:38:32 +05:30
Ensure the rsh-client package is not installed unless explicitly required.To remove the package, run: sudo apt-get remove rsh-client -y
2025-06-18 23:58:37 -07:00
reference:
- https://www.cisecurity.org/benchmark/ubuntu_linux
metadata:
verified: true
2025-08-28 23:41:32 +05:30
tags: cis,local,cisecurity,audit,linux,ubuntu,rsh
2025-06-18 23:58:37 -07:00
self-contained: true
code:
- engine:
- bash
args:
- "-c"
- |
# Check if the rsh-client package is installed
if dpkg-query -W -f='${Status}' rsh-client 2>/dev/null | grep -q "install ok installed"; then
2025-08-19 18:03:12 +05:30
echo "[cis-rsh-client-check:Policy-Fail] [rsh-client is installed] [CIS_FAIL]"
2025-06-18 23:58:37 -07:00
else
2025-08-19 18:03:12 +05:30
echo "[cis-rsh-client-check:Policy-Pass] [rsh-client is not installed] [CIS_PASS]"
2025-06-18 23:58:37 -07:00
fi
matchers:
- type: word
name: policy-pass
words:
- "Policy-Pass"
- type: word
name: policy-fail
words:
2025-08-21 12:45:03 +00:00
- "Policy-Fail"
2025-08-29 10:06:03 +00:00
# digest: 4a0a00473045022100f533077d301c1f42c4d08231ece267cb23ed7b5c19ba1d044c4b1a84dcc14b7f02207cd04519969a2f4f6d584e3b3d04aec08b4eb4f85c07337d2692f13c1ca23791:922c64590222798bb761d5b6d8e72950