Home KC7 Module: A Scandal in Valdoria: Section 2 Welcome to Valdoria!
Post
Cancel

KC7 Module: A Scandal in Valdoria: Section 2 Welcome to Valdoria!


Here is the link to the Module: A Scandal in Valdoria 🌟

Before you start

Before continuing with this write-up. If you haven’t already completed or checked out the write-up on Section 1 KQL 101. Please go back and do so. As these modules work best if you start at the beginning and work your way through. They help you to fully understand how to properly investigate and lay the ground work to be able to know what you are looking for. Also, as you go through each question, they can build off each other. Meaning an answer you get from one question, could be information you will use in another questions query. As in my prior write-up, I may not share all the questions in this write up, only the ones pretendant to the investigation. I will be including the answers to the questions though. But please know, while the answers may change, the way that you get them should remain the same.

Take notes

As you proceed through the modules, it is imperative that you take notes of key information that you find. It is far easier to go through and grab the information you have saved, then to have to re-run queries to get it again. Additionally, in an investigation, it helps you to have that information on hand to be able to piece together what is happening. For me I am taking my notes in Notion, using a database to keep the key pieces of information accessible. But that may not be the way you do it, and that is ok. Take the notes the way that best suits you and your thinking.

Section 2: Welcome to Valdoria!

Now we’re starting with the investigation!

As a first step, you reach out to the Editorial Director Nene Leaks to ask for more information:

What is the Newspaper Printer’s name?

Reading through the above text message, you should easily be able to find the name of the Newspaper Printer. Once you do you can type it into the Answer Box, and click Submit.

For my notes, I ran the following query:

1
2
Employees  
| where name == "Clark Kent"

This query looks in the Employees table under the name column for the name Clark Kent. In the results I gathered the username, IP address, and email for my notes. In case I will be coming back to Clark or need his information in future queries.


Next, you talk with Clark Kent. He seems very distressed about the whole situation. 😓 He tells you he simply printed the article that was emailed to him, as he always does.

He tells you he thinks the Editorial Intern was the one who sent him the final draft of the article.

What is the Editorial Intern’s name?

We need to begin our query in the Employees table. Then on the next line down, we will use the where operator along with the role column. Finishing up the line with double equals ( == ) and “Editorial Intern”. This query will search in the Employee table, under the role column for any instances of “Editorial Intern”. If it’s found, it will place the results in the Results Pane. Below is what our query should look like:

1
2
Employees  
| where role == "Editorial Intern"

Press the blue Run button in the top left of the ADX. In the Result Pane, one entry will be found. Click on the name and copy the information by pressing ctrl c. Then paste ( ctrl v ) the information into the Answer Box and press Submit.

ANSWER: Ronnnie McLovin


When was the Editorial Intern hired at The Valdorian Times?

Heading back to the Result Pane, we can see that there is a hire_date column. Under which is the date that Ronnie was hired. Click on the timestamp and copy the information by pressing ctrl c. Then paste ( ctrl v ) the information into the Answer Box and press Submit.

ANSWER: 2024–01–02T08:00:00Z


You contact Ronnie McLovin to ask more about the article. At this point, you haven’t ruled out the possibility of an insider threat 🕵️, so it’s important that you get multiple perspectives of the situation from multiple individuals.

Ronnie tells you she was in charge of the OpEd piece about the mayoral candidates, and she was supposed to send the final draft to Clark Kent for printing the night before publication. However, she overslept 😴, and never actually sent the article.

You go back to Clark Kent with this information, but he is certain that the final draft came in an email from Ronnie McLovin. He says he received the email on January 31, 2024.

How many total emails has Clark Kent received?

We are given a lot of really great information above. But what we need to focus on for this question, is how many emails Clark Kent received. We will start with the Email table. On the next line, we will use the operator where and the column we are filtering for is recipient. From there if you took notes and have Clark Kent’s email address, we will use a double equal ( == ) and Clark’s email address. Last line will be the count operator, make our query look like it does below:

1
2
3
Email  
| where recipient == "clark_kent@valdoriantimes.news"  
| count

Once it is typed into the Query Pane, press the blue Run button. The results will be found in the Result Pane under the one and only column. Type the answer into the Answer Box, and click Submit.

ANSWER: 21


Review the emails sent to Clark Kent for the one sent on January 31, 2024 containing the final edits for the election OpEd.

What was the subject line of this email?

We are going to use most of the previous query with some tweaking. The first two lines will remain the same, that being the Email table and then where recipient lines. Then we will remove the count operator. We will need to now search for the time in question. We can do this by using the where operator, but this time using the timestamp column. Next using the between operator, we will be looking at a time range since we know that it was received on January 31, 2024. The syntax needs to be like the following datetime(YYYY-MM-DDTHH:MM:SSZ) , the T and Z do not change. That syntax will be between parenthesis ( ), with two periods in the middle. On paper it sounds confusing, so it’s best just to show : where timestamp between (datetime(2024–01–31T00:00:00Z) .. datetime(2024–02–01T00:00:00Z)) . The finished query should look like the following:

1
2
3
Email  
| where recipient == "clark_kent@valdoriantimes.news"  
| where timestamp between (datetime(2024-01-31T00:00:00Z) .. datetime(2024-02-01T00:00:00Z))

Once it is typed into the Query Pane, press the blue Run button. The results will be found in the Result Pane, you will first need to scroll to the right. When you see the subject column, click on the result then copy ( ctrl c ) and then paste ( ctrl v ) the answer into the Answer Box. Then click Submit.

ANSWURGENT: Final OpEd Draft Edits (Please publish the following article in tomorrow’s paper))


Who sent this email containing the final edits for the OpEd piece?

Enter the sender’s email address.

Head back to the Results Pane, and scroll back to the left until you see the sender column. When you see the sender column, click on the result then copy ( ctrl c ) and then paste ( ctrl v ) the answer into the Answer Box. Then click Submit.

ANSWER: ronnie_mclovin@valdoriantimes.news


What was the name of the .docx file that was sent in this email?

Heading back to our Result_s again, this time we will click on the carat located on the left side of the result. This will drop down all the information to easily be seen. The last result is the link to a sharepoint, the end of the link indicates the file that was sent. Highlight and copy ( _ctrl c ) and paste ( ctrl v ) the name of the file in the Answer Box, then click Submit.

ANSWER: OpEdFinal_to_print.docx


So, it looks like Ronnie did send the email. When you go back and talk to Ronnie, she is adamant that she never sent the draft. She thinks maybe someone else used her account to send it.

She doesn’t recall getting any unusual emails or any other weird activity on her computer.

The question asks if we should investigate this further. The answer is of course YES!! If someone claims that they didn’t send an email, but you have proof that it came from their email. More investigation needs to be done to see if their email may have gotten compromised.


Information gathered thus far

After texting Nene Leaks, she told us to reach out to Clark Kent the Newspaper Printer. From a discussion with Clark, he only printed the article that was emailed to him. We dug into the logs to find out that the Editorial Intern is Ronnie McLovin. Investigating the email logs revealed that an email was sent from Ronnie to Clark on January 31st. Said email contained a file named OpEdFinal_to_print.docx. Talking with Ronnie, she admits that she never sent that email. Which means that her account may have been compromised. To which we will now look into this possibility.

Done already?!

With that you have completed the second section of the scandal in Valdoria. In this section we learned the following:

  • Reinforcing the basics of KQL
  • Understanding the beginning methodology to investigating and incident
  • Taking notes of key information (As long as you took notes)

Let’s continue this amazing journey into Section 3: Plenty of Phish.

This post is licensed under CC BY 4.0 by the author.