Skip to content

engine events: fix event names in rules or enum - v1#12075

Closed
jasonish wants to merge 4 commits intoOISF:masterfrom
jasonish:event_id/v1
Closed

engine events: fix event names in rules or enum - v1#12075
jasonish wants to merge 4 commits intoOISF:masterfrom
jasonish:event_id/v1

Conversation

@jasonish
Copy link
Member

@jasonish jasonish commented Nov 1, 2024

Fixes these warnings when using engine events:

Warning: detect-app-layer-event: app-layer-event keyword's protocol "dns" doesn't have event "not_a_request" registered [DetectAppLayerEventSetup:detect-app-layer-event.c:262]
Warning: detect-app-layer-event: app-layer-event keyword's protocol "dns" doesn't have event "not_a_response" registered [DetectAppLayerEventSetup:detect-app-layer-event.c:262]
Warning: detect-app-layer-event: app-layer-event keyword's protocol "http2" doesn't have event "invalid_http1_settings" registered [DetectAppLayerEventSetup:detect-app-layer-event.c:262]
Warning: detect-app-layer-event: app-layer-event keyword's protocol "ike" doesn't have event "weak_crypto_nodh" registered [DetectAppLayerEventSetup:detect-app-layer-event.c:262]
Warning: detect-app-layer-event: app-layer-event keyword's protocol "ike" doesn't have event "weak_crypto_noauth" registered [DetectAppLayerEventSetup:detect-app-layer-event.c:262]
Warning: detect-app-layer-event: app-layer-event keyword's protocol "modbus" doesn't have event "invalid_unit_identifier" registered [DetectAppLayerEventSetup:detect-app-layer-event.c:262]

Ticket: https://redmine.openinfosecfoundation.org/issues/7361

- not_a_request to not_request
- not_a_response to not_reponse

Ticket: OISF#7361
- weak_crypto_nodh -> weak_crypto_no_dh
- weak_crypto_noauth -> weak_crypto_no_auth

Ticket: OISF#7361
The event "modbus.invalid_unit_identifier" no longer exists.

Ticket: OISF#7361
Rename InvalidHTTP1Settings to InvalidHttp1Settings so it gets the
expected name transformation of "invalid_http1_settings".

Ticket: OISF#7361
@jasonish jasonish requested review from a team and catenacyber as code owners November 1, 2024 16:10
@jasonish jasonish added this to the 8.0 milestone Nov 1, 2024
@codecov
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.40%. Comparing base (3a7eef8) to head (7ab959a).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12075      +/-   ##
==========================================
- Coverage   83.42%   83.40%   -0.03%     
==========================================
  Files         910      910              
  Lines      257642   257642              
==========================================
- Hits       214949   214874      -75     
- Misses      42693    42768      +75     
Flag Coverage Δ
fuzzcorpus 61.54% <33.33%> (-0.11%) ⬇️
livemode 19.41% <0.00%> (-0.01%) ⬇️
pcap 44.47% <0.00%> (-0.02%) ⬇️
suricata-verify 62.76% <0.00%> (+<0.01%) ⬆️
unittests 59.37% <0.00%> (+<0.01%) ⬆️

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

alert dns any any -> any any (msg:"SURICATA DNS malformed response data"; flow:to_client; app-layer-event:dns.malformed_data; classtype:protocol-command-decode; sid:2240003; rev:2;)
# Response flag set on to_server packet
alert dns any any -> any any (msg:"SURICATA DNS Not a request"; flow:to_server; app-layer-event:dns.not_a_request; classtype:protocol-command-decode; sid:2240004; rev:2;)
alert dns any any -> any any (msg:"SURICATA DNS Not a request"; flow:to_server; app-layer-event:dns.not_request; classtype:protocol-command-decode; sid:2240004; rev:2;)
Copy link
Member

Choose a reason for hiding this comment

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

any rule that is updated should have its rev bumped

@jasonish
Copy link
Member Author

jasonish commented Nov 1, 2024

Replaced by #12079.

@jasonish jasonish closed this Nov 1, 2024
@jasonish jasonish deleted the event_id/v1 branch October 1, 2025 14:36
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