Lion Cipher Lab
Catch SSH authorized_keys changes (T1098.004) and see the limit of per-file rules (Purple Persistence 3 of 5)
- SOC Analyst / Blue Team
- Intermediate
- ~50 min
- Free · no account required
Why it matters
A planted SSH key is quiet persistence: no new process, no new account, just one extra line in a file that normally changes rarely. Attackers use it because it survives password changes. Detecting the write is cheap on one machine and hard across thousands, which makes this a good lesson in the difference between a rule and a program of detection.
What you'll learn
- writing a file-write rule for one user's authorized_keys file
- running the documented atomic, which rewrites the file with its own contents
- seeing that a rule must name each path, and what that means for many users
- tidying up the test files you created and proving they are gone
Steps in this lab
- Rules of this lab, and the technique
- Read the atomic, and prepare a file for it
- Write the rule for your file
- Run Atomic Test 1 and find the event
- See the limit of per-file rules
- Clean up and prove it
Open the full interactive lab →