4. Upgrading
4.1. General instructions
Suricata can be upgraded by simply installing the new version to the same
locations as the already installed version. When installing from source,
this means passing the same --prefix, --sysconfdir,
--localstatedir and --datadir options to configure.
$ suricata --build-info|grep -A 3 '\-\-prefix'
--prefix /usr
--sysconfdir /etc
--localstatedir /var
--datarootdir /usr/share
4.1.1. Configuration Updates
New versions of Suricata will occasionally include updated config files:
classification.config and reference.config. Since the Suricata
installation will not overwrite these if they exist, they must be manually
updated. If there are no local modifications they can simply be overwritten
by the ones Suricata supplies.
Major updates include new features, new default settings and often also remove features. This upgrade guide covers the changes that might have an impact of migrating from an older version and keeping the config. We encourage you to also check all the new features that have been added but are not covered by this guide. Those features are either not enabled by default or require dedicated new configuration.
4.2. Upgrading to 7.0.9
The AF_PACKET default block size for both TPACKET_V2 and TPACKET_V3 has been increased from 32k to 128k. This is to allow for full size defragmented packets. For TPACKET_V3 the existing
block-sizeparameter can be used to change this back to the old default of 32768 if needed. For TPACKET_V2 a new configuration parameter has been added,v2-block-sizewhich can be used to tune this value for TPACKET_V2. Due to the increased block size, memory usage has been increased, but should not be an issue in most cases.Datasets specifying a custom hashsize will now be limited to 262144 by default. Additionally, the cumulative hash sizes for all datasets in use should not exceed 67108864. These settings can be changed with the following settings.
datasets: # Limits for per rule dataset instances to avoid rules using too many # resources. # Note: in Suricata 8 the built-in default will be set to lower values. limits: # Max value for per dataset `hashsize` setting #single-hashsize: 262144 # Max combined hashsize values for all datasets. #total-hashsizes: 67108864
For detect inspection recursion limits, if no value is provided, the default is 3000 now.
4.3. Upgrading to 7.0.8
Unknown requirements in the
requireskeyword will now be treated as unsatisfied requirements, causing the rule to not be loaded. See requires. To opt out of this change and to ignore unknown requirements, effectively treating them as satisfied theignore-unknown-requirementsconfiguration option can be used.Command line example:
--set ignore-unknown-requirements=true
Or as a top-level configuration option in
suricata.yaml:default-rule-path: /var/lib/suricata/rules rule-files: - suricata.rules ignore-unknown-requirements: true
Note
This option will only exist in Suricata 7.0.8 and future 7.0 releases. It will not be provided in Suricata 8. Please fix any rules that depend on this behavior.
Application layer metadata is logged with alerts by default only for rules that use application layer keywords. For other rules, the configuration parameter
detect.guess-applayer-txcan be used to force the detect engine to guess a transaction, which is not guaranteed to be the one you expect. In this case, the engine will NOT log any transaction metadata if there is more than one live transaction, to reduce the chances of logging unrelated data. This may lead to what looks like a regression in behavior, but it is a considered choice.The configuration setting controlling stream checksum checks no longer affects checksum keyword validation. In previous Suricata versions, when
stream.checksum-validationwas set tono, the checksum keywords (e.g.,ipv4-csum,tcpv4-csum, etc) will always consider it valid; e.g.,tcpv4-csum: invalidwill never match. Now,stream.checksum-validationno longer affects the checksum rule keywords. E.g.,ipv4-csum: validwill only match if the check sum is valid, even when engine checksum validations are disabled.
4.4. Upgrading 6.0 to 7.0
4.4.1. Major changes
Upgrade of PCRE1 to PCRE2. See Changes from PCRE1 to PCRE2 for more details.
IPS users: by default various new "exception policies" are set to DROP traffic. Please see Exception Policies for details on the settings and their scope. For trouble shooting, please check My traffic gets blocked after upgrading to Suricata 7.
New protocols enabled by default: bittorrent-dht, quic, http2.
The telnet protocol is also enabled by default, but only for the
app-layer.
4.4.2. Security changes
suricata.yaml now prevents process creation by Suricata by default with security.limit-noproc. The suricata.yaml configuration file needs to be updated to enable this feature. For more info, see Configuration hardening.
Absolute filenames and filenames containing parent directory traversal are no longer allowed by default for datasets when the filename is specified as part of a rule. See Datasets Security and Datasets File Locations for more information.
Lua rules are now disabled by default (change also introduced in 6.0.13), see Lua Scripting for Detection.
Support for JA4 has been added. JA4 hashes will be computed when explicitly enabled or a rule uses ja4.hash. JA4 hashes are output under a restricted set of conditions (see below):
4.4.3. Removals
The libprelude output plugin has been removed.
EVE DNS v1 logging support has been removed. If still using EVE DNS v1 logging, see the manual section on DNS logging configuration for the current configuration options: DNS EVE Configuration
4.4.4. Logging changes
IKEv2 Eve logging changed, the event_type has become
ikewhich covers both protocol versions. The fieldserrorsandnotifyhave moved toike.ikev2.errorsandike.ikev2.notify.FTP DATA metadata for alerts are now logged in
ftp_datainstead of root.Alert
xfffield is now logged asalert.xfffor alerts instead of at the root.Protocol values and their names are built into Suricata instead of using the system's
/etc/protocolsfile. Some names and casing may have changed in the valuesprotoineve.jsonlog entries and other logs containing protocol names and values. See https://redmine.openinfosecfoundation.org/issues/4267 for more information.Logging of additional HTTP headers configured through the EVE
http.customoption will now be logged in therequest_headersand/orresponse_headersrespectively instead of merged into the existinghttpobject. In Suricata 6.0, a configuration like:http: custom: [Server]
would result in a log entry like:
"http": { "hostname": "suricata.io", "http_method": "GET", "protocol": "HTTP/1/1", "server": "nginx", ... }
This merging of custom headers in the
httpobject could result in custom headers overwriting standard fields in thehttpobject, or a response header overwriting request header.To prevent the possibility of fields being overwritten, all custom headers are now logged into the
request_headersandresponse_headersarrays to avoid any chance of collision. This also facilitates the logging of headers that may appear multiple times, with each occurrence being logged in future releases (see note below).While these arrays are not new in Suricata 7.0, they had previously been used exclusively for the
dump-all-headersoption.As of Suricata 7.0, the above configuration example will now be logged like:
"http": { "hostname": "suricata.io", "http_method": "GET", "protocol": "HTTP/1/1", "response_headers": [ { "name": "Server", "value": "nginx" } ] }
Effectively making the
customoption a subset of thedump-all-headersoption.If you've been using the
customoption, this may represent a breaking change. However, if you haven't used it, there will be no change in the output.Note
Currently, if the same HTTP header is seen multiple times, the values are concatenated into a comma-separated value.
For more information, refer to: https://redmine.openinfosecfoundation.org/issues/1275.
JA4 hashes are output under a restricted set of conditions when JA4 is dynamically or explicitly enabled:
Alerts: The signature causing the alert contains the ja4.hash keyword
Logs: With QUIC logs iff outputs.quic.ja4 is enabled (default off)
Logs: With TLS logs iff outputs.tls.ja4 is enabled (default off)
4.4.5. Deprecations
Multiple "include" fields in the configuration file will now issue a warning and in Suricata 8.0 will not be supported. See Includes for documentation on including multiple files.
For AF-Packet, the cluster_rollover setting is no longer supported. Configuration settings using
cluster_rolloverwill cause a warning message and act as though cluster_flow` was specified. Please update your configuration settings.
4.4.6. Other changes
Experimental keyword http2.header is removed. http.header, http.request_header, and http.response_header are to be used.
NSS is no longer required. File hashing and JA3 can now be used without the NSS compile time dependency.
If installing Suricata without the bundled Suricata-Update, the
default-rule-pathhas been changed from/etc/suricata/rulesto/var/lib/suricata/rulesto be consistent with Suricata when installed with Suricata-Update.FTP has been updated with a maximum command request and response line length of 4096 bytes. To change the default see FTP.
SWF decompression in http has been disabled by default. To change the default see Configure HTTP (libhtp). Users with configurations from previous releases may want to modify their config to match the new default. See https://redmine.openinfosecfoundation.org/issues/5632 for more information.
The new option livedev is enabled by default with use-for-tracking being set to true. This should be disabled if multiple live devices are used to capture traffic from the same network.
4.5. Upgrading 5.0 to 6.0
SIP now enabled by default
RDP now enabled by default
ERSPAN Type I enabled by default.
4.5.1. Major changes
New protocols enabled by default: mqtt, rfb
SSH Client fingerprinting for SSH clients
Conditional logging
Initial HTTP/2 support
DCERPC logging
Improved EVE logging performance
4.5.2. Removals
File-store v1 has been removed. If using file extraction, the file-store configuration will need to be updated to version 2. See Update File-store v1 Configuration to V2.
Individual Eve (JSON) loggers have been removed. For example,
stats-json,dns-json, etc. Use multiple Eve logger instances if this behavior is still required. See Multiple Logger Instances.Unified2 has been removed. See Unified2 Output Removed.
4.5.3. Performance
In YAML files w/o a flow-timeouts.tcp.closed setting, the default went from 0 to 10 seconds. This may lead to higher than expected TCP memory use: https://redmine.openinfosecfoundation.org/issues/6552
4.6. Upgrading 4.1 to 5.0
4.6.1. Major changes
New protocols enabled by default: snmp (new config only)
New protocols disabled by default: rdp, sip
New defaults for protocols: nfs, smb, tftp, krb5 ntp are all enabled by default (new config only)
VXLAN decoder enabled by default. To disable, set
decoder.vxlan.enabledtofalse.HTTP LZMA support enabled by default. To disable, set
lzma-enabledtofalsein each of thelibhtpconfigurations in use.classification.config updated. ET 5.0 ruleset will use this.
decoder event counters use 'decoder.event' as prefix now. This can be controlled using the
stats.decoder-events-prefixsetting.
4.6.2. Removals
dns-log, the text dns log. Use EVE.dns instead.file-log, the non-EVE JSON file log. Use EVE.files instead.drop-log, the non-EVE JSON drop log.