Actions
Bug #7390
closed
MC
JL
byte_extract: issue with saved 'name' in distance keyword
Bug #7390:
byte_extract: issue with saved 'name' in distance keyword
Affected Versions:
Effort:
Difficulty:
Label:
Description
In theory, the two detection rules mentioned above are identical. However, during detection testing, Rule 1 does not trigger any detections, while only Rule 2 is being detected.
Upon reviewing and analyzing the debug logs, it appears that the following code in 'detect-engine-content-inspection.c' may be the cause:
// Line : 254-256
if (cd->flags & (DETECT_CONTENT_DISTANCE_VAR|DETECT_CONTENT_OFFSET_VAR|DETECT_CONTENT_DEPTH_VAR)) {
depth += offset;
}
Since the analysis was conducted briefly, it may not be the definitive cause, so please consider this as a reference only.
If you need any further assistance, feel free to ask!
P.S. The tests were conducted on the latest version, 7.0.7, and I have also attached the PCAP file used for the detection test.
Files
Actions