Write it in your SIEM's language
Write a second detection directly in Splunk's language, because it counts across events, then test, save and commit it.
Goal
A second detection of your own, written in SPL, is tested, saved and committed.
Before you start
Open Forge → Builder and stay on the Splunk tab. It is the tab the Builder opens on. Beside the tabs it says what that means: Saved as native Splunk, not translated. Use Sigma for one rule across SIEMs. There is no second pane, because there is nothing to translate. The editor holds a starter query,
index=* sourcetype="WinEventLog:Security" EventCode=4688, for you to replace.Name it. Detection name:
SSH password guessing from one address. Description:One address fails SSH logons for more than three different users.
Write the query. Select the starter and type over it. The query finds failed SSH passwords, counts the different users each address tried, and keeps the addresses that tried more than three:
index=linux sourcetype=linux_secure "Failed password" | stats dc(user) as users count by src_ip | where users > 3This is the kind of rule to write natively. It counts across many events, and
statsandwheresay that in one line.

Read Environment readiness. Three rows this time: Splunk parser accepts the query, and
index=linuxandsourcetype=linux_secureare both present. The badge reads Ready to run. You named the index and sourcetype yourself, so there is nothing to customize.Press Run on last 24h. On the example install it read 4 results in the last 24 hours, one row for each address, with how many users it tried and how many times it failed.
Open Test against events, and write an event that must not fire. For a native query, Splunk runs the query over the pasted event alone and reads none of your data. Each event is run on its own, so a rule that counts across events can never fire on one. Use the test for the opposite. Name the event
One failed logon, press Must not fire, and paste:{ "user": "admin", "src_ip": "203.0.113.9", "message": "Failed password for invalid user admin from 203.0.113.9 port 39225 ssh2" }
Commit it. Open the branch chip, choose Pending changes, type
Add SSH password guessing from one addressand press Commit. The file is namedunmapped_ssh-password-guessing-from-one-address.yaml: with no technique to name it after, Studio files it as unmapped. A moment later the detection's chip reads validated.
You should now see
Two detections of your own in Forge → Detections, both validated: one written in Sigma and one in SPL.
Which to choose is a question about the rule.
- Sigma is one rule for every SIEM. Studio translates it, takes the technique and severity from it, and tests it against sample events itself.
- Native is exactly the query you wrote, for one SIEM. It can use everything the language has. The technique, the severity and the rest are yours to add, which is the next lesson.
Quick check
Go deeper
- Sigma & Native Queries, for what is translated and what is not.
- The Builder, for the other SIEM tabs.

