Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions modules/signatures/network/network_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ class NetworkHTTP(Signature):
]

def on_complete(self):
for http in getattr(self, "get_net_http_ex", lambda: [])():
if http["host"] in self.host_safelist:
for http in self.get_net_http():
if http["host"].endswith(self.exclude_domain_tails):
continue
self.mark_ioc("request", "%s %s" % (http["method"], http["uri"]))
for http in self.get_net_generic("https_ex"):
if http["host"].endswith(self.exclude_domain_tails):
continue

self.mark_ioc("request", "%s %s://%s%s" % (
http["method"], http["protocol"], http["host"], http["uri"],
))
Expand Down