Ayush Anand (@Securityinbits) header
Ayush Anand (@Securityinbits) profile picture

Detection engineering, threat hunting, malware analysis. One defender bit at a time.

Join for free →
Joined September 2015
Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)Photo by Ayush Anand (@Securityinbits)
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.
7
1
21
5,254
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…
1
12
984
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. 👇
1
3
29
1,953
The summarize counts distinct RemoteIPs, RemotePorts, successes, and failures per command line. The -R line also carries the forwarded IP. Pivot on it to check whether it's a known attacker host.
1
128
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
1
7
728
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.
1
4
9
822
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.
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.
8
38
1,800
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
1
1
6
550
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.
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.
9
36
2,279
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
2
7
1
39
2,661
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.
6
19
1,213
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.
4
1
20
886
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.
10
8
74
4,216
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.
1
1
2
668
Two different scanners. Same detection. Advanced IP Scanner hit 254 IPs. Advanced Port Scanner hit 190. Both across 5 ports, both one process, both in one time window. dcount on DeviceNetworkEvents catches the fan-out, not the tool name. Behavior gives it away, not the binary. 🎯
4
23
1,717
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/
2
56
1
198
10,423
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/
1
7
55
2,278
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?
2
1
1
6
668
@NathanMcNulty Would value your take on this.
1
1
119