Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 5 min read

How fast can open-source SOAR block an attacker? Measuring Wazuh Shuffle MikroTik end to end on OCI

"Automated response" sounds instant. But when a SIEM detects an attack and a SOAR playbook tells a router to block the source, how long does it take until the attacker's packets actually stop? I measured it for a fully

"Automated response" sounds instant. But when a SIEM detects an attack and a SOAR playbook tells a router to
block the source, how long does it take until the attacker's packets actually stop?

I measured it for a fully open-source stack on Oracle Cloud Infrastructure (OCI) Always Free:

  • Wazuh 4.14.10 detects an SSH brute-force attempt
  • Shuffle 2.3.0 (SOAR) receives the alert and runs a one-action workflow
  • MikroTik CHR 7.25.1 (a router controlled through its REST API) adds the source IP to an address list that is dropped in raw/prerouting

Result: 30 out of 30 attacks were blocked, with a median of 5.30 s from the attack event to the last packet that got
through (p95 7.75 s).
The more interesting finding is where those five seconds go.

The lab

Four VMs in one VCN, all within the Always Free allowance:

VM Role
CHR (A1.Flex, 1 OCPU / 6 GB, arm64) Router between the internet-facing subnet and the protected subnet; enforcement point
SOAR (A1.Flex, 3 OCPU / 18 GB) Wazuh manager / indexer / dashboard and Shuffle on the same VM
Target (E2.1.Micro) Protected workload with the Wazuh agent
Attacker (E2.1.Micro) Generates the SSH failures and probes connectivity

All traffic to the protected subnet is routed through the CHR (source/destination checks disabled on its VNICs).
Blocking is a single REST call that adds the IP to the soar-blocklist address list; a raw/prerouting rule drops
everything from that list, including established connections.

What "end to end" means here

Each trial records four timestamps, with all VMs synchronized to OCI's NTP (offset below 35 ยตs):

  • T0 โ€” the attacker triggers the SSH failures
  • T1 โ€” Wazuh raises the alert
  • T2 โ€” the Shuffle action starts and calls the CHR API
  • T3 โ€” the last probe packet from the attacker that still gets through (probes every 10 ms)

That gives four segments: D_detect (T0โ†’T1), D_dispatch (T1โ†’T2), D_api (the REST call) and D_enforce
(API response โ†’ packets stop). D_e2e is T0โ†’T3.

Baseline result (n = 30)

Segment p50 p95 Share of E2E
D_detect (attack โ†’ Wazuh alert) 0.93 s 2.26 s 22%
D_dispatch (Wazuh โ†’ Shuffle action starts) 3.81 s 5.16 s 75%
D_api (CHR REST call) 0.02 s 0.28 s 1%
D_enforce (API response โ†’ packets stop) 0.10 s 0.11 s 2%
D_e2e 5.30 s 7.75 s 100%

Every trial was blocked, the CHR answered HTTP 201 every time, and there were no missing timestamps.

The router is not the bottleneck. Once the API call arrives, the CHR stops the traffic in about 100 ms with almost
no variance. Three quarters of the time is the hand-off from the SIEM to the SOAR: Wazuh's integration daemon passing
the alert on, and Shuffle queuing the execution and starting the app container.

What changes the number

I ran four more conditions with 30 trials each:

Condition E2E median E2E p95
C1 baseline (above) 5.30 s 7.75 s
C2 drop in filter/forward instead of raw 5.06 s 6.38 s
C3 Shuffle workflow with 2 actions 6.54 s 8.40 s
C4 Wazuh Active Response โ†’ CHR directly, no SOAR 1.66 s 2.42 s
C5 baseline + 20 unrelated alerts per second 4.64 s 6.00 s

Takeaways:

  1. Each extra Shuffle action costs about 1.1 s of scheduling wait. Keep everything up to the block in a single action, and put notifications or ticketing after it.
  2. Skipping the SOAR is about 3ร— faster. Wazuh Active Response calling the router directly blocked in a median of 1.66 s. If speed matters more than workflow flexibility, block directly and let the SOAR handle enrichment and notification in parallel.
  3. raw vs filter hardly matters for blocking latency here. Caveat: this filter chain had no "accept established" rule in front; with one (the usual production setup), a filter drop cannot cut existing connections.
  4. Background alerts made it faster, not slower. With 20 unrelated alerts per second the median dropped by 0.66 s (p = 0.018). Only the Wazuh โ†’ webhook part got shorter: when alerts keep arriving, the integration daemon never sits waiting for a new one. This load is far from saturation, so read it as "this level of load does not hurt".

A measurement trap: phase locking

In my first run of C4, detection time lined up neatly at about 2 s, although the same detection path varied widely
in the baseline. The cause: the Wazuh agent reads journald every 2 seconds, and the short C4 trials started at an
almost fixed interval, so they kept landing at the same point of that cycle โ€” every time the worst case.

A circular statistics check made it obvious: the phase concentration of trial start times was R = 0.86
(Rayleigh test p = 3.4 ร— 10โปยนยณ). Adding a random 0โ€“4 s wait before each trial brought it down to R = 0.11 (p = 0.71),
and the C4 numbers above come from that rerun.

If you benchmark anything that polls โ€” log shippers, schedulers, queues โ€” randomize your start times.

Practical recommendations

  • Measure the hand-off, not just the playbook. The playbook's own run time hid most of the latency.
  • Keep the blocking path short: one SOAR action, or a direct Active Response path for the block itself.
  • Use an allowlist at the enforcement point. Automated blocking will eventually see your own management IP.
  • Pin versions and record them. Wazuh rule IDs changed behavior across versions: on 4.14.10, repeated "Failed password" goes 5760 โ†’ 5763, not 5720, so a rule keyed only on 5720 never fires.

Reproduce it

The Terraform, RouterOS bootstrap, Wazuh rule, Shuffle workflow, measurement scripts, all raw data and a longer
write-up are open (MIT for code, CC BY 4.0 for data and text):
github.com/ynprgrmmr/oss-soar-e2e-latency

The attack used is a handful of failed SSH logins against a lab VM I own. Only point these tools at systems you are
authorized to test.

Want to run this setup without building it from scratch?

The code, measurement scripts and raw data behind this post are free and open in
ynprgrmmr/oss-soar-e2e-latency (code MIT, data CC BY 4.0).

If you would rather skip the assembly, I also packaged a turnkey version:
Wazuh ร— Shuffle ร— MikroTik CHR SOAR Starter Kit on OCI (v1.0.0) โ€” $29.
It contains OCI Terraform modules, an allowlist-aware CHR blocking connector, the Wazuh and Shuffle configuration,
and step-by-step deployment, validation and cleanup guides. It is optional; nothing in this post depends on it.

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.