Esempio n. 1
0
 def test_AC14(self):
     process1 = Process("Process")
     process1.implementsPOLP = False
     process1.usesEnvironmentVariables = False
     process1.validatesInput = False
     threat = threats["AC14"]
     self.assertTrue(threat.apply(process1))
Esempio n. 2
0
 def test_AC13(self):
     process1 = Process("Process")
     process1.hasAccessControl = False
     process1.implementsPOLP = False
     ThreatObj = Threat(
         next(item for item in threats_json if item["SID"] == "AC13"))
     self.assertTrue(ThreatObj.apply(process1))
Esempio n. 3
0
 def test_AC14(self):
     process1 = Process("Process")
     process1.implementsPOLP = False
     process1.usesEnvironmentVariables = False
     process1.validatesInput = False
     ThreatObj = Threat(
         next(item for item in threats_json if item["SID"] == "AC14"))
     self.assertTrue(ThreatObj.apply(process1))
Esempio n. 4
0
 def test_AC15(self):
     process1 = Process("Process")
     process1.implementsPOLP = False
     threat = threats["AC15"]
     self.assertTrue(threat.apply(process1))
Esempio n. 5
0
 def test_AC13(self):
     process1 = Process("Process")
     process1.hasAccessControl = False
     process1.implementsPOLP = False
     threat = threats["AC13"]
     self.assertTrue(threat.apply(process1))