Skip to content
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

Dns invalid additionals 7228 v4 #11794

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7228

Describe changes:

  • dns: improved handling of corrupt additionals
  • dns: improve probing parser by making it more strict to have better ground truth on QA

SV_BRANCH=OISF/suricata-verify#2032

#11785 with newer commit for the DNS probing parser improvement

@jasonish what do you think about it ?
Should we have a separate ticket and PR to handle first the probing parser ?

Ticket: 7228

That means log the rest of queries and answers, even if the
final field additionals is corrupt.
Set an event in this case.
To accomodate cases found in QA.
The case looks like a CnC channel on port 53, but not using DNS.

First request has a very big record length, but all the header
fields indicating numbers are 0.

First reply has a very big record length as well, there is one
non-zero field for number, but the flag indicates a request...
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.57%. Comparing base (d3eb656) to head (e898e77).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11794      +/-   ##
==========================================
+ Coverage   82.53%   82.57%   +0.03%     
==========================================
  Files         919      919              
  Lines      248979   249012      +33     
==========================================
+ Hits       205506   205624     +118     
+ Misses      43473    43388      -85     
Flag Coverage Δ
fuzzcorpus 60.41% <100.00%> (+0.08%) ⬆️
livemode 18.71% <0.00%> (-0.01%) ⬇️
pcap 44.16% <83.67%> (+<0.01%) ⬆️
suricata-verify 61.88% <85.71%> (+<0.01%) ⬆️
unittests 58.99% <65.30%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.uptime 649 627 96.61%
.app_layer.error.dns_tcp.parser 30 3 10.0%

Pipeline 22741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs baseline update QA will need a new base line
Development

Successfully merging this pull request may close these issues.

3 participants