Skip to the content.

đź”— Link to the Room

🏷️ Table of Contents

  1. Intro to Operating System Security
  2. Common Examples of OS Security
  3. Practical Example of OS Security
    3.1 Step-by-Step OS Attack Chain

📚 Study Notes

Intro to Operating System Security

 


❓Which of the following is not an operating system? AIX, Android, Chrome OS, Solaris, ThunderbirdThunderbird

✅Solution: It’s an e-mail client application. —

 

Common Examples of OS Security

 


❓Which of the following is a strong password, in your opinion? iloveyou, 1q2w3e4r5t, LearnM00r, qwertyuiop LearnM00r

✅Solution: It uses uppercase, lowercase, numbers, it’s not a common dictionary word, not a keyboard pattern and it’s harder to guess or brute-force. —

 

Practical Example of OS Security

Step-by-Step OS Attack Chain

  1. Information discovery: Attacker finds a username (e.g. sammie); password is exposed on a sticky note (dragon).
  2. Initial access: Attacker connects remotely using SSH amd uses the guessed password to log in successfully.
  3. User verification: Runs whoami to confirm access as sammie.
  4. System exploration: Uses ls to list files and cat to read sensitive documents = gains insight into system usage and stored data.
  5. *Credential discovery**: Uses history to see past commands and learns about other users on the system (johnny, linda).
  6. Lateral movement: Tries to access other user accounts. Attempts password guessing using ssh johnny@MACHINE_IP or su - johnny
  7. Privilege escalation (goal): Attempts to gain root/administrator access which means getting full control over the system if successful.

 


❓Based on the top 7 passwords, let’s try to find Johnny’s password. What is the password for the user johnny?abc123

✅Solution: In the task 2 you have list of most common passwords. Check the 7th one. —

❓Once you are logged in as Johnny, use the command `history` to check the commands that Johnny has typed. We expect Johnny to have mistakenly typed the root password instead of a command. What is the root password?happyHack!NG

❓While logged in as Johnny, use the command `su - root` to switch to the root account. Display the contents of the file flag.txt in the root directory. What is the content of the file?THM{**********}

✅Solution: Use command cat /root/flag.txt —

Â