Skip to content

Dcerpc flags/v1 - #15949

Draft
inashivb wants to merge 2 commits into
OISF:mainfrom
inashivb:dcerpc-flags/v1
Draft

Dcerpc flags/v1#15949
inashivb wants to merge 2 commits into
OISF:mainfrom
inashivb:dcerpc-flags/v1

Conversation

@inashivb

Copy link
Copy Markdown
Member

inashivb added 2 commits July 29, 2026 13:02
To allow matches with dcerpc.flags keyword later on. DCERPC/TCP exposes
a u8 as PFC flags in its header however, DCERPC/UDP stores two sets of
flags flags1 and flags2 in its header. Hence, the field is kept u16 to
accommodate for both.
This is a u16 keyword that matches on flags field derived from the
header of a DCERPC packet per transaction per direction.

Feature 8734
Comment thread rust/src/dcerpc/detect.rs
_de: *mut DetectEngineThreadCtx, _f: *mut crate::flow::Flow, flags: u8, _state: *mut c_void,
tx: *mut c_void, _sig: *const Signature, ctx: *const SigMatchCtx,
) -> c_int {
let tx = cast_pointer!(tx, DCERPCTransaction);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs smb handling too

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.54930% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.97%. Comparing base (8455efd) to head (102251d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15949      +/-   ##
==========================================
- Coverage   83.03%   82.97%   -0.06%     
==========================================
  Files        1003     1003              
  Lines      276582   276651      +69     
==========================================
- Hits       229647   229553      -94     
- Misses      46935    47098     +163     
Flag Coverage Δ
fuzzcorpus 61.60% <29.57%> (+0.02%) ⬆️
livemode 18.44% <16.90%> (-0.03%) ⬇️
netns 22.86% <16.90%> (-0.06%) ⬇️
pcap 45.36% <28.16%> (-0.10%) ⬇️
suricata-verify 67.04% <91.54%> (-0.03%) ⬇️
unittests 58.45% <22.53%> (-0.02%) ⬇️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 32733

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.

2 participants