Write a hypothesis and its query
Start a hunt of your own, say in a sentence what you think an attacker did and how it would show in your data, tag its techniques, and write the query that tests it.
Goal
A hunt of your own in Corporate SOC, with a hypothesis that says what it would look like in the data, its ATT&CK techniques, and a Splunk query that tests it.
Before you start
On Windows, the Task Scheduler runs inside svchost.exe, with -s Schedule on its command line. If someone set up a scheduled task that starts PowerShell, that is what Sysmon would show as its parent. That is the hypothesis this lesson tests.
Press New hunt. On Search → Hunts, press New hunt. Studio saves a hunt called New hunt at once and opens it, empty: no hypothesis, no techniques, Look back set to Last 7 days, Schedule set to Run by hand, and one query tab, Splunk, because that is the SIEM this workspace can read.
Name it. Click the name at the top and type PowerShell started by a scheduled task.
Write the hypothesis. In Hypothesis, write what you think happened and how it would show: Someone set up a scheduled task that starts PowerShell, so their code comes back on its own. In Sysmon it shows as powershell.exe whose parent is the Task Scheduler service (svchost.exe -s Schedule).
Tag the techniques. In ATT&CK techniques, type
T1053.005, T1059.001: Scheduled Task, and PowerShell. Separate them with commas.
Write the query. Write from hypothesis, beside the tabs, asks Claw to write the query from your sentence. It is greyed out until there is a hypothesis, and it needs an AI provider: without one it answers AI provider is not configured. Set it under Settings → AI. Write the query yourself, on the Splunk tab:
index=* sourcetype=XmlWinEventLog:Microsoft-Windows-Sysmon/Operational EventCode=1 Image="*\\powershell.exe" ParentImage="*\\svchost.exe" ParentCommandLine="*-s Schedule*" | table _time host User ParentCommandLine CommandLineIt finds process starts of PowerShell whose parent is the Task Scheduler, and lists when, where, as whom, and both command lines. It lists the events rather than counting them, because you want to read each one. Leave Look back at Last 7 days: the encoded command was seen yesterday, and a week keeps the hunt useful once it runs on a schedule.

Press Save. The Splunk tab gains its dot, Build a detection appears beside it (the last course of this path uses it), and the branch button reads main with 2: a second hunt file waits to be committed.
You should now see
Two hunts on Search → Hunts: Encoded PowerShell command lines, run once, and PowerShell started by a scheduled task, never run yet.