Listen to this Post
Credly Badge: https://lnkd.in/dU3ZRduu
You Should Know:
The Kusto Detective Agency (KDA) is a series of challenges designed by Microsoft to test your skills in using Kusto Query Language (KQL) within Azure Data Explorer. These challenges are not only fun but also a great way to sharpen your data analysis and cybersecurity skills.
Here are some essential KQL commands and practices to help you get started with Kusto Detective Agency challenges:
1. Basic KQL Query Structure:
[kql]
TableName
| where ColumnName == “Value”
| project Column1, Column2
| take 10
[/kql]
2. Filtering Data:
[kql]
SecurityEvents
| where EventID == 4624
| where TimeGenerated > ago(7d)
[/kql]
3. Aggregating Data:
[kql]
SecurityEvents
| summarize count() by Account
[/kql]
4. Joining Tables:
[kql]
let T1 = datatable(Column1:string, Column2:int)[“A”, 1, “B”, 2];
let T2 = datatable(Column1:string, Column3:int)[“A”, 10, “B”, 20];
T1
| join kind=inner (T2) on Column1
[/kql]
5. Time Series Analysis:
[kql]
SecurityEvents
| summarize count() by bin(TimeGenerated, 1h)
| render timechart
[/kql]
6. Advanced Filtering with `in`:
[kql]
SecurityEvents
| where EventID in (4624, 4625)
[/kql]
7. Using `extend` to Create New Columns:
[kql]
SecurityEvents
| extend NewColumn = tostring(EventID)
[/kql]
8. Handling JSON Data:
[kql]
datatable(JsonColumn:dynamic)
[
dynamic({“key1″:”value1”, “key2″:”value2”})
]
| extend key1 = JsonColumn.key1
[/kql]
9. Working with Strings:
[kql]
SecurityEvents
| extend Substring = substring(Account, 0, 5)
[/kql]
10. Using `mv-expand` for Multi-Valued Columns:
[kql]
datatable(Column1:string, Column2:dynamic)
[
“A”, dynamic([“1”, “2”]),
“B”, dynamic([“3”, “4”])
]
| mv-expand Column2
[/kql]
What Undercode Say:
The Kusto Detective Agency challenges are an excellent way to practice and improve your KQL skills, which are essential for cybersecurity professionals working with Azure Data Explorer. By mastering these commands, you can efficiently analyze large datasets, detect anomalies, and respond to security incidents. Whether you’re a beginner or an experienced professional, these challenges offer a practical and engaging way to enhance your data analysis capabilities.
For more information on Kusto Query Language and Azure Data Explorer, visit the official documentation: Azure Data Explorer Documentation.
References:
Reported By: 0x534c Kusto – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅


