-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve datadog-agent DDOS false positive #299
Resolve datadog-agent DDOS false positive #299
Conversation
Signed-off-by: egibs <[email protected]>
@@ -9,6 +8,8 @@ rule ddos_refs : critical { | |||
$ref = "TSource Engine Query" | |||
$ref2 = "ackflood" fullword | |||
$ref3 = "synflood" fullword | |||
// datadog-agent tracer-fentry-debug.o | |||
$ignore_ref = "defer_accept.synflood_warned.you" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tstromberg -- is this good as-is or should it be more generic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More generic proposal added in 98a600c
(#299).
Signed-off-by: egibs <[email protected]>
rules/net/ddos.yara
Outdated
@@ -9,6 +8,8 @@ rule ddos_refs : critical { | |||
$ref = "TSource Engine Query" | |||
$ref2 = "ackflood" fullword | |||
$ref3 = "synflood" fullword | |||
// datadog-agent tracer-fentry-debug.o | |||
$ignore_ref = /synflood\_\w+/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, this is too generic of an ignore, and will result in missing hits. Can you find something more specific to datadog-agent - maybe the exact phrase used for synflood_xxx?
Also, please use {0,256} instead of +, as unbounded matches have severe performance impacts in YARA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do -- I'll go back and limit any other unbounded changes in the other open PRs as well.
* Avoid datadog-agent DDOS false positive Signed-off-by: egibs <[email protected]> * Make ignore more generic Signed-off-by: egibs <[email protected]> * Revert to exact DataDog reference Signed-off-by: egibs <[email protected]> --------- Signed-off-by: egibs <[email protected]>
* Avoid datadog-agent DDOS false positive Signed-off-by: egibs <[email protected]> * Make ignore more generic Signed-off-by: egibs <[email protected]> * Revert to exact DataDog reference Signed-off-by: egibs <[email protected]> --------- Signed-off-by: egibs <[email protected]>
Closes: #289
The original
net/ddos
rule was only matching thesynflood
fullword
which results in a false positive when scanning thetracer-fentry-debug.o
file indatadog-agent
because it's a substring match ofdefer_accept.synflood_warned.you
This PR should resolve the false positive.
How I approached this: