Skip to content

Commit 69ef3a5

Browse files
committed
RAN Hardening (SSHD) - High Severity
1 parent 64b8086 commit 69ef3a5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: machineconfiguration.openshift.io/v1
2+
kind: MachineConfig
3+
spec:
4+
config:
5+
ignition:
6+
version: 3.1.0
7+
storage:
8+
files:
9+
- contents:
10+
# Top Priority SSHD Security Settings:
11+
# 1. Disable direct root SSH access - forces use of privilege escalation
12+
# PermitRootLogin no
13+
# 2. Disable password-based authentication - prevents brute-force, password spraying, credential stuffing
14+
# PasswordAuthentication no
15+
# PermitEmptyPasswords no
16+
# 3. Implement automatic session timeout after 5 minutes - prevents abandoned session hijacking
17+
# ClientAliveInterval 300
18+
# ClientAliveCountMax 0
19+
# 4. Enable public key authentication as primary method
20+
# PubkeyAuthentication yes
21+
source: data:,PermitRootLogin%20no%0APasswordAuthentication%20no%0APermitEmptyPasswords%20no%0AClientAliveInterval%20300%0AClientAliveCountMax%200%0APubkeyAuthentication%20yes%0A
22+
mode: 384
23+
overwrite: true
24+
path: /etc/ssh/sshd_config
25+
metadata:
26+
name: 75-sshd_config-high
27+
labels:
28+
machineconfiguration.openshift.io/role: worker

0 commit comments

Comments
 (0)