8000 Add missing support for latency check in suspicious transformer by flz · Pull Request #304 · dmachard/DNS-collector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add missing support for latency check in suspicious transformer #304

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

Merged
merged 6 commits into from
May 14, 2023

Conversation

flz
Copy link
Contributor
@flz flz commented May 9, 2023
  • Move the suspicious transformer down the list since we need latency information processed earlier.
  • Discard QUERY packets to avoid double accounting.
  • Increase score if latency is higher than threshold.

@flz
Copy link
Contributor Author
flz commented May 9, 2023

@dmachard Would it make sense to have QUERY/REPLY defined as constants in dnsutils? I see there's already constants for DNSTAP_OPERATION_* but those are not strictly dnstap-related if used for dm.DNS.Type?

Edit: Looks like "go lint" is telling me to do it so I'll do this for the purpose of the test but it might be used in other parts of the codebase.

@dmachard
Copy link
Owner

Thanks for this pull request, just take in account my preview comment. You can discard queries with the filtering transform, it's not sufficient in your case ?

Otherwise, the tranforms processing order is not really efficient. We need to find a way to properly set the order in future version.

@flz
Copy link
Contributor Author
flz commented May 10, 2023

Otherwise, the tranforms processing order is not really efficient. We need to find a way to properly set the order in future version.

I agree, there should probably be something better to order modules. This is a quick fix. A better solution would be a lot more complex.

@dmachard dmachard merged commit 7145af2 into dmachard:main May 14, 2023
@flz flz deleted the sus-latency branch May 15, 2023 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0