-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from core.redis import rds | ||
from core.parser import ScanParser | ||
|
||
class Rule: | ||
def __init__(self): | ||
self.rule = 'SVC_2125' | ||
self.rule_severity = 1 | ||
self.rule_description = 'This rule checks for Remote Desktop (RDP) services on obfuscated ports' | ||
self.rule_mitigation = '''Remote Desktop Running on non-standard ports is easy for attackers to find. | ||
While it doesn't do harm changing the standard port from (default) 3389, check whether Remote Desktop (RDP) can be disabled, or allow acces only from trusted IP addresses. | ||
''' | ||
self.rule_confirm = 'Remote Server Obfuscates Remote Desktop (RDP) ports' | ||
self.rule_details = '' | ||
self.intensity = 0 | ||
|
||
def check_rule(self, ip, port, values, conf): | ||
p = ScanParser(port, values) | ||
|
||
module = p.get_module() | ||
domain = p.get_domain() | ||
|
||
if 'ms-wbt-server' in module: | ||
if port != 3389: | ||
self.rule_details = 'Server is hiding Remote Desktop (RDP) behind remote port: {}'.format(port) | ||
rds.store_vuln({ | ||
'ip':ip, | ||
'port':port, | ||
'domain':domain, | ||
'rule_id':self.rule, | ||
'rule_sev':self.rule_severity, | ||
'rule_desc':self.rule_description, | ||
'rule_confirm':self.rule_confirm, | ||
'rule_details':self.rule_details, | ||
'rule_mitigation':self.rule_mitigation | ||
}) | ||
|
||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from core.redis import rds | ||
from core.parser import ScanParser | ||
|
||
class Rule: | ||
def __init__(self): | ||
self.rule = 'SVC_2993' | ||
self.rule_severity = 1 | ||
self.rule_description = 'This rule checks for Telnet services on obfuscated ports' | ||
self.rule_mitigation = '''Telnet Running on non-standard ports is easy for attackers to find. | ||
While it doesn't do harm changing the standard port from (default) 23, check whether Telnet can be disabled, or allow acces only from trusted IP addresses. | ||
''' | ||
self.rule_confirm = 'Remote Server Obfuscates Telnet ports' | ||
self.rule_details = '' | ||
self.intensity = 0 | ||
|
||
def check_rule(self, ip, port, values, conf): | ||
p = ScanParser(port, values) | ||
|
||
module = p.get_module() | ||
domain = p.get_domain() | ||
|
||
if 'telnet' in module or 'telnetd' in module: | ||
if port != 23: | ||
self.rule_details = 'Server is hiding Telnet behind remote port: {}'.format(port) | ||
rds.store_vuln({ | ||
'ip':ip, | ||
'port':port, | ||
'domain':domain, | ||
'rule_id':self.rule, | ||
'rule_sev':self.rule_severity, | ||
'rule_desc':self.rule_description, | ||
'rule_confirm':self.rule_confirm, | ||
'rule_details':self.rule_details, | ||
'rule_mitigation':self.rule_mitigation | ||
}) | ||
|
||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from core.redis import rds | ||
from core.parser import ScanParser | ||
|
||
class Rule: | ||
def __init__(self): | ||
self.rule = 'SVC_0391' | ||
self.rule_severity = 1 | ||
self.rule_description = 'This rule checks for VNC services on obfuscated ports' | ||
self.rule_mitigation = '''VNC Running on non-standard ports is easy for attackers to find. | ||
While it doesn't do harm changing the standard port from (default) 5900-5904, check whether VNC can be disabled, or allow acces only from trusted IP addresses. | ||
''' | ||
self.rule_confirm = 'Remote Server Obfuscates VNC ports' | ||
self.rule_details = '' | ||
self.intensity = 0 | ||
|
||
def check_rule(self, ip, port, values, conf): | ||
p = ScanParser(port, values) | ||
|
||
module = p.get_module() | ||
domain = p.get_domain() | ||
|
||
if 'vnc' in module.lower() or 'X11' in module: | ||
if port not in (5800, 5801, 5802, 5803, 5804, 5900, 5901, 5902, 5903, 5904): | ||
self.rule_details = 'Server is hiding VNC behind remote port: {}'.format(port) | ||
rds.store_vuln({ | ||
'ip':ip, | ||
'port':port, | ||
'domain':domain, | ||
'rule_id':self.rule, | ||
'rule_sev':self.rule_severity, | ||
'rule_desc':self.rule_description, | ||
'rule_confirm':self.rule_confirm, | ||
'rule_details':self.rule_details, | ||
'rule_mitigation':self.rule_mitigation | ||
}) | ||
|
||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = '2.5.3' | ||
VERSION = '2.5.4' |