Skip to main content
Module 7 · Lesson 4 of 427/42 in the course~16 min
Module lessons (4/4)

Live Server Lockdown Drill

Lesson preview6 hands-on exercises readyApplication & Web Security · Module 7 — Linux Server Hardening & Forensics

Run a complete post-breach server remediation: archive incident alerts, lock .env permissions, and purge uploaded backdoors.

What you'll learn in this lesson

  • Run a full multi-step Linux host containment runbook across logs, secret file permissions, and uploaded backdoors.
  • Preserve attacker attribution (203.0.113.42 + /var/www/app/backdoor.sh) before erasing malicious artifacts.
  • Automate secure post-breach credential rotation for any .env secret exposed (0777) prior to lockdown.

Overview

In real incident response, logs, exposed .env files, and webshells fail together. On this host snapshot (sec-hardening), alerting flagged an unauthorized upload (203.0.113.42), an active 755 script sits at /var/www/app/backdoor.sh, and /var/www/app/.env containing SESSION_SECRET is configured 777!

Follow the immutable order of operations during a live server drill:

Sections covered in this lesson

  1. 11. End-to-End Post-Breach Server Containment Runbook
  2. 22. Interactive Explorer: .env Secret Lockdown
  3. 33. Progressive Labs: Warm-Up → Attack → Defend → Harden
  4. 44. Checkpoints & Code Review
Pro Lesson · Module 7 — Linux Server Hardening & Forensics

Unlock "Live Server Lockdown Drill" and the full Application & Web Security curriculum

Run a complete post-breach server remediation: archive incident alerts, lock .env permissions, and purge uploaded backdoors.

Unlock all 6 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Application & Web Security plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.