pub struct CollusionConfig {
pub enabled: bool,
pub coordination_window_secs: u64,
pub entropy_threshold: f64,
pub min_entropy_observations: u32,
pub min_coordinated_agents: u32,
pub sync_threshold: f64,
pub recon_denial_threshold: u32,
pub recon_window_secs: u64,
pub drift_threshold: f64,
pub drift_window_secs: u64,
pub drift_min_actions: u32,
}Expand description
Configuration for multi-agent collusion detection.
Fields§
§enabled: boolWhether collusion detection is enabled. Default: true
coordination_window_secs: u64Time window (seconds) for coordinated access detection. Two agents accessing the same resource within this window are correlated. Default: 60
entropy_threshold: f64Minimum Shannon entropy (bits per byte) to flag a parameter as potentially steganographic. Normal text is ~3.5–4.5, compressed/encrypted data is ~7.5+. Default: 6.5
min_entropy_observations: u32Minimum number of high-entropy observations before flagging an agent. Prevents false positives from occasional base64 parameters. Default: 5
min_coordinated_agents: u32Number of distinct agents that must access the same resource within
coordination_window_secs to trigger a coordinated access alert.
Default: 3
sync_threshold: f64Threshold for temporal synchronization score (0.0–1.0). Higher values require more precise synchronization. Default: 0.7
recon_denial_threshold: u32R226: Number of distinct policy denials within recon_window_secs that
triggers a reconnaissance probe alert. Detects agents systematically
probing permission boundaries (Promptware Kill Chain Stage 3).
Default: 10
recon_window_secs: u64R226: Time window (seconds) for reconnaissance probe detection. Default: 60
drift_threshold: f64R226: Drift detection — minimum change in denial rate (0.0–1.0) across a time window to trigger an alert. E.g., if an agent’s denial rate jumps from 5% to 30%, the drift is 0.25 which exceeds the default 0.20 threshold. Default: 0.20
drift_window_secs: u64R226: Drift detection — time window (seconds) for comparing behavior baseline vs current. Default: 3600 (1 hour).
drift_min_actions: u32R226: Drift detection — minimum number of actions before drift detection activates (avoids false alerts on small sample sizes). Default: 20
Implementations§
Source§impl CollusionConfig
impl CollusionConfig
Sourcepub fn validate(&self) -> Result<(), CollusionError>
pub fn validate(&self) -> Result<(), CollusionError>
Validate configuration values.
Trait Implementations§
Source§impl Clone for CollusionConfig
impl Clone for CollusionConfig
Source§fn clone(&self) -> CollusionConfig
fn clone(&self) -> CollusionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more