Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1600 from mozilla/update_summary_proxyexfil
Browse files Browse the repository at this point in the history
Update summary of proxy exfil domain alert
  • Loading branch information
Phrozyn committed Apr 9, 2020
2 parents d6fd6cb + 06a2b4e commit b6338a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion alerts/proxy_exfil_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def onAggregation(self, aggreg):
domain = event["_source"]["details"]["host"]
exfil_domains.add(domain)

summary = "Suspicious Proxy event(s) detected from {0} to the following exfil domain(s): {1}".format(
summary = "Proxy drop events detected from {0} to the following domain(s) that are known for exfiltrating data: {1}".format(
aggreg["value"], ",".join(sorted(exfil_domains))
)

Expand Down
6 changes: 3 additions & 3 deletions tests/alerts/test_proxy_exfil_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ class TestProxyExfilDomains(AlertTestSuite):
"category": "squid",
"tags": ["squid", "proxy"],
"severity": "WARNING",
"summary": "Suspicious Proxy event(s) detected from 1.2.3.4 to the following exfil domain(s): pastebin.com",
"summary": "Proxy drop events detected from 1.2.3.4 to the following domain(s) that are known for exfiltrating data: pastebin.com",
}

default_alert2 = {
"category": "squid",
"tags": ["squid", "proxy"],
"severity": "WARNING",
"summary": "Suspicious Proxy event(s) detected from 1.2.3.4 to the following exfil domain(s): www.sendspace.com",
"summary": "Proxy drop events detected from 1.2.3.4 to the following domain(s) that are known for exfiltrating data: www.sendspace.com",
}

# This alert is the expected result from this task against multiple matching events
default_alert_aggregated = AlertTestSuite.copy(default_alert)
default_alert_aggregated[
"summary"
] = "Suspicious Proxy event(s) detected from 1.2.3.4 to the following exfil domain(s): pastebin.com,www.sendspace.com"
] = "Proxy drop events detected from 1.2.3.4 to the following domain(s) that are known for exfiltrating data: pastebin.com,www.sendspace.com"

test_cases = []

Expand Down

0 comments on commit b6338a5

Please sign in to comment.