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

Detect log alert tx one 7199 v8.2 #12269

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/7449
https://redmine.openinfosecfoundation.org/issues/7199

Describe changes:

  • document more guess-applayer-tx
  • improves guess-applayer-tx for unidirectional protocol such as DNS

Provide values to any of the below to override the defaults.

SV_BRANCH=OISF/suricata-verify#2180

#12266 with suricata.yaml.in changes as proposed in #12260

So we get:
1. request arrives - buffered due to not ackd
2. response arrives, acks request - request is now parsed, response isn't
3. ack for response, response parsed. Then detect runs for request,
generates alert. We now have 2 txs. txid will be 0 from AppLayerParserGetTransactionInspectId

But txid 1 is unidirectional in the other way, so we can use txid 0
metadata for logging

Ticket: 7199
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.22%. Comparing base (0e4faba) to head (5de2e64).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12269   +/-   ##
=======================================
  Coverage   83.22%   83.22%           
=======================================
  Files         912      912           
  Lines      257311   257322   +11     
=======================================
+ Hits       214154   214169   +15     
+ Misses      43157    43153    -4     
Flag Coverage Δ
fuzzcorpus 61.07% <7.69%> (-0.01%) ⬇️
livemode 19.40% <0.00%> (-0.13%) ⬇️
pcap 44.34% <7.69%> (-0.02%) ⬇️
suricata-verify 62.83% <92.30%> (-0.01%) ⬇️
unittests 59.18% <7.69%> (-0.01%) ⬇️

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

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23921

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants