Skip to content

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

Bug fixes and not using AFFILIATE_DOMAIN, which doesn't exist.

Stevebbde074638f8
diff --git a/modules/sfp_malcheck.py b/modules/sfp_malcheck.py
index adcd9d9f..68cd9b67 100644
--- a/modules/sfp_malcheck.py
+++ b/modules/sfp_malcheck.py
@@ -558,7 +558,7 @@ class sfp_malcheck(SpiderFootPlugin):
if eventName == 'CO_HOSTED_SITE' and not self.opts['aaacheckcohosts']:
return None
- if eventName == 'AFFILIATE_DOMAIN' or eventName == 'AFFILIATE_IPADDR' \
+ if eventName == 'AFFILIATE_IPADDR' \
and not self.opts['aaacheckaffiliates']:
return None
if eventName == 'NETBLOCK_OWNER' and not self.opts['aaachecknetblocks']:
diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.py
index 98a4a6fc..b51a226d 100644
--- a/modules/sfp_virustotal.py
+++ b/modules/sfp_virustotal.py
@@ -62,7 +62,7 @@ class sfp_virustotal(SpiderFootPlugin):
# What events is this module interested in for input
def watchedEvents(self):
return ["IP_ADDRESS", "AFFILIATE_IPADDR", "INTERNET_NAME",
- "AFFILIATE_DOMAIN", "CO_HOSTED_SITE", "NETBLOCK_OWNER",
+ "CO_HOSTED_SITE", "NETBLOCK_OWNER",
"NETBLOCK_MEMBER"]
# What events this module produces
diff --git a/modules/sfp_xforce.py b/modules/sfp_xforce.py
index 12cec0eb..7c6ec852 100644
--- a/modules/sfp_xforce.py
+++ b/modules/sfp_xforce.py
@@ -54,15 +54,15 @@ class sfp_xforce(SpiderFootPlugin):
# What events is this module interested in for input
def watchedEvents(self):
return ["IP_ADDRESS", "AFFILIATE_IPADDR", "INTERNET_NAME",
- "AFFILIATE_DOMAIN", "CO_HOSTED_SITE", "NETBLOCK_OWNER",
- "NETBLOCK_MEMBER"]
+ "CO_HOSTED_SITE", "NETBLOCK_OWNER", "NETBLOCK_MEMBER",
+ "AFFILIATE_INTERNET_NAME"]
# What events this module produces
def producedEvents(self):
return ["MALICIOUS_IPADDR", "MALICIOUS_INTERNET_NAME",
"MALICIOUS_COHOST", "MALICIOUS_AFFILIATE_INTERNET_NAME",
"MALICIOUS_AFFILIATE_IPADDR", "MALICIOUS_NETBLOCK",
- "MALICIOUS_SUBNET", "CO_HOSTED_SITE"]
+ "CO_HOSTED_SITE"]
def query(self, qry, querytype):
ret = None
@@ -129,6 +129,7 @@ class sfp_xforce(SpiderFootPlugin):
else:
qrylist.append(eventData)
+ # For IP Addresses, do the additional passive DNS lookup
if eventName == "IP_ADDRESS":
evtType = "CO_HOSTED_SITE"
ret = self.query(eventData, "resolve")
@@ -152,7 +153,7 @@ class sfp_xforce(SpiderFootPlugin):
if self.checkForStop():
return None
- if eventName == 'IP_ADDRESS':
+ if eventName == 'IP_ADDRESS' or eventName.startswith('NETBLOCK_'):
evtType = 'MALICIOUS_IPADDR'
if eventName == "AFFILIATE_IPADDR":
evtType = 'MALICIOUS_AFFILIATE_IPADDR'