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 10Gbps, SecurityRating 9.5}
					CiscoFirepower
						{Cost 5000, Throughput 20Gbps, SecurityRating 9.8}
			AccessControl
				or
					ActiveDirectory
						{Cost 20000, UserCapacity 1000, SetupTime 30}
					AzureActiveDirectory
						{Cost 35000, UserCapacity 5000, SetupTime 20}

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

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

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

constraints
	Snort.Cost + Suricata.Cost < 7000
	AES128.SetupTime * AES128.KeyLength > 1000
	EndpointProtection => AccessControl.SecurityRating >= 85
	PatchManagement.Wsus.NumberOfComputers - PatchManagement.Lansweeper.NumberOfComputers != 300
	DataBackupAndRecovery.CloudStorage.RecoveryTimeObjective < DataBackupAndRecovery.NASStorage.RecoveryTimeObjective
	CheckpointFirewall.Throughput > CiscoFirepower.Throughput - 5Gbps
	IntrusionDetectionSystems.Bro.IntegrationTime <= IntrusionDetectionSystems.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 
	RecoveryTimeDataStorage => NetworkSegmentation.NumberOfSegments > 20
	DataEncryption.AES256.SetupTime + AES128.SetupTime < 8
	Splunk.LogHandlingCapacity - LogRhythm.ProcessingSpeed > 700GBps
	AzureActiveDirectory.UserCapacity == 3 * ActiveDirectory.UserCapacity
	McAfeeEndpointSecurity.PerDevice => SymantecEndpointProtection.InstallationTime >= McAfeeEndpointSecurity.IntegrationTime 
	AccessControl.AzureActiveDirectory.SecurityLevel < AccessControl.ActiveDirectory.SetupTime * AccessControl.ActiveDirectory.SetupTime
	Wsus.NumberOfComputers * PatchManagement.Lansweeper.PerComputer <= 500
	NetworkSegmentation.SecurityLevel + TwoFactorAuthentication.SecurityLevel >= 17
	DLPSoftware.DataLossPrevention.MalwareDetectionRate > EDRSoftware.EndpointDetectionAndResponse.SecurityLevel 
	SIEMIntegration => AccessControl.ActiveDirectory.UserCapacity > 2000
	CheckpointFirewall.Throughput + CiscoFirepower.NumberOfComputers < 80Gbps + 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