Cyber Defense Circuit Breakers
When an emergency firewall patch alters a log format or an incident spikes event volume, Blue Teams need deterministic tripwires rather than silent drops or black-box automation. This guide wires LyftData’s native pipeline guards and Workflow controls into a repeatable Blue Team circuit-breaker architecture.
1. Keep visibility during an incident spike
Section titled “1. Keep visibility during an incident spike”Volume is metered once at acceptance. On every paid offer, exceeding your daily volume allowance never stops, throttles, drains, or refuses data — overage is measured and warned, and settled with a fair True-Up rather than cutting off telemetry during an active incident. See Licensing.
Keep the plain-Job durability boundary explicit when choosing transports:
A plain Job can lose in-flight records if a Worker crashes. Sources and callers can redeliver, so destination writes can repeat.
Use durable landing edges (file-store, object storage, or a broker) where crash recovery matters; see Transports and Durability and Delivery Semantics.
2. Schema assertions and customer quarantine branches
Section titled “2. Schema assertions and customer quarantine branches”Instead of letting a broken vendor schema crash a pipeline or silently disappear, run assert in schema.checks mode with drop-onfailure: false so every event is annotated with schema_ok and schema_issues, then fan out over a worker-channel so downstream jobs route valid events to your SIEM and malformed events to a local quarantine archive.
Prerequisite: create the clone Worker channel
Section titled “Prerequisite: create the clone Worker channel”Worker channels are local to one Worker and must exist in Worker settings before jobs reference them (otherwise the producer fails with worker_channel_missing):
- Open Workers →
<worker>→ Settings (the built-in Worker works for evaluation). - Add a channel named
security-validatedwith drivercloneso every downstream consumer receives a copy of each event. - Deploy all jobs that share
security-validatedto that same Worker (or connect them with a Workflow Fan Out on Community+ and above).
Job 1: Validate incoming events and publish to a channel
Section titled “Job 1: Validate incoming events and publish to a channel”name: security-schema-guardinput: http-server: address: 127.0.0.1:8091 only-body: true json: trueactions: - assert: description: Validate required Blue Team telemetry fields without dropping invalid records schema: checks: checks: - name: severity kind: in-set field: severity values: ["low", "medium", "high", "critical"] case-insensitive: true required: true code: invalid_severity - name: event_code kind: number field: event_code allow-decimal: false allow-negative: false required: true code: invalid_event_code output: annotation-field: _assert ok-field: schema_ok issues-field: schema_issues behaviour: drop-onfailure: falseoutput: worker-channel: worker-channel-name: security-validated(Keep schema.checks when routing invalid records to a quarantine branch: schema.schema-file and schema.schema-string validate against JSON Schema and apply behaviour, but they do not emit schema_ok or schema_issues branch fields.)
Job 2 & Job 3: Split valid events and quarantined events
Section titled “Job 2 & Job 3: Split valid events and quarantined events”Deploy both consumer jobs on the same Worker and confirm they are Running before sending test events (or connect them through a Workflow Fan Out):
name: security-valid-sinkinput: worker-channel: worker-channel-name: security-validatedactions: - filter: how: expression: "schema_ok == true"output: file-store: path: /var/lib/lyftdata/security-valid object-name: name: valid/events guid-prefix: "-" guid-suffix: ".json.gz" preprocessors: - gzipname: security-quarantine-sinkinput: worker-channel: worker-channel-name: security-validatedactions: - filter: how: expression: "schema_ok == false"output: file-store: path: /var/lib/lyftdata/security-quarantine object-name: name: quarantine/events guid-prefix: "-" guid-suffix: ".json.gz" preprocessors: - gzipVerify the schema guard (marked-event readback)
Section titled “Verify the schema guard (marked-event readback)”Start security-valid-sink and security-quarantine-sink first, then start security-schema-guard and confirm all three jobs are Running on the same Worker. The readback below generates a run-specific marker pair, posts one valid event and one malformed event to http://127.0.0.1:8091/, waits through a deadline for the exact decoded markers to land in their respective branches (default http-server returns HTTP 200 on queue admission before downstream file-store outputs flush), and checks that neither marker appears in the opposite directory’s files present at verification time:
set -euo pipefailRUN_ID="$(date -u +%s)-$$"VALID_MARKER="ld-cb-valid-${RUN_ID}"BAD_MARKER="ld-cb-bad-${RUN_ID}"VALID_DIR="/var/lib/lyftdata/security-valid/valid"BAD_DIR="/var/lib/lyftdata/security-quarantine/quarantine"
curl --fail-with-body --max-time 10 -sS -X POST http://127.0.0.1:8091/ \ -H "Content-Type: application/json" \ -d "{\"marker_id\":\"${VALID_MARKER}\",\"feed_name\":\"fw-edge-01\",\"severity\":\"high\",\"event_code\":4625}"
curl --fail-with-body --max-time 10 -sS -X POST http://127.0.0.1:8091/ \ -H "Content-Type: application/json" \ -d "{\"marker_id\":\"${BAD_MARKER}\",\"feed_name\":\"fw-edge-01\",\"severity\":\"unknown\",\"event_code\":\"bad\"}"
has_match() { local dir="$1" expr="$2" marker="$3" f for f in "${dir}"/events-*.json.gz; do [[ -f "${f}" ]] || continue if gunzip -c "${f}" 2>/dev/null | jq -e --arg marker "${marker}" "${expr}" >/dev/null 2>&1; then return 0 fi done return 1}
valid_seen=0bad_seen=0for _ in $(seq 1 30); do if [[ "${valid_seen}" -eq 0 ]] && has_match "${VALID_DIR}" '.marker_id == $marker and .schema_ok == true' "${VALID_MARKER}"; then valid_seen=1 fi if [[ "${bad_seen}" -eq 0 ]] && has_match "${BAD_DIR}" '.marker_id == $marker and .schema_ok == false and (.schema_issues | length > 0)' "${BAD_MARKER}"; then bad_seen=1 fi if [[ "${valid_seen}" -eq 1 && "${bad_seen}" -eq 1 ]]; then break fi sleep 0.5done
test "${valid_seen}" -eq 1test "${bad_seen}" -eq 1if has_match "${VALID_DIR}" '.marker_id == $marker' "${BAD_MARKER}"; then exit 1; fiif has_match "${BAD_DIR}" '.marker_id == $marker' "${VALID_MARKER}"; then exit 1; fi3. Silence and quarantine-rate monitors (stalled and aggregate)
Section titled “3. Silence and quarantine-rate monitors (stalled and aggregate)”A silent firewall or a surge in quarantined events should surface quickly rather than weeks later during an investigation.
Feed-silence monitor (stalled)
Section titled “Feed-silence monitor (stalled)”stalled emits a synthetic event carrying your configured marker (alert_status: "stalled") and the group value in stalled on both transitions: streaming: "yes" when a feed starts or recovers, and streaming: "no" when the feed goes silent past timeout. Because the Worker forwards original source records alongside synthetic transition events, filter on alert_status == "stalled", streaming == "no", and a non-empty stalled group marker (or inspect streaming == "yes" separately for recovery notices). If untrusted source records can already carry alert_status, streaming, or stalled, strip or clear those fields upstream before stalled:
name: security-feed-silence-monitorinput: worker-channel: worker-channel-name: security-validatedactions: - stalled: marker: "alert_status:stalled" timeout: 60s input-field: feed_name - filter: how: expression: 'alert_status == "stalled" and streaming == "no" and stalled ~= nil and stalled ~= ""'output: message: tag: feed-silence-alertEvent-driven quarantine-rate summary (aggregate)
Section titled “Event-driven quarantine-rate summary (aggregate)”aggregate with aggregate-trigger.interval evaluates elapsed time when a matching event arrives and shares one last-emission timer across groups in per-window-record mode. It summarizes active malformed-event bursts per feed_name, but a lone malformed record will not emit on a wall-clock tick until another malformed event arrives after the interval (and a busy feed can trigger emission ahead of a quieter group):
name: security-quarantine-rate-monitorinput: worker-channel: worker-channel-name: security-validatedactions: - filter: how: expression: "schema_ok == false" - aggregate: group-by: - feed_name aggregations: - field: marker_id op: count as: quarantined_events aggregate-trigger: interval: 60soutput: message: tag: quarantine-rate-summarySee Advanced Correlation and Worker KV & Stateful Pipelines for multi-gateway stateful correlation patterns.
4. Fixed-schema operational circuit breakers (Triggers + Checkpoints)
Section titled “4. Fixed-schema operational circuit breakers (Triggers + Checkpoints)”In licensed editions (Community+ and above), combine Triggers and Workflow Checkpoints so operators — or scoped MCP responder sessions — can trip pre-approved defensive actions without editing live pipelines:
- Admin-published Triggers (
/deployments/triggers):- Define a stable slug (for example
enable-forensic-tapordivert-poisoned-feed), strict JSON Schema parameter validation, permitted roles, and per-user rate limits. - Pass
_idempotency_keywhen invoking so retries do not fire duplicate dispatches. - Remember the delivery boundary: Trigger acceptance (
accepted_for_dispatch, at-most-once) means LyftData sent the invocation message for dispatch — verify downstream runtime counters and destination readback in Runtime Evidence.
- Define a stable slug (for example
- Workflow Checkpoints (
/deployments/workflow-checkpoints):- Use Workflow Checkpoints (
/api/checkpoints) when a high-impact operational workflow should pause inacceptedstate until an administrator reviews the context and explicitly transitions it toreleasedorcanceled(or lets it reachexpired). - Reading checkpoints (
GET /api/checkpoints) accepts viewer, user, or admin principals within visible tenant scope; resuming or canceling requires admin authority (ui-write).
- Use Workflow Checkpoints (
5. Rotate SIEMs or AI SOCs at the last hop
Section titled “5. Rotate SIEMs or AI SOCs at the last hop”Because normalization (OCSF 1.8.0), enrichment, schema guards, and full-fidelity object-storage archiving live in self-hosted LyftData Workers, adding or replacing a SIEM or AI SOC changes only the final destination branch:
- Keep your existing SIEM and full-fidelity archive branches untouched in the published Workflow.
- Add a parallel Workflow Fan Out branch targeting the candidate SIEM or AI SOC endpoint (using
http-post,splunk-hec, orazure-monitor). - Validate the new branch with a Deployment Manager Plan diff before applying, verify marked-event arrival in both destinations, and retire the old last-hop branch only after parity is confirmed.
Troubleshooting
Section titled “Troubleshooting”| What you see | What to check | What confirms recovery |
|---|---|---|
| Malformed events disappear instead of landing in quarantine | Confirm assert.behaviour sets drop-onfailure: false, assert.schema uses checks (with output: nested inside schema.checks), and the quarantine sink filters on schema_ok == false. |
Malformed test event lands in /var/lib/lyftdata/security-quarantine with populated schema_issues and does not appear in security-valid. |
Quarantine sink writes zero files while valid sink receives events (or worker_channel_missing) |
Confirm channel security-validated exists in Worker settings with driver clone (not standard), and confirm all jobs reading security-validated are deployed to the same Worker and Running before posting test events. |
Both VALID_MARKER and BAD_MARKER pass their exact jq -e readbacks and mutual-exclusion checks. |
| Silence monitor alerts when a healthy feed starts | Confirm the filter checks alert_status == "stalled" and streaming == "no" so initial/recovery streaming == "yes" markers do not trigger silence alerts. |
Healthy feeds emit zero silence alerts; stopping a feed past timeout emits one alert with streaming == "no". |
Trigger invocation returns accepted_for_dispatch, but no action occurs |
Confirm the target message-triggered job is deployed and running on a healthy Worker and matches the Trigger’s tag; see Messages. | Target job run counters increment and downstream output readback confirms the effect. |
Limits and non-claims (LyftData 3.0)
Section titled “Limits and non-claims (LyftData 3.0)”- LyftData 3.0 does not ship a dedicated built-in PII detection, masking, or redaction DSL action; remove or transform sensitive fields using
remove,filter, or Lua/JavaScript (script,java-scripton Community+ and above). - LyftData 3.0 does not claim compliance certifications, cross-Worker host-loss recovery, general replay tooling, or exactly-once delivery.