Project

General

Profile

Actions

Bug #2898

closed

Adding solution to Bug #2251

Added by Jake Babbin over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

Adding a solution to the issue with subscription rulesets such as Emerging Threat Pro (ETPRO) signatures and Suricata 3.x versions.

[ERRCODE: SC_ERR_AHO_CORASICK(174)] - StateQueue behaving weirdly. Fatal Error. Exiting.

A customer is still running 3.2.1 on Centos 6.x hardware due in part to funding and is slowing replacing with Suricata 4.1.x and a new OS.
However last week an ETPRO update triggered the issue found in https://redmine.openinfosecfoundation.org/issues/2251
This appears to be a sub-engine failure with the detect-engine and the mpm (multi-pattern module) pattern algorithm chosen.
Looking between version 3.x and 4.x suricata code changes it appears that multiple algorithms are no longer in 4.x which may be part of the problem.

The solution in our yaml file was below. Though we are actively replacing the 3.x sensors with 4.x sensors as well for a permanent solution.

The fix is a change in a sub-engine component used for pattern analysis (detect-engine algorithm) where changing the option "sgh-mpm-context: auto" from 'full' allows the legacy 3.2.1 instances to continue running.

Edited the Suricata.yaml file with the following changes.

The '/*' is the inline code editor is changing pound symbol to numbers at the start of a line

/* ISSUE Configuration */
detect:
profile: custom
custom-values:
toclient-groups: 30
toserver-groups: 150

sgh-mpm-context: full
inspection-recursion-limit: 3000

/*Fix Configuration /
/
Disable all of above then add /
detect-engine:
- profile: custom
- custom-values:
/
# toclient-src-groups: 200
/* # toclient-dst-groups: 200
/* # toclient-sp-groups: 200
/* # toclient-dp-groups: 300
/* # toserver-src-groups: 200
/* # toserver-dst-groups: 400
/* # toserver-sp-groups: 200
/* # toserver-dp-groups: 250
toclient-groups: 30
toserver-groups: 150
- sgh-mpm-context: auto
/* ### Appears to be the cause of error /
/
#### CHANGED from 'auto' to 'full' like above */

@

Actions #1

Updated by Andreas Herz over 5 years ago

  • Assignee set to Community Ticket
  • Target version set to TBD

So this is a workaround for older suricata versions but no issue with 4.1.x?
Not sure how to categorize your report :) thus I'm asking

Actions #2

Updated by Victor Julien over 5 years ago

  • Status changed from New to Closed
  • Assignee deleted (Community Ticket)
  • Target version deleted (TBD)
  • Affected Versions 3.2.5 added

Closing this as there is no action for us.

Actions #3

Updated by Jake Babbin over 5 years ago

Hi Andreas
Correct this is an issue with the older 3.x versions and does NOT appear in any of the 4.1.x tree (latest build including 4.1.3 all have no issues).
But wanted to provide the solution/bug fix as there are organizations running older versions of Suricata.

Actions

Also available in: Atom PDF