All posts

You cannot write a detection for telemetry you have never seen

A detection written from documentation is a guess about what the logs will say. I wanted to see the logs.

So I built a blue-team lab on a mini PC. It is the proving ground behind my detection catalog (opens in a new tab), and the build is documented in soc-detection-lab (opens in a new tab).

What it runs on

LayerToolingJob
HostBeelink SER5 Pro, Ubuntu ServerAlways-on lab host
RuntimeDocker, PortainerContainer management for the stack
HIDSWazuh manager and agentsProcess activity, authentication events, file integrity on lab endpoints
EndpointsWindows and Linux test VMsWhere host activity happens
Cloud SIEMMicrosoft SentinelIdentity detection development in KQL
IdentityMicrosoft 365 lab tenantEntra ID sign-in and audit logs
AccessTailscalePrivate remote access, nothing exposed to the internet

Two pipelines feed one workflow. Wazuh collects telemetry from the lab endpoints. The lab tenant streams Entra ID logs into Sentinel. Either way, the loop is the same: generate activity, watch what lands in the logs, then build and tune the detection against it.

Making the noise on purpose

I generate test telemetry two ways.

The first is controlled manual activity. Failed sign-ins across several lab accounts from one host reproduce a password spray. A role change triggers the audit detections. Everything runs against identities and machines I own, and nothing touches production or a third party.

The second is Atomic Red Team. Each detection in the catalog maps to its upstream atomic test where one exists, so the trigger is scripted and the expected result is written down.

What is next

The lab is getting a UPS so a power blip does not take the stack down, and NAS storage backed up with restic.

The repository documents architecture and workflow only. It has no tenant identifiers, internal IP addresses, VPN keys, real hostnames, or credentials, and this post does not either.

A rule that has never fired in a lab has not been tested. It has only been written.