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

Fix learning method matches for the detect events #406

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

kimhanbeom
Copy link
Contributor

The previous implementation of learning method match used the EventCategory, but now all detected events have been modified to return LearningMethod (via the new learning_method method added to Match trait), so learning method match is performed using this value.

Close: #322

@kimhanbeom
Copy link
Contributor Author

@sehkone @syncpark
Could you please review the this pr?

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 52.48869% with 105 lines in your changes missing coverage. Please review.

Project coverage is 68.17%. Comparing base (8d8c7ec) to head (407fb44).

Files with missing lines Patch % Lines
src/event/conn.rs 0.00% 12 Missing ⚠️
src/event/http.rs 20.00% 12 Missing ⚠️
src/event/dns.rs 25.00% 9 Missing ⚠️
src/event/ftp.rs 0.00% 9 Missing ⚠️
src/event/ldap.rs 0.00% 9 Missing ⚠️
src/event/rdp.rs 0.00% 6 Missing ⚠️
src/event/tls.rs 0.00% 6 Missing ⚠️
src/event/bootp.rs 0.00% 3 Missing ⚠️
src/event/dcerpc.rs 0.00% 3 Missing ⚠️
src/event/dhcp.rs 0.00% 3 Missing ⚠️
... and 11 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #406      +/-   ##
==========================================
- Coverage   68.23%   68.17%   -0.06%     
==========================================
  Files          95       95              
  Lines       20350    20565     +215     
==========================================
+ Hits        13885    14021     +136     
- Misses       6465     6544      +79     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The previous implementation of learning method match used the
`EventCategory`, but now all detected events have been modified to
return `LearningMethod` (via the new `learning_method` method added to
`Match` trait), so learning method match is performed using this value.

Close: petabi#322
@msk msk self-assigned this Feb 28, 2025
@msk msk merged commit 2870c28 into petabi:main Feb 28, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix learning method matches for the detected events
3 participants