Question

Difficulty: HardMitigation Strategies and Enterprise Hardening Practices

Following a security incident where an attacker leveraged compromised developer credentials to establish unauthorized persistence on Linux bastion hosts, an organization is revising its host hardening standards. The forensic investigation revealed two key persistence mechanisms: authorized keys file tampering to insert persistent public keys and rogue systemd service installation to launch unauthorized background processes. Which TWO of the following mitigation controls should the security team implement to directly prevent and detect these technical persistence techniques?

  1. Disable interactive SSH password authentication and enforce central SSH certificate lookup via AuthorizedKeysCommand with strictly scoped principal limits.Answer
  2. Configure mandatory access controls (SELinux/AppArmor) in enforcing mode and deploy File Integrity Monitoring (FIM) targeting system daemon configuration directories.Answer
  3. C
    Deploy an inline SSH deception honeypot listener on port 2222 to intercept and terminate unauthorized remote access sessions across the subnet.
  4. D
    Implement a stateful perimeter firewalled VPN gateway to perform packet inspection on SSH traffic entering the management network.

Answer

The correct mitigations are configuring central SSH certificate lookups to invalidate static key backdoors and implementing mandatory access control (SELinux/AppArmor) alongside File Integrity Monitoring (FIM) for system daemon directories.
Centralizing SSH access through short-lived certificates and restricting local key files directly mitigates static key persistence. Furthermore, deploying File Integrity Monitoring alongside mandatory access control frameworks ensures prompt detection of unauthorized systemd unit files and prevents unapproved process execution.

Step-by-Step Solution

1
Analyze the first attack vector (authorized_keys file tampering for SSH persistence).
Disabling static SSH keys and mandating short-lived certificates via AuthorizedKeysCommand prevents unauthorized public key injection.
Static key files allow persistent backdoor access if modified, whereas certificate-based authentication requires dynamic authorization from a central Certificate Authority.
2
Analyze the second attack vector (rogue systemd service creation for background process execution).
File Integrity Monitoring (FIM) detects unauthorized service file additions in system directories, while Mandatory Access Control (MAC) restricts execution privileges.
Systemd unit directories dictate system startup services; monitoring these locations ensures prompt detection of persistence mechanisms, while MAC blocks unauthorized process execution.
3
Evaluate and eliminate perimeter and deception controls.
Honeypots and perimeter VPNs fail to protect host integrity once authenticated access is obtained.
Honeypots gather intelligence rather than enforcing host access boundaries, and perimeter VPNs do not inspect internal encrypted SSH sessions or local file writes.

Key Concept

Host Hardening and Integrity Monitoring Controls
Rate this question