Continued the Detection Quality roadmap.
This commit is contained in:
11
tests/test_detectors.py
Normal file
11
tests/test_detectors.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import unittest
|
||||
|
||||
from fgai.detectors import event_detector_categories
|
||||
from fgai.logs import parse_log_line
|
||||
|
||||
|
||||
class DetectorCategoryTests(unittest.TestCase):
|
||||
def test_classifies_windows_auth_failure_dns_and_deny(self):
|
||||
self.assertEqual(event_detector_categories(parse_log_line("eventid=4625")), ("auth_failure",))
|
||||
self.assertEqual(event_detector_categories(parse_log_line("qh=example.org")), ("dns_query",))
|
||||
self.assertEqual(event_detector_categories(parse_log_line("action=deny")), ("deny_action",))
|
||||
Reference in New Issue
Block a user