Scheduling Automated Control Assessments, Catching Policy & Telemetry Drift, Prioritizing Fixes & Verifying Defense Readiness
Security controls drift over time as systems patch, policies change, cloud/network rules update, and new applications roll out. Breach and Attack Simulation (BAS) automates recurring, safe simulations across endpoint, network, and identity controls so teams can spot coverage regressions early rather than discovering gaps during a real incident.
| Operational Area | What to Focus On | Best Practice |
|---|---|---|
| Scope & Safety | Run non-disruptive simulations on approved targets with clear schedules. | Exclude sensitive production workloads unless explicitly approved and safe to probe. |
| Drift vs. Baseline | Track changes from prior runs (e.g., a control that previously blocked now allows). | Alert on regressions right away and trace recent policy, network, or agent changes. |
| Actionable Triage | Convert failed or degraded control checks into owned remediation tasks. | Group by root cause (policy gap, log drop, rule miss) and re-run after fixes. |
{
"sim_id": "BAS-2026-109",
"control_area": "Egress & Network Policy",
"target_agent": "bas-agent-03",
"previous_status": "blocked",
"current_status": "allowed",
"drift_detected": true,
"timestamp_utc": "2026-11-26T05:30:00Z"
}
[BAS RESULT LOGGED] BAS-2026-109
Control Area : Egress & Network Policy | Agent: bas-agent-03
Transition : blocked -> allowed | Drift Detected: True
previous = {"BAS-101": "blocked", "BAS-102": "detected", "BAS-109": "blocked"}
current = {"BAS-101": "blocked", "BAS-102": "detected", "BAS-109": "allowed"}
drifted = [
(sim_id, previous[sim_id], current[sim_id])
for sim_id in current
if sim_id in previous and previous[sim_id] != current[sim_id]
]
for sim_id, old_s, new_s in drifted:
print(f"Drift on {sim_id}: {old_s} -> {new_s}")
Drift on BAS-109: blocked -> allowed
from collections import Counter
statuses = ["blocked", "detected", "blocked", "allowed", "detected", "logged"]
counts = Counter(statuses)
for state, total in sorted(counts.items()):
print(f"{state}: {total}")
allowed: 1
blocked: 2
detected: 2
logged: 1
DeviceProcessEvents
| where Timestamp > ago(24h)
| where DeviceName =~ "bas-agent-03"
| project Timestamp, AccountName, InitiatingProcessFileName, FileName, ProcessCommandLine
| order by Timestamp desc
| take 25
Timestamp AccountName InitiatingProcessFileName FileName ProcessCommandLine
--------- ----------- ------------------------- -------- ------------------
2026-11-26 05:30:01Z NT AUTHORITY\SYSTEM bas-runner.exe curl.exe curl.exe -sS -m 5 http://198.51.100.72/probe
curl -sS -o /dev/null -w "HTTP %{http_code}\n" --max-time 5 https://example.com || true
HTTP 200
systemctl is-active nftables || true
systemctl is-active wazuh-agent || true
active
active
SELECT
Pid,
Name,
Exe,
CommandLine
FROM pslist()
WHERE Name =~ "(?i)(bas|agent|powershell|pwsh|curl)\\.exe$"
Pid Name Exe CommandLine
--- ---- --- -----------
3120 bas-runner.exe C:\Program Files\BASAgent\bas-runner.exe bas-runner.exe --daemon
550
/etc/nftables.conf|/etc/ssh/sshd_config
Configuration drift detected on monitored host $(agent.name)
** Alert 1795689012.66210: - local,bas_monitoring,drift
2026 Nov 26 05:31:18 (bas-agent-03) 10.10.24.55->syscheck
Rule: 100950 (level 10) -> 'Configuration drift detected on monitored host bas-agent-03'
results = [
{"sim_id": "BAS-2026-101", "drift_detected": False, "area": "Endpoint"},
{"sim_id": "BAS-2026-109", "drift_detected": True, "area": "Egress"},
]
action_items = [r for r in results if r["drift_detected"]]
for item in action_items:
print("Action needed:", item["sim_id"], "-", item["area"])
Action needed: BAS-2026-109 - Egress
total = 25
prevented_or_detected = 21
drift_count = 2
rate = (prevented_or_detected / total) * 100
print(f"Prevented/Detected: {rate:.1f}% ({prevented_or_detected}/{total}) | Drift items: {drift_count}")
Prevented/Detected: 84.0% (21/25) | Drift items: 2
Select a simulation scenario below to review the control finding and recommended triage steps: