namespace EnterpriseCybersecurityFramework

features
	SecurityPolicy {abstract}
		mandatory
			IntrusionDetectionSystems
				or
					Snort {Cost 2500, Efficiency 80, IntegrationTime 4}
					Suricata {Cost 3000, Efficiency 85, IntegrationTime 5}
					Bro {Cost 1500, Efficiency 75, IntegrationTime 6}
			Firewalls
				or
					CheckpointFirewall {Cost 4500, Throughput 10, SecurityRating 9.5} 
					CiscoFirepower {Cost 5000, Throughput 20, SecurityRating 9.8}
			AccessControl
				or
					ActiveDirectory {Cost 20000, UserCapacity 1000, SetupTime 30}
					AzureActiveDirectory {Cost 35000, UserCapacity 5000, SetupTime 20}

	SecurityManagement {abstract}
		mandatory
			SIAMTools {SecurityInformationAndEventManagement abstract}
				or
					Splunk {Cost 7500, LogHandlingCapacity 1024, ProcessingSpeed 100} 
					LogRhythm {Cost 8000, LogHandlingCapacity 2048, ProcessingSpeed 120}
			EndpointProtection {abstract}
				or
					McAfeeEndpointSecurity {Cost 50, PerDevice true, InstallationTime 1} 
					SymantecEndpointProtection {Cost 60, PerDevice true, InstallationTime 2}
			PatchManagement {abstract}
				or
					Wsus {Cost 0, PerServer false, NumberOfComputers 500}
					Lansweeper {Cost 20, PerComputer true, NumberOfComputers 100}

	DataProtection {abstract}
		mandatory
			DataEncryption {abstract}
				or
					AES128 {Cost 10, SetupTime 2, KeyLength 128}
					AES256 {Cost 15, SetupTime 3, KeyLength 256}
					DES {Cost 5, SetupTime 1, KeyLength 56} 
			DataBackupAndRecovery {abstract}
				or
					NASStorage {Cost 5000, Capacity 8192, RecoveryTimeObjective 3} 
					CloudStorage {Cost 2000, Capacity 10240, RecoveryTimeObjective 1}
			DataMasking {abstract}
				or
					DynamicDataMasking {Cost 50, SetupComplexity Intermediate, MaskedPercentage 80} 
					StaticDataMasking {Cost 30, SetupComplexity Simple, MaskedPercentage 90}

	NetworkSecurity {abstract}
		mandatory
			WirelessSecurity {abstract}
				or
					TwoFactorAuthentication {Cost 25, PerUser true, SecurityLevel High} 
					NetworkSegmentation {Cost 100, NumberOfSegments 20}
			VirtualPrivateNetworking {abstract}
				or
					SiteToSiteVPN {Cost 300, MaxConnections 50}
					IPsecVPN {Cost 400, MaxConnections 100}		
			AdvancedThreatProtection {abstract}
				or
					DLPSoftware {Cost 80, NumberOfEndpoints 300} 
					EDRSoftware {Cost 65, MalwareDetectionRate 95}

constraints
	Snort.Cost + Suricata.Cost < CheckpointFirewall.Cost
	AES128.SetupTime * AES128.KeyLength > 1000
	ActiveDirectory.UserCapacity >= AzureActiveDirectory.UserCapacity
	Wsus.NumberOfComputers - Lansweeper.NumberOfComputers != 300
	DataMasking.DynamicDataMasking.MaskedPercentage + DataMasking.StaticDataMasking.MaskedPercentage >= 180
	CheckpointFirewall.SecurityRating > CiscoFirepower.SecurityRating - 1.5
	Splunk.LogHandlingCapacity * Splunk.ProcessingSpeed > LogRhythm.LogHandlingCapacity * LogRhythm.ProcessingSpeed
	Bro.IntegrationTime <= Snort.IntegrationTime
	AccessControl.ActiveDirectory.UserCapacity >= AccessControl.AzureActiveDirectory.UserCapacity
	SIAMTools.Splunk.LogHandlingCapacity / SIAMTools.LogRhythm.ProcessingSpeed == SIAMTools.LogRhythm.LogHandlingCapacity / SIAMTools.Splunk.ProcessingSpeed
	DataMasking.DynamicDataMasking.MaskedPercentage + DataMasking.StaticDataMasking.MaskedPercentage >= 180
	NetworkSecurity.WirelessSecurity.NetworkSegmentation.SecurityLevel > NetworkSecurity.WirelessSecurity.TwoFactorAuthentication.SecurityLevel
	VirtualPrivateNetworking.IPsecVPN.MaxConnections - VirtualPrivateNetworking.SiteToSiteVPN.MaxConnections == 50
	NetworkSecurity.AdvancedThreatProtection.EDRSoftware.MalwareDetectionRate != NetworkSecurity.AdvancedThreatProtection.DLPSoftware.NumberOfEndpoints
	NASStorage.Capacity * NASStorage.RecoveryTimeObjective < CloudStorage.RecoveryTimeObjective * CloudStorage.Capacity
	CheckpointFirewall.SecurityRating >= CiscoFirepower.SecurityRating - 1.5 
	AzureActiveDirectory.UserCapacity == ActiveDirectory.UserCapacity * 3
	Wsus.NumberOfComputers * PatchManagement.Lansweeper.PerComputer <= 500
	NetworkSegmentation.SecurityLevel + TwoFactorAuthentication.SecurityLevel >= 17
	SIEMIntegration => AccessControl.ActiveDirectory.UserCapacity > 2000
	CheckpointFirewall.Throughput + CiscoFirepower.NumberOfComputers < 80 + 500
	NASStorage.RecoveryTimeObjective / CloudProvider.AmazonWebServices.Cost * LANSegmentation.SegmentedNetworks >= DataMasking.DynamicDataMasking.MaskedPercentage 
	TotalCost <= 200000
	AverageSecurityRating >= 8.5
	SumOfSetupTimes < 100
	AverageNumberOfEndpoints > 300
	MinimumRecoveryTimeObjective <= 1
	AverageKeyLength == 128
	ConcurrentConnectionsPerVPN <= 100