Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sfp_clearbit: Don't report domains on the target as affiliates.

smicallef3b8bdbba51b2
diff --git a/modules/sfp_clearbit.py b/modules/sfp_clearbit.py
index f5e303db..1e5c7bc2 100644
--- a/modules/sfp_clearbit.py
+++ b/modules/sfp_clearbit.py
@@ -81,7 +81,8 @@ class sfp_clearbit(SpiderFootPlugin):
"PHYSICAL_ADDRESS",
"AFFILIATE_INTERNET_NAME",
"EMAILADDR",
- "EMAILADDR_GENERIC"
+ "EMAILADDR_GENERIC",
+ "INTERNET_NAME"
]
def query(self, email: str):
@@ -229,8 +230,12 @@ class sfp_clearbit(SpiderFootPlugin):
domainAliases = company.get('domainAliases')
if domainAliases:
for d in domainAliases:
+ if self.getTarget().matches(d):
+ t = "INTERNET_NAME"
+ else:
+ t = "AFFILIATE_INTERNET_NAME"
evt = SpiderFootEvent(
- "AFFILIATE_INTERNET_NAME",
+ t,
d,
self.__name__,
event