Lion Cipher Lab

Configure osquery and query your own machine like a database

Why it matters

Defenders live or die on visibility: you cannot investigate, hunt, or respond on a machine you cannot see into. The live-triage sweep answers the core questions with native commands, but each command has its own output format, its own options, and does not travel well across a hundred machines. osquery reframes the same problem in one consistent way — it exposes the operating system's live state as relational tables and lets you ask questions with SQL. "What is running" becomes SELECT FROM processes; "what is listening" becomes SELECT FROM listening_ports; "who is on this box" becomes SELECT…

What you'll learn

Steps in this lab

  1. The idea: your operating system as a database
  2. Install osquery on your machine
  3. Open osqueryi and look around
  4. What is running? Query the processes table
  5. What is it talking to? Query listening_ports
  6. Who is on this machine? Query logged_in_users
  7. What starts by itself? Query startup_items
  8. From one machine to a fleet: osqueryd and threat hunting

Open the full interactive lab →