
Detection engineering, threat hunting, malware analysis. One defender bit at a time.
Join for free →
Joined September 2015
- Tweets796
- Following350
- Followers2.1K
- Likes1.1K
Pinned Tweet
Every KQL query you practice on is deleted after 30 days.
This free cluster keeps it: 8 Defender tables from a real AnyDesk lab intrusion, one paste, row counts to prove it loaded.
I ran the network scan 45+ ransomware groups use, through a ligolo-ng pivot.
Then hunted it step by step in Defender (KQL) and Elastic (ES|QL):
youtube.com/watch?v=Iun8zko6…
You can't see what runs over an SSH tunnel. The command line stops at ssh.exe -R.
But correlate DeviceProcessEvents with DeviceNetworkEvents, and the sweep gives itself away. High distinct IPs and ports, failures spiking past successes.
KQL + ES|QL queries, regex and all, are ready to paste. 👇
nltest, whoami /groups, net group. Three Low alerts your SOC closes one by one as admin noise.
In a short burst on one host, they're the pre-ransomware discovery phase.
Sigma in Elastic, then the pivot to process ancestry:
youtu.be/4xpP2yLYNoE
You saw ssh.exe with -R and filed it as admin activity.
The Akira ransomware gang ran almost that exact command to turn a host into a SOCKS proxy. The command line never changes after that.
The tunnel is opaque, not silent. Hunt its shape:
newsletter.securityinbits.co…
3
397
My AI agent lives inside my lab.
It has its own always-on VM on the same Proxmox box, next to the lab it controls:
- starts and snapshots the lab VMs
- runs commands on the hosts
- pulls the telemetry from Elastic and MDE
I run the attack, it back-fills the timeline. Every detection still gets my review.
1
10
580
Ever seen HFULOption on an Uninstall key?
It is HideUL's fingerprint. This Sordum freeware hides an RMM from Programs and Features. @HuntressLabs sees it renamed too.
Two of my ScreenConnect detonations ran it. I re-ran the operator's copy:
- Hide: SystemComponent = 1 + HFULOption = 37
- Block Uninstall: adds NoRemove = 1
- Renamed to notes.exe: same 37
Hunt the value, not the filename.
Huntress on HideUL in rogue RMM intrusions, including the renamed binary:
huntress.com/blog/daisy-chai…
1
119
Two signed ScreenConnect clients on one host, each calling a different relay.
I hunted both with Claude Code on real lab telemetry, KQL and ES|QL side by side.
youtu.be/JBEj3hSuWng
KQL runs on an ADX archive of Defender telemetry; ES|QL runs in Elastic. Claude runs part of the hunt. I check every row and investigate the relays by hand.
2
10
1,083
4,153 process events. 8,082 network events. 37,827 file events.
One lab day of Defender telemetry, and an AnyDesk intrusion on two hosts is somewhere in it.
The next X Article turns it into a hunt: five things to find, easy to hard.
The free ADX setup behind that data is in the Article.
Working on a YouTube video, out this Saturday: my Claude Code hunting workflow on an RMM abuse case.
Two validly signed ScreenConnect clients on one lab host. One got the attacker in. The other is the one they kept.
Claude Code runs the first pass in KQL and ES|QL. I validate every row.
youtube.com/@Securityinbits
You don't need to ingest a CSV to test a KQL detection on it.
Give the CSV the real table's name with one let line:
let DeviceProcessEvents = externaldata(...)
Your query runs on the file unchanged. Read-only, nothing loaded.
I ran my 6 AnyDesk hunt queries on a public lab bundle this way. All 6 returned rows.
Microsoft gives anyone with a Microsoft account a free Azure Data Explorer cluster.
No subscription, no credit card, full KQL. Mine took under 2 minutes to create.
aka.ms/kustofree
An attacker installed ScreenConnect, then hid it from Programs and Features with one registry value.
SystemComponent = 1 on its Uninstall key.
- Service: running
- Programs and Features: no ScreenConnect
Sweep both HKLM Uninstall hives (incl. WOW6432Node) for SystemComponent = 1 and read the DisplayName. Installers hide sub-components this way too. A hidden RMM client is not one of them.
My lab runs MDE and Elastic side by side, so I gave Claude Code a skill for each:
- mde-hunt: KQL on MDE + my ADX archive
- elastic-hunt: ES|QL on Elastic
One question, both stacks searched, one table back.
Most SOCs run one of these. Whichever is yours, want the skill? I can share it on GitHub.
Got tired of pasting KQL into the Defender portal, so I built an mde-hunt skill with Claude Code.
- I ask in plain English
- Claude writes the KQL
- a Python script runs it on live MDE (last 30 days) or my ADX archive (older)
First test: remote-access tools over 120 days. 3 hosts, one running AnyDesk renamed Invoice_Viewer.exe.
Interested? I can share it on GitHub.
Details about: MDE data past 30 days
www.nitter.cf/Securityinbits/status/…
MDE Advanced Hunting only looks back 30 days.
For my lab I wanted to keep my own copy, so:
- Streaming API -> Azure Storage
- LightIngest -> free ADX cluster
- same KQL, now 162 days deep (587k events)
How do you keep MDE data past 30 days? Sentinel, data lake, ADX, or something better?
1
156
I ran my detection lab in VMware on my laptop for a long time.
But I wanted Proxmox on bare metal, plus room for real monitoring. So I moved the lab to a Beelink SER10 MAX:
- 12 cores / 24 threads, 64 GB, 1 TB
- 11 VMs: DC, workstations, servers, Kali, router
- Elastic, MDE, Suricata and Velociraptor deployed
One of those VMs runs Claude, and it controls the rest of the lab.
There are plenty of LOLBin lists, but only one page indexes all of them.
lolol.farm indexes the community's Living-Off-the-Land research in one searchable page:
- 31 projects, 21 tags, 8 platforms
- LOLBAS, GTFOBins, LOLDrivers, LoFP and more
- filter by platform or focus area
Built by @br0k3ns0und. Bookmark it for your next triage.
lolol.farm/
I've been working through @ZephrFish's Malwareless Adversary Emulation course (ZSEC) for a few months now. 7 modules in and it's excellent.
I've always wanted to learn the offensive side to be a better defender: see an attack from the other end, understand it start to finish, then defend against it properly.
Thanks for building this one, Andy.
lms.zsec.red/



















