Skip to content

Detect bidir 5665 v12 #11293

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

Closed
wants to merge 4 commits into from
Closed

Conversation

catenacyber
Copy link
Contributor

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

Describe changes:

  • allows bidirectional signature matching !

SV_BRANCH=OISF/suricata-verify#1910

Draft again because of second commit
General feedback expected :-)

TODO :

  • Give me better names
  • Where should I document these new keywords bidir.toclient ?
  • more tests !!!! Throw me rules examples ! negative and positive...
  • frames test (with enip)
  • look at git grep flowbits tests/test-ruleparse-etopen-01/emerging-all.rules | grep -v ":#" | grep -v "alert http " | grep -v "alert tcp " | grep -v "alert tcp-pkt" | grep -v "alert udp " to test beyond http

#11246 rebased with some new test in SV

Ticket: 5665

This is done with `alert ip any any => any any`
The => operator means that we will need both directions
By using keywords bidir.toclient and bidir.toserver, the following
keywords are forced to the direction even if they can match
on both directions.

Ticket: 5665
Do not require a rule to use bidir.toserver after the usage of
bidir.toclient for unambiguous keywords, where the rule writer
does not want to explicit the redundant direction.
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 89.80583% with 21 lines in your changes missing coverage. Please review.

Project coverage is 82.46%. Comparing base (f0dbfe8) to head (72805d8).

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #11293    +/-   ##
========================================
  Coverage   82.45%   82.46%            
========================================
  Files         961      961            
  Lines      251710   251857   +147     
========================================
+ Hits       207552   207688   +136     
- Misses      44158    44169    +11     
Flag Coverage Δ
fuzzcorpus 60.28% <56.31%> (-0.02%) ⬇️
livemode 18.71% <9.22%> (+0.02%) ⬆️
pcap 43.76% <45.63%> (-0.03%) ⬇️
suricata-verify 61.24% <85.92%> (+0.06%) ⬆️
unittests 59.94% <52.42%> (-0.02%) ⬇️

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 21053

@catenacyber
Copy link
Contributor Author

Continued in #11323

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