<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=2180921&amp;fmt=gif">

The Hidden Value of Suricata Detection Events: NSM-Enriched IDS Alerts

If you use Suricata, then you are familiar with the way Suricata generates detection events — historically known as “alerts”. However, the Suricata alert has evolved over the years, and these events now include a lot of other information that many current Suricata users are unaware of. Nowadays, Suricata detection events can also include vast amounts of highly useful network security monitoring (NSM) data, all without the need for additional correlation or other telemetry.

Not every Suricata user knows how to find all the extra information Suricata can gather. That is one of the reasons Stamus Networks includes all the data collected by Suricata — as well as  geoIP and other useful enrichments — and makes it available under a single completely enriched “alert” event for the analyst to view.

In this article we review some of the information that is available when viewing an alert in the Stamus Security Platform (SSP). But first, it is important to note when and how Suricata events have changed in recent years.

Suricata event format: changes and improvements

There are two major conceptual shifts that changed the way events in the Suricata intrusion detection system (IDS) were formatted:

  • JSON became the default for event formatting to allow for interoperability and easy extension of exported data
  • NSM data began being included in alerts due to Suricata’s ability to understand and log application layer transactions and include this information in a detection event

Beginning in 2014, Suricata began incorporating application-layer metadata with its detection engine events. Since 2016, Suricata has incorporated the metadata of each new application protocol it supports in the detection eventt record, when available. When not available, the correlation is performed later using the flow and transaction identifiers.

So what do Suricata detection events include today?

Let’s start by examining one of the signatures used to detect Trickbot. We can see the definition of this particular signature in the top of the screenshot below:

Suricata signature used to detect Trickbot

If an analyst suspected Trickbot was present on their network, then the first thing they would want to do is check all the evidence as quickly and accurately as possible. Suricata can provide all that information in a single detection event log. 

Overview of a Suricata detection event log in the Stamus Security Platform

All the information you see on that page comes from a single event without any additional correlation needed. It is important to note, as mentioned earlier, that SSP includes some additional data like geoIP and other enrichments, but the majority of the data here is pure Suricata.

When we zoom in to see the information included in this detection event log, what we see at first is relatively simple, standard, and boring data.

looking at the signature information of a suricata detection event in the Stamus Security Platform

As we look closer at the HTTP metadata, though, we begin to see something concerning. 

looking at the HTTP nformation of a suricata detection event in the Stamus Security Platform

We see here that the URL contains “PIXELSHINE”, which is the Windows domain name on this network. This raises some concern because it shows that internal information has been sent to the internet, indicating possible data exfiltration. In this case, incident response would be our next step. 

Now let’s look at the HTTP request body. This data shows us definitely that the credentials of an administrator account have in fact been exfiltrated.

Looking at the HTTP request body nformation of a suricata detection event in the Stamus Security Platform

We get all of this information from a single Suricata detection event. There is no need to correlate with a NSM tool, nor is there a need to store terabytes of useless data when there are only a few things that are actually linked to alerts.

note: The latest version of SSP introduced conditional logging, which ensures that only the NSM events on flow with alerts are retained. This captures all subsequent application layer transactions so the user can better understand the sequence of events that lead to a detection event. This is a useful addition, but is especially helpful when analyzing SMB protocol where we see remote modifications of local services have been done, as seen below: 

analyzing SMB protocol where we see remote modifications of local services have been done,

Conclusion

Some people might still consider Suricata a “legacy” intrusion detection system (IDS), but at Stamus Networks, we don’t see it that way.  It is not only a highly capable IDS but also an impressive tool for gathering NSM data. And Suricata is, in fact, a powerful foundation on which to build a full-featured network detection and response (NDR) system. 

Many Suricata users remain unaware of how they can use and optimize Suricata beyond the basic alerts and primitive signatures. If you are interested in learning how you can unlock the full potential of Suricata, check out “The Security Analyst’s Guide to Suricata”, the world’s first practical guide to threat detection and hunting using Suricata. 

 

Eric Leblond

Éric Leblond is the co-founder and chief technology officer (CTO) at Stamus Networks. He sits on the board of directors at Open Network Security Foundation (OISF). Éric has more than 15 years of experience as co-founder and technologist of cybersecurity software companies and is an active member of the security and open-source communities. He has worked on the development of Suricata – the open-source network threat detection engine – since 2009 and is part of the Netfilter Core team, responsible for the Linux kernel's firewall layer. Eric is a respected expert and speaker on all things network security. Éric resides in Escalles, France.

Schedule a Demo of Stamus Security Platform

REQUEST A DEMO

Related posts

Uncovered: SSP Identifies Massive Breach During Evaluation

For many organizations considering Network Detection and Response (NDR), one of the most valuable...

Uncovered with Stamus Security Platform: Lateral Active Exploits

In this series of articles, we explore a set of use cases that we have encountered in real-world...

Introducing U40: Powerful New Edition of Stamus Security Platform

Today, we are proud to announce the general availability of Update 40 (U40) - the latest release of...