soup stands for
Security Onion UPdater. To install updates, run the
soup will update itself and then ask you to run
soup again. Once
soup is fully updated, it will then check for other updates. This includes Security Onion version updates, Security Onion hotfixes, and operating system (OS) updates.
soup or rebooting a Security Onion node, it may take a few minutes for services to display an
OK status when running so-status. This may be due to the intial on-boot Salt highstate running. If services do not appear to be fully up and running within 15 minutes, try running the following command:
sudo salt-call state.highstate
If you have a production deployment, we recommend that you test the upgrade process on a test deployment if possible before deploying to production.
Security Onion Version Updates¶
When we release a new version of Security Onion, we update the Release Notes section and publish a blog post to https://blog.securityonion.net. You’ll want to review these for any relevant information about the individual updates.
soup finds a full version update, then it will update the Security Onion version in
/etc/soversion, all Salt code, and all Docker images.
soup automatically keeps the previous version of Docker images. These older unused Docker images will be automatically removed at the next version update. If you need to remove these older Docker images immediately, first verify that the upgrade completed successfully and that everything is working properly. You could then remove the older images individually or all at once using a command like:
sudo docker system prune -a
However, please note that this an aggressive option and you should exercise caution if you have any non-standard Docker images or configuration. You may want to test it on a test system first.
Security Onion Hotfixes¶
soup checks for Security Onion hotfixes. Hotfixes typically include updates to the Salt code and small configuration changes that do not warrant a full version update. This does not include Docker images since that would require a full version update.
After applying a hotfix, you may notice that the Security Onion version in
/etc/soversion stays the same. The application of the hotfix is tracked on the manager in the
There is an option during Configuration to automatically install OS updates.
soup checks for missing OS updates and ask if you want to install them.
When you update to Security Onion 2.3.140 or higher, the Elastic components will undergo a major version upgrade to version 8. Please review and follow the steps below. Failure to do so could result in loss of access to all data stored inside of Elastic and a non-functioning Security Onion installation.
- You should test the update in a test environment that closely matches your production environment. Do not upgrade your production environment without testing first!
- Elastic’s requirement for upgrading to version 8 is to be on Elastic 7.17.0 or later (https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html). This means that if you are currently using a version of Security Onion prior to 2.3.110, then you will need to update to Security Onion 2.3.130 before updating to 2.3.140 or higher.
soupshould check for applicable versions and advise on the proper method to upgrade appropriately.
- Once you are on Security Onion 2.3.110 or higher, you may want to log into Kibana and run the Upgrade Assistant to check for any unexpected issues before upgrading to 2.3.140 or higher. Upgrade Assistant may display issues for ElastAlert indices, but they will be deleted automatically when you update. You may need to investigate any non-Elastalert issues.
- If your deployment was originally installed with a version lower than 2.3.60 and you never enabled Elastic Auth, then you will need to enable Elastic Auth via so-elastic-auth before updating.
- Before upgrading, you should review any local modifications that you’ve applied in the past. In particular, some folks have experienced issues with local Filebeat modifications. For example, if you have the file
/opt/so/saltstack/local/salt/filebeat/init.sls, then you should move or rename it before beginning the upgrade. After the upgrade, you can copy the new
/opt/so/saltstack/local/salt/filebeat/init.slsand then re-apply your local modification.
- When you run
soupto update to 2.3.140 or higher, it will check for old Elasticsearch indices created with Elasticsearch 6. If found, you will need to log into Kibana and use the Upgrade Assistant to update those indices.
soupis updating to Security Onion 2.3.140 or higher, ElastAlert indices will be automatically deleted to ensure compatibility with Elastic version 8. You don’t have to worry about loss of alerts or alert data generated by Playbook as they should remain in their normal HIDS/NIDS/Playbook indices. However, if you currently leverage the ElastAlert indices for other purposes, you may want to back up the indices to manually review at a later date as needed. This process is not supported or documented, and is left up to the user to perform as needed.
- Elasticsearch 8 no longer includes GeoIP databases by default. Read more about this in the Elasticsearch section.
soup will check for local configurations in
/opt/so/saltstack/local/ that may cause issues and flag them with the message
Potentially breaking changes found in the following files. Please examine the output of
soup and review any local configurations for possible issues.
soup displays any errors, you can check
/root/soup.log for additional clues.
If you run soup via ssh and the ssh session terminates, then any processes running in that session would terminate. You should avoid leaving soup unattended especially if the machine you are ssh’ing from is configured to sleep after a period of time. You might also consider using something like screen or tmux so that if your ssh session terminates, the processes will continue running on the server.
When you run
soup on an Airgap install, it will ask for the location of the upgrade media. You can do one of the following:
- burn the latest ISO image to a DVD and insert it in the DVD drive
- flash the ISO image to a USB drive and insert that USB drive
- simply copy the ISO file itself to the airgapped manager
You can also specify the path on the command line using the
-f option. For example (change this to reflect the actual path to the ISO image):
sudo soup -y -f /home/YourUser/securityonion-2.3.XYZ-YYYYMMDD.iso
If you’ve previously added any external agents (Wazuh, Beats, etc.), be sure to upgrade them to match the version of your upgraded components.
soup will check your Elasticsearch
log_size_limit values to see if they are over the recommended values. If so, it will ask you to update the values in
/opt/so/saltstack/local/pillar/minions/. When updating these files, please update any and all instances of
log_size_limit as it may exist as
soup completes, if Kibana says
Kibana server is not ready yet even after waiting a few minutes for it to fully initialize, then take a look at the Diagnostic Logging section of the Kibana page.
If Kibana loads but the dashboards display errors that they didn’t before the upgrade, first shift-reload your browser to make sure there are no cache issues. If that doesn’t resolve the issue, then you may need to reload the dashboards on your manager:
sudo rm /opt/so/state/kibana_*.txt sudo salt-call state.apply kibana.so_savedobjects_defaults -l info queue=True
soup can be automated as follows (assuming you’ve previously accepted the Elastic license):
sudo soup -y
This will make
soup proceed unattended, automatically answering
yes to any prompt. If you have an airgap installation, you can specify the path to the ISO image using the
-f option as follows:
sudo soup -y -f /home/user/securityonion.iso
Pillars and sls files¶
soup will check Salt pillars to make sure they can be rendered. If not, it will output a message like this:
There is an issue rendering the manager's pillars. Please correct the issues in the sls files mentioned below before running SOUP again.
This usually means that somebody has modified the Salt sls files and introduced a typo.
soup is downloading container images, it may encounter errors if there are Internet connection issues or if the disk runs out of free space. Once you’ve resolved the underlying condition, you can manually refresh your container images using
Highstate already running¶
Here are some other errors that you may see when running
local: Data failed to compile: ---------- Rendering SLS 'base:common' failed: Jinja variable 'list object' has no attribute 'values'
Status: Downloaded newer image for quay.io/securityonion/so-acng:2.3.30 quay.io/securityonion/so-acng:2.3.30 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 543 100 543 0 0 1412 0 --:--:-- --:--:-- --:--:-- 1414 There is a problem downloading the so-acng:2.3.30 image. Details: gpg: Signature made Thu 18 Feb 2021 02:26:10 PM UTC using RSA key ID FE507013 gpg: BAD signature from "Security Onion Solutions, LLC <firstname.lastname@example.org>"
If you see these errors, it most likely means that a salt highstate process was already running when
soup began. You can wait a few minutes and then try
soup again. Alternatively, you can run
sudo salt-call state.highstate and wait for it to complete before running
If you have a distributed deployment with a manager node and separate sensor nodes and/or search nodes, you only need to run
soup on the manager. Once
soup has completed, other nodes should update themselves at the next Salt highstate (typically within 15 minutes).
Just because the update completed on the manager does NOT mean the upgrade is complete on other nodes in the grid. Do not manually restart anything until you know that all the search/heavy nodes in your deployment are updated. This is especially important if you are using true clustering for Elasticsearch.
Each minion is on a random 15 minute check-in period and things like network bandwidth can be a factor in how long the actual upgrade takes. If you have a heavy node on a slow link, it is going to take a while to get the containers to it. Depending on what changes happened between the versions, Elasticsearch might not be able to talk to said heavy node until the update is complete.
If it looks like you’re missing data after the upgrade, please avoid restarting services and instead make sure at least one search node has completed its upgrade. The best way to do this is to run
sudo salt-call state.highstate from a search node and make sure there are no errors. Typically if it works on one node it will work on the rest. Forward nodes are less complex and will update as they check in so you can monitor those from the Grid section of Security Onion Console (SOC).
When you run
soup on the manager, it does the following:
- Checks to see if it is running on a manager.
- Checks to see if the grid is in Airgap mode. If so, it will then ask for the location of the ISO or mount point.
- Checks to see if we’re running the latest version of
soup. If not, it will put the latest in the correct place and ask you to re-run
- Compares the installed version with what is available on github or the ISO image.
- Checks to see if Salt needs to be updated (more on this later).
- Downloads the new Docker images or, if airgap, copies them from the ISO image.
- Stops the Salt master and minion and restarts it in a restricted mode. This mode only allows the manager to connect to it so that we make sure the manager is done before any of the minions are updated.
- Updates Salt if necessary. This will cause the master and minion services to restart but still in restricted mode.
- Makes any changes to pillars that are needed such as adding new settings or renaming values. This varies from release to release.
- If the grid is in Airgap mode, then it copies the latest ET Open rules and yara rules to the manager.
- The new Salt code is put into place on the manager.
- If FleetDM is enabled, then it generates new osquery packages.
- Runs a highstate on the manager which is the actual upgrade where it will use the new Salt code and Docker containers.
- Unlocks the Salt master service and allows minions to connect again.
- Issues a command to all minions to update Salt if necessary. This is important to note as it takes time to to update the Salt minion on all minions. If the minion doesn’t respond for whatever reason, it will not be upgraded at this time. This is not an issue because the first thing that gets checked when a minion talks to the master is if Salt needs to be updated and will apply the update if it does.
- Nodes connect back to the manager and actually perform the upgrade to the new version.