Skip to content

detect: add keywords for LDAPDN - v2#12545

Closed
AkakiAlice wants to merge 3 commits intoOISF:masterfrom
AkakiAlice:detect-ldap-dn-7471-v2
Closed

detect: add keywords for LDAPDN - v2#12545
AkakiAlice wants to merge 3 commits intoOISF:masterfrom
AkakiAlice:detect-ldap-dn-7471-v2

Conversation

@AkakiAlice
Copy link
Contributor

Ticket: #7471

Contribution style:

Our Contribution agreements:

Changes (if applicable):

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

Description:

  • Implement keywords ldap.request.dn and ldap.responses.dn

Changes:

  • resolve Sc prefix nits (replace Sc with SC for detect register functions)
  • implement ldap.responses.dn
  • include the eve fields to match in ldap.request.dn documentation
  • fix commit message: ldap.request.dn supports prefiltering

SV_BRANCH=OISF/suricata-verify#2278
Previous PR: #12529

ldap.request.dn matches on LDAPDN from request operations
This keyword maps the following eve fields:
ldap.request.bind_request.name
ldap.request.add_request.entry
ldap.request.search_request.base_object
ldap.request.modify_request.object
ldap.request.del_request.dn
ldap.request.mod_dn_request.entry
ldap.request.compare_request.entry
It is a sticky buffer
Supports prefiltering

Ticket: OISF#7471
ldap.responses.dn matches on LDAPDN from responses operations
This keyword maps the following eve fields:
ldap.responses[].search_result_entry.base_object
ldap.responses[].bind_response.matched_dn
ldap.responses[].search_result_done.matched_dn
ldap.responses[].modify_response.matched_dn
ldap.responses[].add_response.matched_dn
ldap.responses[].del_response.matched_dn
ldap.responses[].mod_dn_response.matched_dn
ldap.responses[].compare_response.matched_dn
ldap.responses[].extended_response.matched_dn
It is a sticky buffer
Supports prefiltering

Ticket: OISF#7471
@codecov
Copy link

codecov bot commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 85.81560% with 20 lines in your changes missing coverage. Please review.

Project coverage is 80.73%. Comparing base (d4330ef) to head (e23ec17).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12545      +/-   ##
==========================================
+ Coverage   80.68%   80.73%   +0.04%     
==========================================
  Files         925      925              
  Lines      258914   259039     +125     
==========================================
+ Hits       208914   209135     +221     
+ Misses      50000    49904      -96     
Flag Coverage Δ
fuzzcorpus 56.92% <36.87%> (+0.09%) ⬆️
livemode 19.42% <36.87%> (+0.01%) ⬆️
pcap 44.18% <36.87%> (-0.02%) ⬇️
suricata-verify 63.41% <85.81%> (+0.02%) ⬆️
unittests 58.36% <36.87%> (-0.02%) ⬇️

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

@catenacyber
Copy link
Contributor

Looks good to me globally, @jasonish a better commit title for the nit prefix one ?

@jasonish
Copy link
Member

Looks good to me globally, @jasonish a better commit title for the nit prefix one ?

I've used misc for such commits in the past:

misc: fix name prefix in detect register functions

@AkakiAlice
Copy link
Contributor Author

Replaced by: #12556

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