Skip to content
Snippets Groups Projects
Commit 3e8b7bc5 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Recategorized syn/ack to DoS + Backscatter

parent 7773bdde
No related branches found
No related tags found
No related merge requests found
...@@ -265,10 +265,12 @@ class IdeaGen(object): ...@@ -265,10 +265,12 @@ class IdeaGen(object):
"note": "Ping requests from remote host to never assigned IP" "note": "Ping requests from remote host to never assigned IP"
}, },
"synack": { "synack": {
"category": ["Recon.Scanning"], "category": ["Availability.DoS"],
"description": "SYN/ACK connections/scan", "description": "SYN/ACK connections/scan",
"template": "labrea-003", "template": "labrea-003",
"note": "Unsolicited SYN/ACK packet received from remote host to never assigned IP" "note": "Unsolicited SYN/ACK packet received from remote host to never assigned IP",
"source_type": ["Backscatter"],
"source_to_target": True
} }
} }
...@@ -281,6 +283,8 @@ class IdeaGen(object): ...@@ -281,6 +283,8 @@ class IdeaGen(object):
"IP6" if ":" in src else "IP4": [src], "IP6" if ":" in src else "IP4": [src],
"Proto": ["tcp"] "Proto": ["tcp"]
} }
if "source_type" in tmpl:
isource["Type"] = tmpl["source_type"]
if src_ports: if src_ports:
isource["Port"] = [int(port) for port in src_ports] isource["Port"] = [int(port) for port in src_ports]
# Fold multiple IPs with the same portset # Fold multiple IPs with the same portset
...@@ -317,10 +321,13 @@ class IdeaGen(object): ...@@ -317,10 +321,13 @@ class IdeaGen(object):
"_CESNET": { "_CESNET": {
"EventTemplate": tmpl["template"], "EventTemplate": tmpl["template"],
}, },
"Source": [isource],
"Target": itargets, "Target": itargets,
"Node": [inode] "Node": [inode]
} }
if tmpl.get("source_to_target", False):
idea["Target"].append(isource)
else:
idea["Source"] = [isource]
return idea return idea
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment