Skip to content
Snippets Groups Projects
Commit 3b2d611e authored by Pavel Valach's avatar Pavel Valach
Browse files

dionaea/log_wardenfiler.py: Fix category when no login is attempted

parent 3c69d477
No related branches found
No related tags found
1 merge request!5Dionaea: Fix FTP connection category without login attempt
......@@ -247,12 +247,14 @@ class LogWardenfilerHandler(ihandler):
event["Attach"].append(attach)
else:
# login without password or similar thing
event["Category"].append("Intrusion.UserCompromise")
event["Note"] = "Failed login attempt"
event["Category"].append("Recon.Scanning")
event["Note"] = "Connection"
if len(s["cmds"]):
# consider this an exploit only if there was a login attempt
if len(s["creds"]):
event["Category"].append("Attempt.Exploit")
event["Note"] += " with unauthorized command input"
event["Note"] += " with command input"
idata = "\n".join(str(c) for c in s["cmds"])
plain = all(c in string.printable for c in idata)
eidata = idata if plain else b64encode(idata.encode()).decode()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment