1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Campaign Correlation Module
//!
//! Provides fingerprint indexing and campaign detection for synapse-pingora.
//! This module enables efficient correlation of network entities based on
//! shared TLS/HTTP fingerprints, allowing detection of coordinated attack
//! campaigns that may originate from different IP addresses.
//!
//! # Architecture
//!
//! The correlation system uses inverted indexes for O(1) lookups:
//! - JA4 fingerprint -> Set of IPs
//! - Combined fingerprint hash (JA4+JA4H) -> Set of IPs
//! - Reverse lookup for cleanup: IP -> fingerprints
//!
//! # Phase 4 Module (Campaign Detection)
//!
//! ## Features
//! - Thread-safe concurrent access via DashMap
//! - O(1) fingerprint-to-IP lookups
//! - Automatic group threshold detection
//! - Memory-efficient reverse index for cleanup
//!
//! ## Related Modules
//! - [`crate::fingerprint`] - JA4/JA4H fingerprint generation
//! - [`crate::entity`] - Per-IP entity tracking with fingerprint storage
pub use ;
pub use ;
pub use ;