Abstract

ML-based behavioral detectors in autonomous SOC platforms — UEBA, anomaly engines, isolation forests — assume that attacker behavior will deviate statistically from a learned baseline. That assumption fails against an adversary who actively profiles the baseline and optimizes their actions to minimize anomaly scores while still accomplishing their objective. This article names and formalizes the statistical camouflage problem: the attacker's constrained optimization over the detector's feature space, its convergence properties, and the theoretical limit it approaches. The primary finding is that the attacker's optimization problem is tractable under realistic assumptions, and that single-feature-space behavioral detection converges toward the Bayes error floor as attacker sophistication increases. Multi-modal detection, honeytoken disruption, and causal rather than statistical reasoning are the countermeasures that escape the convergence trap.

A behavioral anomaly detector is, at bottom, a statistical model of normality. It raises an alert when an observed action falls outside what it has learned to expect. That architecture embeds a vulnerability: any adversary who knows what the detector expects — and who can constrain their behavior accordingly — can operate undetected while achieving their objective. This is not a theoretical concern. The adversarial-machine-learning literature, beginning with foundational work on adversarial examples and extending explicitly to security detectors, has established that ML models are not robust against an adversary who optimizes inputs toward the model's decision boundary. Behavioral detectors in autonomous SOC platforms are ML models with a specific input structure: they receive sequences of observable actions over time. An attacker who profiles that structure, understands the feature space, and has the operational patience to act within the baseline rate can construct behavior that is statistically indistinguishable from legitimate activity — the statistical camouflage problem. This article formalizes the problem, derives its convergence properties, examines the attacker's practical leverage, and maps the countermeasures that genuinely raise the cost.

The Behavioral Detector's Implicit Assumption

ML-based behavioral detectors — whether implemented as isolation forests, autoencoders, LSTM-based sequence models, or statistical UEBA baselines — share a common architectural assumption: legitimate users and processes have statistically characterizable behavior, and attack activity will deviate from that characterization in ways detectable by a trained model. This assumption is explicit in the foundational ML-security literature. Sommer and Paxson (2010) identified it as one of the primary reasons anomaly detection in practice generates far higher false-positive rates than controlled experiments suggest: the assumption holds in a closed world where the attacker is not aware of or optimizing against the detection model. In an adversarial open world, it fails.

The failure mode is not model weakness in the conventional sense. It is not that the model is miscalibrated or under-trained. It is that the attacker treats the detection model as a known constraint and optimizes around it. Biggio and Roli (2018) formalized this as the adversarial ML threat model: an attacker with knowledge of the model's feature space and decision boundary can craft inputs that minimize the model's confidence score. Behavioral detectors expose exactly this attack surface: the feature space is observable (an attacker who runs code on an endpoint observes their own behavioral profile) and the decision boundary is inferable by probing the system's alert behavior.

The NIST AI RMF (NIST AI 100-1, 2023) classifies evasion attacks as a primary risk category for AI systems and recommends that deployed AI systems characterize their sensitivity to input manipulation. For behavioral detectors in autonomous SOC platforms, that sensitivity is structural: the detector's decision boundary is visible, in principle, to any attacker with a foothold in the monitored environment.

🛡️ Countermeasures
  • Treat behavioral detection as one input to a multi-signal verdict rather than a standalone gate; an anomaly score that drops does not imply safety if other signals are unchanged.
  • Document the detector's feature space and assess which features an attacker with a given foothold can profile and constrain; include this assessment in the detector's deployment threat model.
  • Evaluate behavioral detectors against red-team probes in which the red team is explicitly given knowledge of the feature set (white-box adversarial evaluation), not just opportunistic simulation.

Threat Model: The Statistical Camouflage Problem

The statistical camouflage problem names a specific adversarial scenario. An attacker with a foothold in a monitored environment seeks to accomplish an objective — data exfiltration, lateral movement, credential access — while evading a behavioral anomaly detector. The attacker's constraint is that their observable action sequence must not cause the detector to raise an alert with sufficient confidence to trigger autonomous containment or human escalation. Their goal is to find an action sequence that satisfies this constraint while maximizing objective attainment.

Four attacker capabilities shape the problem's difficulty. First, observability: the attacker can observe their own behavioral features as logged by the monitored system. A process that can read its own Windows Event Log entries or network flow statistics has direct access to the input representation the detector will receive. Second, probing: the attacker can test whether specific actions cause alerts (by observing whether containment is triggered or analyst activity increases). Third, patience: the attacker can slow their operations to fall within the rate-based features of the normal baseline. Fourth, knowledge transfer: knowledge of the detector's feature space from one environment may transfer to similar SIEM configurations (Grosse et al., 2017, demonstrated analogous transferability for malware classifiers — adversarial examples constructed against one model retained effectiveness against others sharing the same feature distribution).

The attacker's capabilities do not require extraordinary skill. Observability is a default property of a monitored endpoint: the attacker's process writes to the same log system that the detector ingests. Patience is free. The constraint is operational cost — the slower the attacker operates, the longer it takes to achieve their objective — and the risk of detection by signals outside the behavioral baseline (such as threat intelligence feeds or file-hash lookups). The statistical camouflage problem is therefore most acute in environments where behavioral anomaly detection is the primary autonomous triage signal and where the attacker has a long-horizon objective.

Statistical camouflage attacker profile: capabilities required and operational cost
CapabilityRequirementOperational Cost
Baseline profilingCode exec + time to observe own telemetryLow — passive, no additional actions needed
Constraint enforcementAbility to slow or schedule operationsMedium — extends attack timeline
Alert probingObserving SOC response to own actionsMedium-high — risks detection via probe activity itself
Feature transferKnowledge of target's SIEM feature schemaLow-medium — schema often inferable from public documentation
🛡️ Countermeasures
  • Reduce attacker observability of their own behavioral profile: introduce logging delays or aggregation noise so the attacker cannot get immediate feedback on their anomaly score.
  • Deploy honeytokens or canary actions at the expected boundary of the behavioral baseline — actions that look statistically normal but are operationally impossible for a legitimate user — to detect camouflage-seeking probes.
  • Integrate threat intelligence signals as independent detection channels that are not derivable from the attacker's behavioral profile alone.

How Behavioral Baselines Are Built: The Feature Surface

A behavioral detector's feature surface — the set of observable quantities it uses to classify behavior — defines the space the attacker must camouflage. Understanding this surface is prerequisite to analyzing the camouflage problem. In production UEBA and SIEM-integrated behavioral engines, the feature surface typically includes four categories: access pattern features (resources accessed, frequency, time-of-day), process and system features (parent-child process relationships, loaded modules, command-line patterns), network features (connection destinations, volumes, protocol distributions), and sequence features (order and timing of action types over a session).

The baseline is constructed by training a model over a historical observation window. Statistical baselines characterize mean and variance per feature and raise alerts when observed values fall beyond k standard deviations (univariate) or beyond a multivariate distance metric (e.g., Mahalanobis distance). ML baselines — isolation forests, autoencoders, density-estimation models — learn a more complex representation of the normal distribution and assign an anomaly score to each observation. Both classes produce a scalar score and a threshold.

The critical property for the camouflage problem is that the feature surface is learnable from the attacker's position. Access-pattern features are directly observable by any process that can query its own file-system or network activity. Process-tree features are observable via standard OS APIs. Network volume features are directly measurable by the attacker's own connection process. The attacker, in effect, has access to the same input that the detector will receive, delayed by the logging and enrichment pipeline.

The behavioral baseline pipeline transforms observable actions into an anomaly score; each stage is observable by an attacker with a foothold in the monitored environment.Behavioral Detection Feature SurfaceRaw Actionsprocess, network, file eventslog eventsFeature Extractionaccess, volume, sequence patternsfeature vectorNormalizationz-score / min-max scalingnormalized featuresAnomaly Modelisolation forest / autoencoderanomaly scoreAlert Thresholdscore > θ → alert fired
The behavioral baseline pipeline transforms observable actions into an anomaly score; each stage is observable by an attacker with a foothold in the monitored environment.
🛡️ Countermeasures
  • Introduce feature-space opacity where possible: encrypt or delay feature telemetry so the attacker cannot observe exact feature values in real time.
  • Add a small bounded random perturbation to continuous features (e.g., access-time jitter, volume rounding) before the attacker's telemetry reaches the detector — this breaks the attacker's ability to precisely calibrate their behavior to the decision boundary without significantly degrading detection power for non-camouflaging attacks.
  • Supplement continuous features with behavioral features that are structurally difficult to camouflage: cryptographic access patterns, certificate chain validation events, or hardware attestation signals that cannot be authored by user-space code.

The Camouflage Attack Lifecycle

A statistical camouflage attack proceeds through four operational phases, each with distinct resource requirements and detection exposure.

Phase 1 (baseline profiling): The attacker's implant, before executing its primary objective, observes its own behavioral telemetry over multiple sessions. It records the access-pattern distributions, command-line frequencies, and network volume statistics that a legitimate process at the same privilege level would produce. This phase requires only time and code execution; it does not deviate from the baseline, so it does not trigger detection. The profiling duration is inversely proportional to the amount of behavioral variance in the environment: noisier environments require longer profiling to converge on stable estimates.

Phase 2 (constraint calibration): The attacker uses the profiled baseline to construct constraints on their primary-objective actions. Actions that would fall outside the baseline distribution in access volume, timing, or command sequence are rescheduled, fragmented, or replaced with lower-anomaly alternatives. For example, an exfiltration action that would require transferring 50 MB in a single burst — far outside the process's normal network-volume baseline — is fragmented into 200 transfers of 256 KB each at intervals drawn from the process's observed inter-session timing distribution.

Phase 3 (constrained execution): The attacker executes their primary objective while enforcing the calibrated constraints. Each action is checked against the profiled distribution before execution. Actions that would produce an anomaly score above a conservative safety margin are deferred or restructured. The attacker's operational velocity is reduced to the rate that the baseline permits.

Phase 4 (coverage maintenance): Once the primary objective is achieved, the attacker may need to maintain the behavioral baseline to avoid retroactive detection. If the behavioral detector runs retrospective analysis over a sliding window, a sudden change in behavior after a successful exfiltration could trigger an alert that reveals the compromise. The attacker therefore continues constrained baseline behavior until the attack window is safely outside the retrospective analysis window.

A behavioral mimicry attack cycles through four operational states; the transition from execution back to coverage maintenance prevents retroactive detection.Statistical Camouflage Attack LifecycleBaselineProfilingobserve owntelemetryConstraintCalibrationmap attack tobaselineConstrainedExecutionstay withinthresholdCoverageMaintenanceextend baselinewindowbaseline learnedconstraints setobjective donewindow resets
A behavioral mimicry attack cycles through four operational states; the transition from execution back to coverage maintenance prevents retroactive detection.
🛡️ Countermeasures
  • Detect the profiling phase by monitoring for unusually stable, low-variance behavior in a process that has recently changed privilege level or context; legitimate processes exhibit natural variance, while a profiling implant optimizing for baseline fit produces suspiciously consistent behavior.
  • Introduce behavioral decoys: canary resources with statistically normal access patterns but no legitimate function, whose access indicates profiling-phase reconnaissance.
  • Apply a sliding retrospective analysis window that extends beyond the attacker's expected coverage-maintenance period (e.g., 30 days) to catch late-window divergence.

Formalizing the Statistical Camouflage Problem

Let the behavioral detector be characterized by a decision function f: X → R that maps an action feature vector x ∈ X to an anomaly score, and a threshold θ such that an alert fires when f(x) > θ. Let B be the training distribution over X from which the normal baseline is estimated, so that f(x) is low when x is consistent with B and high when x is anomalous. The detector's objective is to minimize false negatives (missed attacks) subject to an acceptable false-positive rate.

The attacker's optimization problem is the dual: given a set of attack objectives O with associated action requirements A(o) ⊆ X for each objective o ∈ O, find an execution x* ∈ A(o) that accomplishes objective o while satisfying f(x*) ≤ θ − ε for some safety margin ε > 0. Formally, this is a constraint satisfaction problem over the detector's feature space. Biggio and Roli (2018) established that for differentiable models, this problem is solvable by gradient-based optimization when the attacker has access to the model's score function. For non-differentiable models (isolation forests, statistical baselines), zeroth-order optimization — estimating gradients from function evaluations — remains tractable given access to the score function through probing.

The problem's tractability scales with the dimensionality of X. In low-dimensional feature spaces (a small number of scalar behavioral features), the attacker must only satisfy a small number of constraints and can do so with limited profiling. In high-dimensional spaces (many jointly monitored features), the camouflage problem is harder: the attacker must simultaneously satisfy constraints in all dimensions that the detector jointly evaluates. This is the primary argument for high-dimensional behavioral detection — increasing the dimension of the feature space increases the attacker's constraint burden, even if no individual feature is uncamouflable.

Rubinstein et al. (2009) demonstrated this principle empirically for statistical anomaly detectors targeted by poisoning attacks: detectors that operated on many jointly-evaluated features were harder to evade than those relying on single-feature anomaly scores. The same principle applies here in the evasion direction: joint evaluation of features forces the attacker to satisfy more constraints simultaneously, raising the operational cost of camouflage.

\[\text{Camouflage: } \underset{x \in A(o)}{\min} \; d(x, \mathcal{B}) \quad \text{s.t.} \quad U(x) \geq U_{\min}\]
\[\text{Irreducible error: } \epsilon^* = \min_{h \in \mathcal{H}} \mathbb{E}[\mathbf{1}_{h(x) \neq y}] \quad \text{(Bayes error floor)}\]
🛡️ Countermeasures
  • Increase the dimensionality of the joint feature space: the attacker's constraint burden scales with the number of features that must be simultaneously satisfied, so adding independent feature dimensions directly raises the cost of camouflage.
  • Monitor for constraint-satisfaction behavior: an attacker enforcing constraints will exhibit lower variance in normally high-variance features (access counts, timing), making the distribution of behavioral variance itself a detection signal.
  • Use ensemble detectors that apply different model classes to the same feature space: an adversarial example optimized to evade an isolation forest may still trigger a statistical deviation check or an LSTM sequence anomaly.

Convergence Toward the Detection Floor

Sommer and Paxson (2010) observed that anomaly detection in practice operates under a severe base-rate problem: even at a 1% false-positive rate, a high-traffic environment generates more false positives per hour than a human analyst can review. The statistical camouflage problem adds a complementary observation: as attacker sophistication increases, the false-negative rate also rises, because the attacker is optimizing to minimize their detectability. The combination — rising false positives from environmental noise and rising false negatives from adversarial optimization — is what Sommer and Paxson identified as the 'open world' problem.

As the attacker's optimization converges toward the boundary of the normal distribution, the behavioral detector's ability to distinguish attack from normal approaches its irreducible error floor — the Bayes error rate for the classification problem of distinguishing camouflaged-attack behavior from legitimate behavior. When the attacker's action distribution and the normal behavior distribution overlap significantly in the feature space, the Bayes error rate is high, meaning that no detector can achieve low false-positive and low false-negative rates simultaneously. Apruzzese et al. (2023) document this limit empirically for multiple ML-based security detectors: adversarial inputs crafted against deployed production models reliably reduce detection rates, and the reduction scales with the attacker's knowledge of the feature space.

The implication is not that behavioral detection is worthless. It is that behavioral detection's effectiveness is bounded by the attacker's optimization effort, and that bound is determined by how much of the feature space the attacker can observe and constrain. A detector with a low attacker-observable feature surface (i.e., features derived from sources the attacker cannot measure about themselves) is more robust than one built entirely from attacker-observable signals.

🛡️ Countermeasures
  • Design at least one detection channel around features the attacker cannot easily profile about themselves: cryptographic proof events (TPM attestations, certificate handshake logs), kernel-mode behavioral signals inaccessible from user space, or hardware-derived timing measurements.
  • Accept that behavioral detection alone cannot achieve zero false negatives against a determined camouflage attack; design the SOC workflow accordingly, treating behavioral detection as a probabilistic enrichment layer rather than a binary gate.
  • Measure the actual adversarial robustness of deployed behavioral models using adversarial probes (see toolkit) at each detection-model update cycle, not just accuracy on historical benign data.

Countermeasures: Breaking the Statistical Equivalence

Behavioral mimicry succeeds because the attacker can produce an action vector that is statistically equivalent to a legitimate one in the detector's feature space. Countermeasures that escape this trap must either raise the cost of achieving that equivalence or introduce detection signals that are structurally outside the equivalence.

Multi-modal corroboration requires that a verdict of benign be supported by signals in multiple independent feature spaces. If the behavioral baseline is combined with a threat intelligence signal (does any accessed resource appear on a public or internal IOC feed?), a content inspection signal (does any transmitted file match a known-sensitive pattern?), and an identity signal (is the process acting on behalf of a privileged identity in an unusual context?), the attacker must simultaneously camouflage in all four channels. Each channel independently has a non-trivial camouflage cost; the joint probability of successful simultaneous camouflage across independent channels falls multiplicatively.

Honeytokens are another structural escape from the statistical equivalence trap. A honeytoken is an entity — a credential, a file, a network service — that is statistically plausible for a legitimate user to encounter but that a legitimate user would never actually access. By placing honeytokens at the boundary of the normal behavioral distribution, the defender creates a detection signal that the attacker cannot camouflage around: accessing the honeytoken is statistically normal (the anomaly detector will not flag it) but definitively anomalous in operational terms. Carlini and Wagner (2017) demonstrated that adversarial perturbations that stay close to the original input cannot avoid auxiliary canary signals embedded at the original input's location — honeytokens are the behavioral analog of this canary principle.

Causal detection replaces statistical anomaly scoring with a causal query: given that this action was taken, what is the most parsimonious causal explanation consistent with the observed process graph? A legitimate process with a known function does not need to enumerate Active Directory. A process that has only ever handled document rendering has no causal reason to make outbound connections to a new IP. Causal reasoning does not require a behavioral baseline and is therefore not vulnerable to the statistical camouflage problem — but it requires a well-specified causal model of legitimate process behavior, which is non-trivial to build and maintain.

Standard anomaly detection is exploitable by statistical camouflage; causal and multi-modal detection raise the cost by introducing channels the attacker cannot simultaneously satisfy.Statistical vs. Causal Detection Against MimicryVULNERABLEStandard Anomalysingle feature spaceHARDENED ALTERNATIVESMulti-Modalcorrelated channelsHoneytoken Layercanary at boundaryCausal Detectionprocess-graph reasoningescapes statistical equivalencestructural overridebaseline-independent
Standard anomaly detection is exploitable by statistical camouflage; causal and multi-modal detection raise the cost by introducing channels the attacker cannot simultaneously satisfy.
🛡️ Countermeasures
  • Deploy multi-modal corroboration: require that a behavioral anomaly score be above threshold AND at least one independent channel (threat intelligence, identity context, content inspection) also flags the action before an autonomous containment action is taken.
  • Place honeytokens at the boundary of the normal behavioral distribution for high-value asset classes (privileged credentials, sensitive file shares, internal API endpoints); treat any access as a high-confidence indicator regardless of behavioral anomaly score.
  • Pilot causal detection models on high-value process classes (domain controllers, certificate authorities, key management services) where the process graph is well-specified and deviation from causal expectation is easy to define.

Limitations and Open Questions

This analysis rests on several assumptions that bound its applicability. First, the attacker is assumed to have stable access to their own behavioral telemetry, which requires persistent code execution. An attacker whose foothold is intermittent faces a harder profiling problem because the baseline observations are sparse. Second, the analysis assumes that the behavioral feature space is observable by the attacker from user space. Features derived from kernel-mode sensors, hardware performance counters, or TPM attestation events are substantially harder to observe and constrain; a detector built primarily on such signals is more resistant to statistical camouflage.

The open question this analysis raises for the research community is the measurement gap: while the adversarial-ML literature has established the theoretical tractability of the camouflage optimization problem, systematic empirical measurement of the attacker's practical convergence rate against production UEBA deployments — controlling for feature-space dimensionality, model class, and alert threshold — has not been published in peer-reviewed form as of this writing. The existing empirical evidence (Sommer and Paxson, 2010; Apruzzese et al., 2023; Grosse et al., 2017) establishes the vulnerability class but does not quantify the specific rate at which production behavioral detectors fail under targeted camouflage. That measurement study is the natural next step for applied security research.

Detection robustness under mimicry attack depends jointly on feature observability by the attacker and the detector's dimensionality — low observability and high dimensionality together minimize the camouflage problem.Detection Robustness vs. Attacker Observation Access↑ High Dim.Low Dim. ↓Low Obs, High Dimmost robustHigh Obs, High Dimharder to camouflageLow Obs, Low Dimmoderate robustnessHigh Obs, Low Dimmost vulnerable← Low Feature Observability —— High Feature Observability →Feature Dimensionality increases upward
Detection robustness under mimicry attack depends jointly on feature observability by the attacker and the detector's dimensionality — low observability and high dimensionality together minimize the camouflage problem.
🛡️ Countermeasures
  • Invest in kernel-mode and hardware-derived behavioral features as the highest-ROI hardening for behavioral detectors: these features reduce attacker observability and are outside the reach of user-space camouflage.
  • Document the attacker-observable fraction of the feature space explicitly in the detector's deployment record; re-evaluate this fraction whenever the SIEM configuration or endpoint sensor set changes.
  • Treat the measurement gap as a risk: in the absence of published empirical data on production-detector camouflage rates, assume a sophisticated attacker can achieve partial camouflage within weeks of initial access and design compensating controls accordingly.

Key takeaways

  • The statistical camouflage problem is the attacker's constrained optimization over a behavioral detector's feature space: any feature vector the attacker can profile, they can constrain their behavior to match — making statistical equivalence to the normal baseline achievable given sufficient patience.
  • The attacker's optimization converges toward the detector's Bayes error floor, a structural limit at which no anomaly scorer can achieve both low false-positive and low false-negative rates simultaneously; this limit is not a model weakness but a property of the information available.
  • Feature observability is the primary variable under the defender's control: features derived from kernel-mode sensors, hardware attestation, or other sources the attacker cannot measure about themselves are structurally more resistant to statistical camouflage than user-space behavioral features.
  • Multi-modal corroboration, honeytokens, and causal detection are the three countermeasures that escape the statistical equivalence trap; each introduces a detection channel the attacker cannot simultaneously satisfy by optimizing a single feature space.
  • Behavioral anomaly detection should be treated as a probabilistic enrichment layer, not a binary gate; its effectiveness is bounded by the attacker's optimization effort, and that bound must be estimated and disclosed as part of the detector's operational threat model.

Practitioner Toolkit

Copy-paste, strictly defensive artifacts you can use today. Nothing here attacks a real system.

Behavioral Detector Hardening Gatechecklist

Pre-deployment gate checklist for any autonomous SOC behavioral detection pipeline to assess mimicry resistance.

  • Behavioral feature surface is documented; each feature is classified as attacker-observable (user-space) or attacker-opaque (kernel-mode, hardware-derived, cryptographic)
  • At least 30% of detection features are attacker-opaque (kernel, hardware, attestation) to raise the constraint-calibration cost
  • Multi-modal corroboration is enabled: behavioral anomaly alone cannot trigger autonomous containment without corroboration from at least one independent channel
  • Honeytokens are deployed at the boundary of normal behavioral distributions for at least two high-value asset classes (privileged credentials, sensitive shares)
  • Detector is evaluated quarterly using adversarial behavioral probes (see harness below) with explicit knowledge of the feature set (white-box evaluation)
  • Causal detection rules are defined for at least the highest-privilege process classes in the environment
  • Detection thresholds are calibrated against the base-rate reality of the environment (false-positive rate × alert volume < analyst capacity)
  • Adversarial robustness is documented in the detector's operational record alongside standard accuracy metrics
🧪Adversarial Behavioral Probe Harnessharness

Pseudocode harness: white-box adversarial probe that tests whether behavior crafted to minimize anomaly score evades detection — run in a non-production lab environment only.

# Adversarial Behavioral Probe Harness
# Purpose: measure how far an attacker can reduce anomaly score by constraining behavior
# to the learned baseline, while still accomplishing a canary objective
# Environment: isolated lab with a copy of the production UEBA feature extractor (read-only)
# MUST NOT run against production systems or real accounts

CANARY_OBJECTIVE = 'access synthetic canary file (honeytoken-test-01.txt)'
BASELINE = load_behavioral_baseline('ueba_baseline_export.json')  # defender-provided read-only

function extract_features(action_log):
    # same feature extractor as the production detector (white-box copy)
    return compute_features(action_log)

function estimate_anomaly_score(features):
    return isolation_forest.score(features)  # or statistical distance, etc.

# Phase 1: Profile the baseline
natural_variance = sample_baseline_variance(BASELINE, n_samples=500)
constraints = derive_constraints(natural_variance, safety_margin=0.1)

# Phase 2: Execute constrained canary action
constrained_action = schedule_access(
    target=CANARY_OBJECTIVE,
    timing=sample_from(BASELINE.inter_access_dist),
    volume=clamp(random(), min=BASELINE.volume_p10, max=BASELINE.volume_p90)
)
features = extract_features(constrained_action)
score = estimate_anomaly_score(features)

# Phase 3: Report
if score <= DETECTION_THRESHOLD:
    report_finding('CAMOUFLAGE SUCCEEDED: canary accessed without alert', score)
else:
    report_finding('Camouflage failed at this constraint level', score)

# Iterate with tighter constraints to find the minimum anomaly score achievable
# for an action that accomplishes the canary objective
Sanitized pseudocode — lab/staging use only. Never run against production monitoring or real user accounts.
📝Causal Detection Rule Authoring Promptprompt template

System prompt for authoring causal detection rules for a specific process class — produces rules a SIEM or detection-as-code platform can implement.

You are a senior detection engineer writing causal behavior rules for a security detection platform.

PROCESS CLASS: {{PROCESS_CLASS}}

For this process class, define a causal behavioral model:

1. LEGITIMATE FUNCTION: What is this process legitimately designed to do? List its 3-5 core operations.

2. CAUSAL RULES (write 4-6 rules): Each rule has the form:
   IF [process does X] AND [process does NOT have legitimate reason R for X]
   THEN [alert with confidence HIGH/MEDIUM]
   
   Focus on actions that are causally inconsistent with the process's legitimate function,
   regardless of whether they look statistically normal (e.g., a PDF renderer that makes
   outbound network connections — causally impossible, any statistical baseline irrelevant).

3. BOUNDARY HONEYTOKENS: Suggest 2-3 resource types that would be statistically plausible
   for this process to access (matching its behavioral profile) but operationally impossible
   for a legitimate instance of this process to need.

4. INDEPENDENCE CHECK: Confirm that each rule is independent of the process's statistical
   behavioral baseline (i.e., would fire even if the attacker had perfectly camouflaged
   their statistical anomaly score).

Output as structured JSON with fields: process_class, legitimate_functions, causal_rules, honeytokens, independence_notes.
Replace {{PROCESS_CLASS}} with the specific process type (e.g., 'Windows certificate authority service', 'PDF rendering process', 'HR HRIS export job').

Glossary

Statistical Camouflage Problem
The adversarial optimization problem in which an attacker constrains their observable behavior to fall within the defender's learned normal distribution while still accomplishing an attack objective.
Bayes Error Floor
The irreducible minimum error rate for a classification problem, determined by the overlap between class-conditional probability distributions; the fundamental limit that no classifier can beat regardless of model complexity.
UEBA
User and Entity Behavior Analytics — a class of security tools that build statistical baselines of normal user and system behavior and raise anomaly alerts when observed behavior deviates from the baseline.
Anomaly Score
A scalar output of a behavioral detector quantifying how far an observed action falls from the learned normal distribution; alerts are raised when this score exceeds a configured threshold.
Honeytoken
A synthetic entity (credential, file, service endpoint) placed at the boundary of the normal behavioral distribution that a legitimate user would never access; access constitutes a high-confidence detection signal independent of anomaly score.
Multi-Modal Corroboration
A detection architecture requiring that a verdict be supported by independent signals from multiple non-correlated feature spaces, so the attacker must camouflage simultaneously across all channels.
Causal Detection
A detection approach that identifies anomalous behavior by asking whether an observed action is causally consistent with a known-legitimate process's function, rather than comparing it statistically to a baseline.
Feature Observability
The degree to which an attacker with a given foothold can measure the feature values that a behavioral detector will receive about their own actions; high observability enables precise constraint calibration.

References

  1. MITRE ATLAS: Adversarial Threat Landscape for AI Systems
  2. OWASP Agentic Security Initiative: Agentic AI Threats and Mitigations (2025)
  3. NIST AI 100-1: Artificial Intelligence Risk Management Framework (AI RMF 1.0)
  4. Biggio & Roli — Wild Patterns: Ten Years After the Rise of Adversarial Machine Learning (Pattern Recognition, 2018)
  5. Sommer & Paxson — Outside the Closed World: On Using Machine Learning for Network Intrusion Detection (IEEE S&P, 2010)
  6. Apruzzese et al. — The Role of Machine Learning in Cybersecurity (Digital Threats: Research and Practice, 2023)
  7. Rubinstein et al. — ANTIDOTE: Understanding and Defending Against Poisoning of Anomaly Detectors (IMC, 2009)
  8. Grosse et al. — Adversarial Examples for Malware Detection (ESORICS, 2017)
  9. Carlini & Wagner — Towards Evaluating the Robustness of Neural Networks (IEEE S&P, 2017)