def test_AC20(self): process1 = Process("Process") process1.definesConnectionTimeout = False process1.usesMFA = False process1.encryptsSessionData = False threat = threats["AC20"] self.assertTrue(threat.apply(process1))
def test_AC18(self): process1 = Process("Process") process1.usesStrongSessionIdentifiers = False process1.encryptsCookies = False process1.definesConnectionTimeout = False threat = threats["AC18"] self.assertTrue(threat.apply(process1))
def test_AC18(self): process1 = Process("Process") process1.usesStrongSessionIdentifiers = False process1.encryptsCookies = False process1.definesConnectionTimeout = False ThreatObj = Threat( next(item for item in threats_json if item["SID"] == "AC18")) self.assertTrue(ThreatObj.apply(process1))
def test_AC20(self): process1 = Process("Process") process1.definesConnectionTimeout = False process1.usesMFA = False process1.encryptsSessionData = False ThreatObj = Threat( next(item for item in threats_json if item["SID"] == "AC20")) self.assertTrue(ThreatObj.apply(process1))