Skip to content

Security Onion Console Customization

You can customize Security Onion Console by going to Administration --> Configuration --> SOC.

Image

Below are some ways in which you can customize SOC. Once all customizations are complete, you can make the changes take effect by clicking the Options bar at the top and then clicking the SYNCHRONIZE GRID button.

Image

Login Page

You can customize the SOC login page with a login banner by going to Administration --> Configuration --> SOC --> files --> SOC --> Login Banner. The login banner uses the common Markdown (.md) format and you can learn more about that at https://markdownguide.org.

Overview Page

After logging into SOC, you'll start on the main SOC Overview page which can be customized as well. You can customize this by going to Administration --> Configuration --> SOC --> files --> SOC --> Overview Page. This uses Markdown format as mentioned above. You can add images but they must be hosted from another host that is accessible by the user's browser.

You can also customize the links on the left side. To do so, go to Administration --> Configuration --> SOC --> server --> client --> tools.

Reverse DNS

When you are viewing IP addresses in Alerts, Dashboards, or Hunt, you might want to enable automatic reverse DNS lookups to provide more information. You can do so by going to Administration --> Configuration --> SOC --> config --> server --> enableReverseLookup.

Local Lookups

If you don't want to enable reverse DNS lookups for all IP addresses but do have a subset of IP addresses that you would like to resolve to hostnames in SOC, then you can create a CSV file at /nsm/custom-mappings/ip-descriptions.csv on your Manager and populate the file with IP addresses and descriptions as follows:

IP,Description

Elasticsearch will then ingest the CSV and use the contents to populate a new index called so-ip-mappings.

When you are viewing IP addresses in Alerts, Dashboards, or Hunt, Security Onion Console will check the local mappings first. If it doesn't find a match, then it will attempt a reverse DNS lookup (if enabled).

If you later need to make changes to your local IP/Descriptions mappings, make the changes in /nsm/custom-mappings/ip-descriptions.csv and Elasticsearch will automatically update the so-ip-mappings index.

Cases

Cases comes with presets for things like category, severity, TLP, PAP, tags, and status. You can modify these presets by going to Administration --> Configuration --> SOC --> server --> client --> case --> presets.

Session Timeout

The default timeout for user login sessions is 24 hours. This is a fixed timespan and will expire regardless of whether the user is active or idle in SOC. You can configure this by going to Administration --> Configuration --> kratos --> config --> session --> lifespan.

Custom Queries

Superusers can add a query to the query list for all users directly from Alerts, Cases, Dashboards, Detections or Hunt. Run the query, then click the "Add to query list" button (the plus icon) at the right of the query bar. The button appears only after the query has been run, and only when it isn't already in the list. It opens the matching queries setting on the Configuration page, with the query you ran filled into the Query field of a new entry, and a notice that the value was filled in from a link. Type a Name, click Save, and enter a change note.

  • Only the query text is saved, not filter toggles or the time range.
  • On a Manager of Managers, the entry is always added to the manager's own list. To change a subgrid's list, use that subgrid's Configuration page.
  • The button is hidden only when the query exactly matches an entry in the list (ignoring leading and trailing spaces). It can't catch every duplicate, such as an entry added by another admin that hasn't been applied yet, or one hidden by your license. Remove a duplicate entry on the Configuration page.
  • If the query contains template delimiters such as {{ or {%, it isn't filled in and can't be saved to the list. If it contains hidden characters, such as a zero-width joiner in some scripts or emoji, it isn't filled in, and a warning says why. Type the query into the entry without them.
  • The new entry goes at the end of the list and appears after the change is applied and SOC restarts.
  • If the query came from an entry that used {myId}, put {myId} back.

To add a query by hand instead, for example when the link was refused, you can go to Administration --> Configuration --> SOC --> config --> server --> client and then select the specific app you'd like to modify.

Warning

When you save your custom queries, SOC saves the entire list of queries (including our default queries included in the product). So if you update to a new version which includes new or updated default queries, you won't see the new or updated default queries since your custom query list is overriding the default. When the list is still at its default, the notice on the Configuration page repeats this warning.

To see all available fields for your queries, go down to the Events table and then click the arrow to expand a row. It will show all of the individual fields from that particular event.

For example, suppose you want to add GeoIP information like source.geo.region_iso_code or destination.geo.region_iso_code to Alerts. You would go to Administration --> Configuration --> SOC --> config --> server --> client --> alerts --> queries and insert the following line wherever you want it show up in the query list:

{ "name": "Group By Source IP/Port/Geo, Destination IP/Port/Geo, Name", "query": "* | groupby source.ip source.port source.geo.region_iso_code destination.ip destination.port destination.geo.region_iso_code rule.name" },

Please note that some events may not have GeoIP information and this query would only show those alerts that do have GeoIP information.

Action Menu

Alerts, Dashboards, and Hunt have an action menu with several default actions. If you'd like to add your own custom HTTP GET or POST actions, you can go to Administration --> Configuration --> SOC --> actions and click the plus sign at the bottom of the list. Then fill out the fields and save the new action.

Escalation

Alerts, Dashboards, and Hunt display logs with a blue triangle that allows you to escalate the event. This defaults to our Cases interface. If for some reason you want to escalate to a different case management system, you can change this setting. You can go to Administration --> Configuration --> SOC --> server --> modules --> cases and specify one of the following values:

  • SOC - Enables the built-in Case Management, with our Escalation menu (default).

  • elasticcases - Enables escalation to the Elastic Cases tool. Escalations will always open a new case; there will not be an advanced escalation menu popup. This module will use the same user/pass that SOC uses to talk to Elastic. Note, however, that Elastic cases is actually a Kibana feature, therefore, when this setting is used, SOC will be communicating with the local Kibana service (via its API) for case escalations.