add nas null cipher analyzer

This commit is contained in:
Cooper Quintin
2025-06-24 17:19:23 -07:00
committed by Will Greenberg
parent 32106ac0f4
commit 790c0963cd
3 changed files with 68 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ use super::{
connection_redirect_downgrade::ConnectionRedirect2GDowngradeAnalyzer,
imsi_requested::ImsiRequestedAnalyzer, information_element::InformationElement,
null_cipher::NullCipherAnalyzer, priority_2g_downgrade::LteSib6And7DowngradeAnalyzer,
nas_null_cipher::NasNullCipherAnalyzer,
};
#[derive(Debug, Clone, Deserialize, Serialize)]
@@ -20,6 +21,7 @@ pub struct AnalyzerConfig {
pub connection_redirect_2g_downgrade: bool,
pub lte_sib6_and_7_downgrade: bool,
pub null_cipher: bool,
pub nas_null_cipher: bool,
}
impl Default for AnalyzerConfig {
@@ -29,6 +31,7 @@ impl Default for AnalyzerConfig {
connection_redirect_2g_downgrade: true,
lte_sib6_and_7_downgrade: true,
null_cipher: true,
nas_null_cipher: true
}
}
}
@@ -162,6 +165,10 @@ impl Harness {
harness.add_analyzer(Box::new(NullCipherAnalyzer {}));
}
if analyzer_config.nas_null_cipher {
harness.add_analyzer(Box::new(NasNullCipherAnalyzer::new()))
}
harness
}