diff --git a/bbot/modules/internal/excavate.py b/bbot/modules/internal/excavate.py index b85881d8ba..f6c2857702 100644 --- a/bbot/modules/internal/excavate.py +++ b/bbot/modules/internal/excavate.py @@ -829,6 +829,8 @@ async def setup(self): yara_rules_combined = "\n".join(self.yara_rules_dict.values()) try: self.info(f"Compiling {len(self.yara_rules_dict):,} YARA rules") + for rule_name, rule_content in self.yara_rules_dict.items(): + self.debug(f" - {rule_name}") self.yara_rules = yara.compile(source=yara_rules_combined) except yara.SyntaxError as e: self.debug(yara_rules_combined) diff --git a/bbot/test/test_step_1/test_events.py b/bbot/test/test_step_1/test_events.py index 5c1f9677b4..fbee2f9156 100644 --- a/bbot/test/test_step_1/test_events.py +++ b/bbot/test/test_step_1/test_events.py @@ -22,6 +22,7 @@ async def test_events(events, helpers): assert events.ipv6_open_port.netloc == "[2001:4860:4860::8888]:443" assert events.netv4.type == "IP_RANGE" assert events.netv4.netloc is None + assert "netloc" not in events.netv4.json() assert events.netv6.type == "IP_RANGE" assert events.domain.type == "DNS_NAME" assert events.domain.netloc == "publicapis.org"