When malware like the Kalambur backdoor leverages native tools like curl.exe to route traffic through TOR, defenders need visibility at the process and command-line level. But in tools like Microsoft Sentinel, queries for such activity—written in Kusto Query Language (KQL)—can quickly grow difficult to interpret.
That’s where Uncoder AI’s AI-generated Decision Tree delivers immediate value. It transforms complex, nested Sentinel queries into visual logic flows that analysts can read, explain, and act on—without reverse engineering line-by-line.


The Detection: Curl Executions Routed Through TOR
This Microsoft Sentinel query detects suspicious use of curl.exe with command-line arguments that suggest TOR proxy routing via:
socks5h://socks5://socks4a://.oniondomains
These elements are commonly used to anonymize traffic or route it through the TOR network, evading conventional visibility.
What Uncoder AI’s Decision Tree Unpacked
Uncoder AI broke the KQL logic into a clear 3-step branching structure:
- Process Check:
Is the new processcurl.exe? - Proxy Parameter Match:
Does the command line contain any of the TOR-related SOCKS proxy strings? - Dark Web Domain Detection:
Does the command line reference a.onionaddress?
Each condition builds logically upon the last, making it obvious when and why the detection fires. The AI-generated tree even visualizes these conditions in a flow diagram, helping analysts see the evaluation path from top to bottom.
Why It Matters
In modern threat scenarios:
- Attackers use legitimate tooling to stay under the radar
- TOR and proxy access patterns are subtle and easy to miss
- Command-line-based detections are powerful—but hard to audit
With Uncoder AI’s decision tree, detection engineers gain real-time explainability, making it easier to:
- Validate detection coverage
- Train Tier 1 analysts on what threats look like
- Share rule logic across IR, compliance, or platform teams
From Curl Flags to Threat Clarity
This rule highlights a sophisticated tactic—abusing curl for anonymized communications. Uncoder AI turns that detection into something any analyst can understand, trust, and take action on.