Skip to content

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

Fixed false positives returned by ISC.

Steveba9323ad852f
diff --git a/modules/sfp_malcheck.py b/modules/sfp_malcheck.py
index f02e03c7..adcd9d9f 100644
--- a/modules/sfp_malcheck.py
+++ b/modules/sfp_malcheck.py
@@ -144,7 +144,7 @@ malchecks = {
'type': 'query',
'checks': ['ip'],
'url': 'https://isc.sans.edu/api/ip/{0}',
- 'badregex': ['.*\<attacks\>.*'],
+ 'badregex': ['.*<attacks>\d+</attacks>.*'],
'goodregex': []
},
'AlienVault IP Reputation Database': {
@@ -290,7 +290,7 @@ malchecks = {
class sfp_malcheck(SpiderFootPlugin):
- """Malicious Check:Investigate,Passive:Check if a website, IP or ASN is considered malicious by various sources. Includes TOR exit nodes and open proxies."""
+ """Malicious Check:Investigate,Passive:Blacklists:slow:Check if a website, IP or ASN is considered malicious by various sources. Includes TOR exit nodes and open proxies."""
# Default options
opts = {
@@ -424,14 +424,14 @@ class sfp_malcheck(SpiderFootPlugin):
if len(badregex) > 0:
for rx in badregex:
if re.match(rx, content, re.IGNORECASE | re.DOTALL):
- self.sf.debug("Found to be bad")
+ self.sf.debug("Found to be bad against bad regex: " + rx)
return True
# Finally, check for good indicators
if len(goodregex) > 0:
for rx in goodregex:
if re.match(rx, content, re.IGNORECASE | re.DOTALL):
- self.sf.debug("Found to be good")
+ self.sf.debug("Found to be good againt good regex: " + rx)
return False
# If nothing was matched, reply None
diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.py
index 5df89d07..ecacb7da 100644
--- a/modules/sfp_virustotal.py
+++ b/modules/sfp_virustotal.py
@@ -17,7 +17,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_virustotal(SpiderFootPlugin):
- """VirusTotal:Investigate,Passive:Obtain information from VirusTotal about identified IP addresses."""
+ """VirusTotal:Investigate,Passive:Blacklists:apikey:Obtain information from VirusTotal about identified IP addresses."""
# Default options
opts = {
@@ -152,7 +152,7 @@ class sfp_virustotal(SpiderFootPlugin):
info = self.query(addr)
if info is None:
continue
- if 'detected_urls' in info:
+ if len(info.get('detected_urls', [])) > 0:
self.sf.info("Found VirusTotal URL data for " + addr)
if eventName in ["IP_ADDRESS"] or eventName.startswith("NETBLOCK_"):
evt = "MALICIOUS_IPADDR"