pub struct ScadaSecurityAssessment {
pub system_name: String,
pub components: Vec<ScadaComponent>,
pub network_topology: NetworkTopology,
pub security_controls: Vec<ScadaSecurityControl>,
}Expand description
SCADA system security assessment (IEC 62443 / NERC CIP aligned).
Fields§
§system_name: StringName of the SCADA system being assessed.
components: Vec<ScadaComponent>Inventory of assessed SCADA components.
network_topology: NetworkTopologyOT network topology.
security_controls: Vec<ScadaSecurityControl>Security controls catalogue.
Implementations§
Source§impl ScadaSecurityAssessment
impl ScadaSecurityAssessment
Sourcepub fn security_score(&self) -> f64
pub fn security_score(&self) -> f64
Composite security score [0, 100] (higher = more secure).
Score contributions:
- Encryption [%]: 25 points
- Authentication [%]: 20 points
- Security controls effectiveness: 30 points
- Network topology: 15 points
- Audit currency: 10 points
Sourcepub fn unencrypted_protocols(&self) -> Vec<&ScadaComponent>
pub fn unencrypted_protocols(&self) -> Vec<&ScadaComponent>
List components that do not use encrypted communications.
Sourcepub fn iec62443_compliance_level(&self) -> u8
pub fn iec62443_compliance_level(&self) -> u8
Estimate IEC 62443 Security Level (SL 0–4).
| SL | Meaning |
|---|---|
| 0 | No specific requirements |
| 1 | Protection against unintentional violation |
| 2 | Protection against intentional simple means |
| 3 | Protection against sophisticated means |
| 4 | Protection against nation-state APT |
Sourcepub fn vulnerability_count(&self) -> usize
pub fn vulnerability_count(&self) -> usize
Count components with known security weaknesses (unencrypted or unauthenticated and using legacy protocols).
Sourcepub fn recommended_actions(&self) -> Vec<String>
pub fn recommended_actions(&self) -> Vec<String>
Generate prioritised remediation recommendations.
Trait Implementations§
Source§impl Clone for ScadaSecurityAssessment
impl Clone for ScadaSecurityAssessment
Source§fn clone(&self) -> ScadaSecurityAssessment
fn clone(&self) -> ScadaSecurityAssessment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScadaSecurityAssessment
impl RefUnwindSafe for ScadaSecurityAssessment
impl Send for ScadaSecurityAssessment
impl Sync for ScadaSecurityAssessment
impl Unpin for ScadaSecurityAssessment
impl UnsafeUnpin for ScadaSecurityAssessment
impl UnwindSafe for ScadaSecurityAssessment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.