Lion Cipher Lab

Catch shell script execution (T1059.004), and see what a rule on the shell can and cannot see (Purple Execution 1 of 3)

Why it matters

Running commands through a shell is the most basic way anything gets done on Linux, for people and for intruders. That is exactly why it is hard to detect: the shell is always running. The interesting signals are around the shell: scripts in odd places, shells started by unexpected parents, commands pasted as one long line. This lab shows how little a plain 'shell ran' rule tells you, and how a rule on location tells you more.

What you'll learn

Steps in this lab

  1. Rules of this lab, and the technique
  2. Read the four atomics you will run
  3. Load two rules, each with its own key
  4. Measure the baseline, then run the four tests
  5. Find what each rule saw, test by test
  6. Run one variation: execute the script directly
  7. Clean up, and what to hand to the defenders

Open the full interactive lab →

Keep learning