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

Commit

Permalink
lower the sample limit for noisy bruteforce alert
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbryner committed Jan 30, 2015
1 parent 40113b2 commit aa53e90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions alerts/bruteforce_ssh_pyes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
# Contributors:
# Anthony Verez averez@mozilla.com
# Jeff Bryner jbryner@mozilla.com

from lib.alerttask import AlertTask
import pyes
Expand All @@ -31,8 +32,8 @@ def main(self):
]
self.filtersManual(date_timedelta, must=must, must_not=must_not)

# Search aggregations on field 'sourceipaddress', keep 50 samples of events at most
self.searchEventsAggreg('sourceipaddress', samplesLimit=50)
# Search aggregations on field 'sourceipaddress', keep X samples of events at most
self.searchEventsAggreg('sourceipaddress', samplesLimit=10)
# alert when >= X matching events in an aggregation
self.walkAggregations(threshold=10)

Expand Down

0 comments on commit aa53e90

Please sign in to comment.