Interview Prep/Linux/Security, hardening and incident response

Ransomware hit a file server and encrypted shares. As the Linux admin, how do you recover?

AdvancedScenarioSecurity, hardening and incident response
Answer

Situation read → Contain, identify scope, restore from clean backups, close the entry point.

What I'd do →

  1. Disconnect the share and the infected clients; stop Samba/NFS.
  2. Identify the start time from file mtimes and logs.
  3. Verify backups/snapshots are clean and from before that time (immutable or offline copies).
  4. Rebuild the server if it was compromised itself, restore data, rescan.
  5. Rotate credentials and fix the access path (often a compromised user's SMB credentials).

Why → Restoring onto an infected host or from infected backups just re-encrypts.

Interview tip → Mention immutable backups (S3 Object Lock, read-only snapshots) as the real defence.

All Linux questions Roadmap: Linux

More on Security, hardening and incident response