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

Spotting & Killing Malicious Persistence

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

Trace rogue Python workers via ps aux, terminate the offending PID, and eradicate persistent webshell scripts from disk.

What you'll learn in this lesson

  • Enumerate live system processes via ps aux to pinpoint unauthorized background persistence workers (python script.py).
  • Extract indicators of compromise (IOCs) from dropped persistence scripts before unlinking files.
  • Eradicate live malware (kill -9 <pid> + rm) AND harden writable upload/source directories against re-infection.

Overview

Blocking one suspicious request leaves an attacker inside the perimeter whenever they have already launched a persistent daemon (python script.py) or uploaded an executable webshell (/var/www/app/uploads/shell.sh). On Linux, unlinking the file alone leaves the running process alive through its open file descriptor in RAM!

Follow the disciplined four-phase containment sequence:

Sections covered in this lesson

  1. 11. Process Inspection, Open Inodes & Full Eradication
  2. 22. Interactive Explorer: Trust Boundaries & Containment
  3. 33. Progressive Labs: Warm-Up → Attack → Defend → Harden
  4. 44. Checkpoints & Code Review
Pro Lesson · Module 7 — Linux Server Hardening & Forensics

Unlock "Spotting & Killing Malicious Persistence" and the full Application & Web Security curriculum

Trace rogue Python workers via ps aux, terminate the offending PID, and eradicate persistent webshell scripts from disk.

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.