-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add community_id_v1 hash function to SQLite #6211
Conversation
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.
LGTM!
|
||
// seed . saddr . daddr . proto . 0 . sport . dport | ||
std::stringstream bytes; | ||
bytes.write(seed.data(), 2); |
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.
linux build:
stderr: osquery/sql/sqlite_hashing.cpp:179:15: error: cannot initialize a parameter of type 'const std::__1::basic_ostream<char, std::__1::char_traits >::char_type *' (aka 'const char *') with an rvalue of type 'unsigned char *'
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.
This builds with Buck and CMake in our CI. Maybe you can open a new issue with more details about your environment and/or hop in osquery Slack to debug?
Implements the Community ID hash that will allow correlating network connections detected by osquery with other tools that support the standard (Zeek, Suricata, etc.).
Thanks to @Security-Onion-Solutions for supporting development of this feature.