Availability security level
Integrity security level
Confidentiality security level
The overall security level (average of the three components, rounded)
// All equal - returns same level
calculateOverallSecurityLevel('High', 'High', 'High') // 'High'
// Mixed levels - returns average
calculateOverallSecurityLevel('Low', 'Moderate', 'High') // 'Moderate'
calculateOverallSecurityLevel('None', 'Low', 'Low') // 'Low'
// Use for system-wide security assessment
const overallLevel = calculateOverallSecurityLevel(
availabilityLevel,
integrityLevel,
confidentialityLevel
);
console.log(`System security level: ${overallLevel}`);
Calculates the overall security level based on individual CIA components
Computes a composite security level by averaging the numeric values of availability, integrity, and confidentiality levels, then rounding to the nearest security level. Provides a single metric for overall security posture.