Skip to content

0034-ssh-keys-authorized_keys Public Key Differences


Rule ID

  • 0034-ssh-keys

Category

  • system

Level

  • warn

Compatible Versions

  • Linux

Description

  • Monitor changes in the authorized_keys public key on the host.

Scan Frequency

  • 0 */30 * * *

Theoretical Basis

  • authorized_keys is a critical file for SSH passwordless login. If keys are maliciously added, it can lead to data breaches or hacker infiltration.

Risk Items

  • Hacker Infiltration
  • Data Breach
  • Network Security
  • Mining Risk
  • Botnet Risk

Audit Method

  • Verify if the authorized_keys on the host has been illegally modified. You can run the following command to check:
ls /root/.ssh/authorized_keys && ls /home/*/.ssh/authorized_keys

Remediation

  • If the authorized_keys on the host has been illegally modified, carefully inspect the host environment to determine if there has been an intrusion and change the host user passwords.

Impact

  • None

Default Value

  • None

References

CIS Control

  • None

Feedback

Is this page helpful? ×