-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
detect: Ensure app-layer decode events are logged #6710
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bd754be
general: Correct typos
jlucovsky 00430ef
detect/events: Move app layer events to centralized location
jlucovsky bb7cd53
detect: Increase scope of det_ctx packet pointer
jlucovsky 9c5f518
decode/event: Add area for storing decoder events
jlucovsky 61dedf9
detect/general: Include decoder events
jlucovsky 8eeacae
detect/event: Record app-layer event
jlucovsky 6331f45
detect/events: Remove detection context event
jlucovsky 3e837a3
doc/eve: Add description for new anomaly field
jlucovsky 4b917c3
output/anomaly: Record decoder detect events
jlucovsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* | ||
* \author Giuseppe Longo <[email protected]> | ||
* | ||
* \brief Decompress files transfered via HTTP corresponding to file_data | ||
* \brief Decompress files transferred via HTTP corresponding to file_data | ||
* keyword. | ||
* | ||
*/ | ||
|
@@ -60,13 +60,13 @@ int FileIsSwfFile(const uint8_t *buffer, uint32_t buffer_len) | |
* \param buffer compressed buffer | ||
* \param buffer_len compressed buffer length | ||
* \param decompressed_buffer buffer that store decompressed data | ||
* \param decompressed_buffer_len decompressesd data length | ||
* \param decompressed_buffer_len decompressed data length | ||
* \param swf_type decompression algorithm to use | ||
* \param decompress_depth how much decompressed data we want to store | ||
* \param compress_depth how much compressed data we want to decompress | ||
* | ||
* \retval 1 if decompression works | ||
* \retval 0 an error occured, and event set | ||
* \retval 0 an error occurred, and event set | ||
*/ | ||
int FileSwfDecompression(const uint8_t *buffer, uint32_t buffer_len, | ||
DetectEngineThreadCtx *det_ctx, | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder if we should set a flag in
Packet::flags
on setting an event in either of these, to avoid the overhead of these checks (that also happen in logging I think)PKT_HAS_APP_EVENTS
or something like itThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlucovsky ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes -- good idea.