Use a text-editor to open /etc/nsm/pulledpork/disabledsid.conf
Add the rule using proper Snort/Suricata syntax (along with a comment for continiuity)
Peform a manual rule update
# step 2sudo vim /etc/nsm/pulledpork/disabledsid.conf
# step 3# Added by Victor on 29 JUN 2020
1:2008123
# step 4sudo salt '*' cmd.run 'rule.update'
Elasticsearch queries
# search for a specific source ip
source_ip:192.168.1.69
# search for a specific source subnet
source_ips:192.168.1.*# search for a specific ip address and log
source_ip:192.168.1.69 AND event_type:bro_dns
# search for an ip address and log type during a specific time period# ex: find DNS logs between 0900 to 1700 (on 23 JUN 2020) with '192.168.1.69' as the query source
source_ip:192.168.1.69 AND event_type:bro_dns AND @timestamp:["2020-06-23T09:00" TO "2020-06-23T17:00"]
Change the name of a sensor
Part 1 of 2
Login to the sensor
Stop the salt-minion service on the sensor
Use a text-editor to open /etc/salt/minion-id
Change the minion ID
Restart the salt-minion service on the sensor
# part 1: step 2sudo service salt-minion stop
# part 1: step 3sudo vim /etc/salt/minion-id
# part 1: step 4# example old name = gecko-sensor1# example new name = foxhound-sensor1
# part 1: step 5sudo service salt-minion start
Part 2 of 2
Login to the master
List the currently accepted salt keys
Accept the new key from the previously modified sensor
Delete the old key from the previously modified sensor