Expand description
§Network Simulation
Adversary modelling, censorship simulation, correlation attacks, and statistical traffic analysis:
- Adversary Models: Passive observer, active attacker, global observer, compromised relays
- Censorship Simulation: IP/port blocking, DPI, throttling, TCP reset
- Correlation Analysis: Timing & size correlation between traffic flows
- Statistical Analysis: Entropy, chi-squared, pattern detection, timing regularity
use shadow_network_sim::{CensorshipSimulator, CorrelationAnalyzer, StatisticalAnalyzer};
let censor = CensorshipSimulator::with_standard_rules();
let analyzer = CorrelationAnalyzer::new();
let stats = StatisticalAnalyzer::new();Re-exports§
pub use adversary::AdversaryCapabilities;pub use adversary::AdversaryModel;pub use adversary::AdversaryType;pub use adversary::ObservedFlow;pub use analysis::AnalysisResult;pub use analysis::StatisticalAnalyzer;pub use censorship::BlockingRule;pub use censorship::CensorResult;pub use censorship::CensorStats;pub use censorship::CensorshipMethod;pub use censorship::CensorshipSimulator;pub use censorship::SimulatedPacket;pub use correlation::CorrelationAnalyzer;pub use correlation::CorrelationResult;pub use correlation::FlowRecord;
Modules§
- adversary
- Adversary models — define attacker capabilities and threat models.
- analysis
- Statistical analysis — entropy, chi-squared, and uniformity tests for traffic.
- censorship
- Censorship simulation — model how censors block, throttle, and detect traffic.
- correlation
- Traffic correlation analysis — detect relationships between flows.
Functions§
- verify_
network_ simulation - Verify the full network simulation system. Returns (adversary_ok, censorship_ok, correlation_ok, analysis_ok).