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

Zeek 3.0.6 #1764

Closed
dougburks opened this issue May 6, 2020 · 6 comments
Closed

Zeek 3.0.6 #1764

dougburks opened this issue May 6, 2020 · 6 comments
Assignees
Projects

Comments

@dougburks
Copy link
Contributor

https://github.com/zeek/zeek/releases/tag/v3.0.6

@dougburks dougburks self-assigned this May 6, 2020
@dougburks
Copy link
Contributor Author

List of packages to be tested:

  • securityonion-bro - 3.0.6-1ubuntu1securityonion1 (Zeek 3.0.6)
  • securityonion-bro-afpacket - 1.3.0-1ubuntu1securityonion23
  • securityonion-bro-scripts - 20121004-0ubuntu0securityonion106

An overview of the testing process can be found in the comments below.

Please record all testing results via comments on this issue.

Thanks in advance for your time effort!

@dougburks dougburks added this to In progress in 16.04.7.1 May 7, 2020
@dougburks
Copy link
Contributor Author

How To Start Testing

  • install the current 16.04 ISO image

  • snapshot the VM if possible

  • add the test PPA:

sudo add-apt-repository -y ppa:securityonion/test
  • update:
sudo soup

@dougburks
Copy link
Contributor Author

How To Verify Proper Zeek Operation

  • first, please note that Bro has been renamed to Zeek but the packages still adhere to the traditional bro naming convention

  • as the Zeek packages install, verify that the package installation scripts display a message about checking configuration and adding back any local customizations

  • verify that Bro packages were upgraded:

dpkg -l |grep securityonion-bro
  • verify that the new Zeek packages create symlinks as necessary so that the new zeek paths resolve to the traditional bro locations (for example: /opt/zeek is a symlink to /opt/bro, /nsm/zeek is a symlink to /nsm/bro, etc.)

  • verify that the new Zeek packages create symlinks as necessary so that well known bro files resolve to the new zeek locations (for example: /opt/bro/etc/broctl.cfg is a symlink to zeekctl.cfg, so it can be accessed via /opt/bro/etc/broctl.cfg or /opt/zeek/etc/zeekctl.cfg)

  • if new installation, run through Setup

  • verify that the package installation scripts backed up the following with a _pre-3.0.6 extension:
    /opt/bro/etc/
    /opt/bro/share/bro/

  • verify that StatusCmdShowAll has been set to 0 in /opt/zeek/etc/zeekctl.cfg:

grep StatusCmdShowAll /opt/zeek/etc/zeekctl.cfg
  • verify that "lb_custom.InterfacePrefix=af_packet::" has been added to /opt/zeek/etc/zeekctl.cfg:
grep af_packet /opt/zeek/etc/zeekctl.cfg
  • Restart Zeek:
sudo so-zeek-restart
  • check status:
sudo so-status
  • check Zeek startup logs for any warnings/errors out of the ordinary:
cat /nsm/zeek/logs/current/reporter.log
cat /nsm/zeek/logs/current/stdout.log
cat /nsm/zeek/logs/current/stderr.log
  • replay LOTS of traffic:
sudo so-test
  • verify that files are extracted to /nsm/zeek/extracted:
ls -alh /nsm/zeek/extracted
  • verify that /nsm/zeek/logs/current/conn.log contains the proper sensorname at the end of each log entry:
cat /nsm/zeek/logs/current/conn.log
  • verify that Zeek logs are in the same format as they were pre-upgrade (should be JSON by default).

  • verify that the Elastic Stack is parsing and displaying Zeek logs properly (whether JSON or TSV format)

  • verify that you can pivot to CapMe for both TCP and UDP traffic

  • check sostat output for anything out of the ordinary (specifically, check the pf_ring and Zeek sections for packet loss)

  • verify that Zeek ja3 script is loaded and logging:

grep ja3 /nsm/zeek/logs/current/*
  • verify that Zeek hassh script is loaded and logging:
grep hassh /nsm/zeek/logs/current/*
  • verify that /etc/cron.d/bro has been moved to /etc/cron.d/zeek and that it works properly

  • verify that /opt/samples/zeek is a symlink to /opt/samples/bro

  • verify that everything else works properly with no regressions

  • reboot and make sure everything still works properly

Please test in as many different combinations as possible:

  • Evaluation Mode (Bro Standalone mode) vs Production Mode (Bro cluster mode)

  • single sniffing interface vs multiple sniffing interfaces

  • file extraction enabled or disabled

  • json-logs enabled or disabled

  • traffic without vlan tags vs traffic with vlan tags

  • new installation vs upgrade

  • Zeek cluster mode - PF_RING (lb_method=pf_ring) vs AF_PACKET (lb_method=custom)

@weslambert
Copy link
Collaborator

No issues found during my testing.

@dougburks
Copy link
Contributor Author

Thanks @weslambert !

@dougburks
Copy link
Contributor Author

16.04.7.1 automation moved this from In progress to Done May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
16.04.7.1
  
Done
Development

No branches or pull requests

2 participants