Skip to content

Latest commit

 

History

History
137 lines (83 loc) · 6.52 KB

lab_part3.md

File metadata and controls

137 lines (83 loc) · 6.52 KB

Splunk Lab: Part 3

(back to home)

Lab Parts:

  1. Set up the lab environment using Docker.
  2. Learn: Splunk Fundamentals
  3. Apply: Investigating a Web Server Breach
  4. Challenge: SIEMsational CTF (✅ You are here!)

Part 3 | Challenge: SIEMsational CTF

Estimated Time: 120 minutes

Environment: Your web browser (http://localhost:8000)

Tools Needed: Splunk (running in Docker — see Part 0 for setup)

Back to home

Instructions

Overview

Welcome to the SIEMsational CTF — a Capture the Flag challenge where every flag is a fact buried in real data.

There are two datasets to work with:

Dataset How to search it Description
Netflix catalog index=main host=Netflix Netflix titles, ratings, and metadata
PathCode malware investigation index=pathcode Server logs from a suspected breach at PathCode Inc.

Scoring

  • Netflix questions are worth 1 point each (10 questions, 10 points total)
  • Malware investigation questions are worth 2 points each (5 questions, 10 points total)
  • Goal: reach 10 points by answering questions from either category, in any order
  • Stretch: answer all 15 questions for a perfect score of 20 points

Note

For all searches in this challenge, set the time range to All Time.


Netflix Data

Dataset: index=main host=Netflix

Each event in this dataset represents a single title in the Netflix catalog. Relevant fields include type, title, country, release_year, rating, duration, listed_in, and date_added.

Note

The questions in this section are intentionally written to ask about exclusive genre or category membership. When we ask "how many TV shows are in the Docuseries genre?", we mean titles cataloged only as Docuseries — not titles that appear in Docuseries alongside other genres. This matches how the data is structured: each title has a single listed_in value representing its full genre listing. Use the Interesting Fields panel to see the actual values before writing your search.

Questions (1 point each)
  1. How many TV shows on Netflix are in the Docuseries genre?

  2. How many movies on Netflix have a rating of TV-PG?

  3. How many movies on Netflix were released in the year 2020?

  4. What is the longest duration by season on Netflix, and what is its TV rating?

  5. How many movies on Netflix are rated PG-13 and listed in Action & Adventure?

  6. How many movies and TV shows on Netflix have their country of origin as Turkey?

  7. Which release year had the most movies rated G? (Not TV-G — movies only.)

  8. What two TV-Y7 rated shows were released in 2019 and added to Netflix on November 22, 2019?

  9. Which year had the most TV shows (not movies!) from the United States?

  10. What is the oldest TV show by release year on Netflix?

Tip

Stuck on a search? Use the Interesting Fields panel to explore available values for any field, or ask an AI assistant to help you work through the SPL syntax — just make sure you understand what each part of the query is doing before running it.


Malware Investigation

An attacker has gotten into PathCode Inc.'s systems. They logged into a server and uploaded a file called EvilScript.exe. Your job: figure out who did it, how they got in, and whether anyone else is involved.

Dataset: index=pathcode

This index contains logs from four sources:

Host Description
BluecoatProxy01 Web proxy logs
failedlogins64 Failed login attempts
uploadedhashes File upload records with MD5 hashes
webserver02 Web server access logs

Search across all four with index=pathcode, or narrow to a specific host by adding host=BluecoatProxy01 (etc.) to your search.

Questions (2 points each)
  1. What was the IP address that uploaded the malware? (MD5 hash: 3AADBF7E527FC1A050E1C97FEA1CBA4D)

  2. What usernames did that IP address attempt to log in as? Which username was used to successfully upload the file?

  3. What was the User Agent string of the attacker at the time of the successful file upload?

  4. Did any other users upload a file around the same time? If so, who — and what was their IP address?

  5. Looking at the uploaded hashes: what were the filenames uploaded by the two users? Which one appears to be malicious?

💡 Hints
  • Start with the MD5 hash in question 11 — find the event where it appears, and work outward from there.
  • Use host= filters to target the most relevant log source for each question.
  • Build searches incrementally: start broad, confirm the field names, then add filters to narrow down.
  • | table is useful for getting a clean view of the specific fields you care about.

Tips for Success

  • Getting 0 results? Check two things: make sure the time range is set to All Time, and switch the search mode from Smart to Verbose. Smart mode sometimes skips field extraction for exploratory searches.
  • Netflix questions ask about exclusive membership. When a question asks how many titles are in a genre, it means titles cataloged only under that genre — not titles that appear in it alongside others. This is intentional: the data stores each title's full genre listing as a single value, so a title listed as "Docuseries, Crime TV Shows" won't match a search for listed_in="Docuseries". Use the Interesting Fields panel to see what the actual values look like before writing your filter.
  • Not sure what fields exist? Run a bare search like index=main host=Netflix and open the Interesting Fields panel on the left. Everything Splunk parsed from the data appears there.
  • Malware questions are meant to be chained. Each answer unlocks the next search — start with Q11 (the MD5 hash), find the IP, then use that IP to search other sources. Don't skip ahead.
  • | table makes results readable. Instead of scanning raw events, pipe to | table field1 field2 to surface just what you need. Combine with | dedup if you're seeing repeated rows.
  • Leverage AI for SPL syntax. If you know what you want to find but can't remember the right command, ask an AI assistant to help you construct the query — just make sure you understand what each part does before running it.