-
Notifications
You must be signed in to change notification settings - Fork 1k
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 Libsodium sodium support for sha256 filehashes #1381
base: master
Are you sure you want to change the base?
Commits on Dec 19, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 523acdb - Browse repository at this point
Copy the full SHA 523acdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1468ea - Browse repository at this point
Copy the full SHA e1468eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 201bc61 - Browse repository at this point
Copy the full SHA 201bc61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fa3d1e - Browse repository at this point
Copy the full SHA 1fa3d1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26c27e1 - Browse repository at this point
Copy the full SHA 26c27e1View commit details
Commits on Jan 15, 2018
-
Configuration menu - View commit details
-
Copy full SHA for a9e725b - Browse repository at this point
Copy the full SHA a9e725bView commit details -
Try to use libsodium to allow us to check sha256 hashes.
It will switch from running OS_md5_sha1_File to OS_algorithm_File The output will be different. Enable with LIBSODIUM_ENABLED=y !! Incomplete and untested !!
Configuration menu - View commit details
-
Copy full SHA for a5452f9 - Browse repository at this point
Copy the full SHA a5452f9View commit details
Commits on Jan 17, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 882058b - Browse repository at this point
Copy the full SHA 882058bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09b44ce - Browse repository at this point
Copy the full SHA 09b44ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbcd126 - Browse repository at this point
Copy the full SHA fbcd126View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e91526 - Browse repository at this point
Copy the full SHA 7e91526View commit details -
Configuration menu - View commit details
-
Copy full SHA for a556191 - Browse repository at this point
Copy the full SHA a556191View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd9fa4d - Browse repository at this point
Copy the full SHA bd9fa4dView commit details
Commits on Feb 11, 2018
-
Configuration menu - View commit details
-
Copy full SHA for fb1ac49 - Browse repository at this point
Copy the full SHA fb1ac49View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce552d3 - Browse repository at this point
Copy the full SHA ce552d3View commit details
Commits on Feb 14, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 765b499 - Browse repository at this point
Copy the full SHA 765b499View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b339f8 - Browse repository at this point
Copy the full SHA 9b339f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a978513 - Browse repository at this point
Copy the full SHA a978513View commit details -
Configuration menu - View commit details
-
Copy full SHA for b728cf5 - Browse repository at this point
Copy the full SHA b728cf5View commit details
Commits on Feb 15, 2018
-
Configuration menu - View commit details
-
Copy full SHA for da38953 - Browse repository at this point
Copy the full SHA da38953View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dbaf31 - Browse repository at this point
Copy the full SHA 3dbaf31View commit details -
Configuration menu - View commit details
-
Copy full SHA for c75e255 - Browse repository at this point
Copy the full SHA c75e255View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98b4e64 - Browse repository at this point
Copy the full SHA 98b4e64View commit details -
The basic idea is to have hash1 and hash2. Then the hash strings
will be prepended with the hash type followed by an '='. This will cause changes in analysisd, I think. It will have to handle the different hash strings and types. I can probably either change to a generic signature for "HASH changed," and maybe add the hash type into a field in the alert (like src_ip). Or continue with the way rules are currently written and add rules for the new hash types.
Configuration menu - View commit details
-
Copy full SHA for 54cdbd4 - Browse repository at this point
Copy the full SHA 54cdbd4View commit details
Commits on Mar 6, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 1134eaa - Browse repository at this point
Copy the full SHA 1134eaaView commit details
Commits on Mar 7, 2018
-
lots of devug left in, need to free file_sums or change how it's being handled plenty of other cleanups available. sleep now. code later
Configuration menu - View commit details
-
Copy full SHA for 9b1b3eb - Browse repository at this point
Copy the full SHA 9b1b3ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7e4b1a - Browse repository at this point
Copy the full SHA e7e4b1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a166003 - Browse repository at this point
Copy the full SHA a166003View commit details
Commits on Mar 11, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 2dfc8d6 - Browse repository at this point
Copy the full SHA 2dfc8d6View commit details
Commits on Mar 13, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4910ca6 - Browse repository at this point
Copy the full SHA 4910ca6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80a960a - Browse repository at this point
Copy the full SHA 80a960aView commit details
Commits on Mar 14, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d0b0050 - Browse repository at this point
Copy the full SHA d0b0050View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69945bd - Browse repository at this point
Copy the full SHA 69945bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for de70834 - Browse repository at this point
Copy the full SHA de70834View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17470fd - Browse repository at this point
Copy the full SHA 17470fdView commit details
Commits on Mar 15, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 2d488e1 - Browse repository at this point
Copy the full SHA 2d488e1View commit details -
Oops, I prefer -ggdb to -g, so I often change it and switch back before
pushing. This one snuck through
Configuration menu - View commit details
-
Copy full SHA for 6fe831a - Browse repository at this point
Copy the full SHA 6fe831aView commit details -
Linux didn't like writing a variable to itself with snprintf, so
complicate this a bit to make it work.
ddp committedMar 15, 2018 Configuration menu - View commit details
-
Copy full SHA for 40815a3 - Browse repository at this point
Copy the full SHA 40815a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e5401c - Browse repository at this point
Copy the full SHA 8e5401cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 241817e - Browse repository at this point
Copy the full SHA 241817eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c323f46 - Browse repository at this point
Copy the full SHA c323f46View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd65186 - Browse repository at this point
Copy the full SHA fd65186View commit details
Commits on Mar 23, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d1ca9f3 - Browse repository at this point
Copy the full SHA d1ca9f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 869d653 - Browse repository at this point
Copy the full SHA 869d653View commit details
Commits on Apr 11, 2018
-
CID 166736: Ignoring number of bytes read
CID 166735: String not null terminated
Configuration menu - View commit details
-
Copy full SHA for 54b5df1 - Browse repository at this point
Copy the full SHA 54b5df1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1df3fb7 - Browse repository at this point
Copy the full SHA 1df3fb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01a28e7 - Browse repository at this point
Copy the full SHA 01a28e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53c586c - Browse repository at this point
Copy the full SHA 53c586cView commit details
Commits on Apr 17, 2018
-
Merge branch 'master' of https://github.com/ossec/ossec-hids into cov…
…erity_20180411
Configuration menu - View commit details
-
Copy full SHA for e053db8 - Browse repository at this point
Copy the full SHA e053db8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a451d8e - Browse repository at this point
Copy the full SHA a451d8eView commit details
Commits on Apr 23, 2018
-
Configuration menu - View commit details
-
Copy full SHA for efe31a5 - Browse repository at this point
Copy the full SHA efe31a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 258fe5d - Browse repository at this point
Copy the full SHA 258fe5dView commit details
Commits on Apr 30, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 9d74ff7 - Browse repository at this point
Copy the full SHA 9d74ff7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f044a3 - Browse repository at this point
Copy the full SHA 4f044a3View commit details -
Clarify calculation precedence for '&' and '?'.
From codacy. More to come if this seems to work.
1Configuration menu - View commit details
-
Copy full SHA for e16624b - Browse repository at this point
Copy the full SHA e16624bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e98f71c - Browse repository at this point
Copy the full SHA e98f71cView commit details
Commits on May 1, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 02ff1ba - Browse repository at this point
Copy the full SHA 02ff1baView commit details
Commits on May 25, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 274b56b - Browse repository at this point
Copy the full SHA 274b56bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7990e9e - Browse repository at this point
Copy the full SHA 7990e9eView commit details
Commits on May 30, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4df6e64 - Browse repository at this point
Copy the full SHA 4df6e64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a9f8a8 - Browse repository at this point
Copy the full SHA 7a9f8a8View commit details
Commits on May 31, 2018
-
Configuration menu - View commit details
-
Copy full SHA for fc54a34 - Browse repository at this point
Copy the full SHA fc54a34View commit details
Commits on Jun 5, 2018
-
Configuration menu - View commit details
-
Copy full SHA for cd7831c - Browse repository at this point
Copy the full SHA cd7831cView commit details
Commits on Jun 6, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 6dfc111 - Browse repository at this point
Copy the full SHA 6dfc111View commit details -
Configuration menu - View commit details
-
Copy full SHA for 827a62a - Browse repository at this point
Copy the full SHA 827a62aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a157c31 - Browse repository at this point
Copy the full SHA a157c31View commit details -
Configuration menu - View commit details
-
Copy full SHA for db2c5b7 - Browse repository at this point
Copy the full SHA db2c5b7View commit details
Commits on Jun 8, 2018
-
Don't mention blake2b in case libsodium changes their generic algorithm.
Make room for the libsodium generic hash algorithm. Make it easier to see which hashes will be checked.
Configuration menu - View commit details
-
Copy full SHA for e8d7873 - Browse repository at this point
Copy the full SHA e8d7873View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2923f6 - Browse repository at this point
Copy the full SHA b2923f6View commit details
Commits on Jun 9, 2018
-
Configuration menu - View commit details
-
Copy full SHA for bb3a7e7 - Browse repository at this point
Copy the full SHA bb3a7e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51f61ee - Browse repository at this point
Copy the full SHA 51f61eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1edbff1 - Browse repository at this point
Copy the full SHA 1edbff1View commit details
Commits on Jun 22, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 028ac28 - Browse repository at this point
Copy the full SHA 028ac28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 992f532 - Browse repository at this point
Copy the full SHA 992f532View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd7cf0a - Browse repository at this point
Copy the full SHA bd7cf0aView commit details -
Looks like I was previously truncating the SHA256 and GENERIC hash
outputs, oops. Make sure to traverse the entire hash to translate from unsigned char to signed char.
Configuration menu - View commit details
-
Copy full SHA for fdadbef - Browse repository at this point
Copy the full SHA fdadbefView commit details -
Generichash wasn't named in the log output.
simplify some of the ifdefs.
Configuration menu - View commit details
-
Copy full SHA for b3088db - Browse repository at this point
Copy the full SHA b3088dbView commit details -
Make sure the generic hash is written to new_hashes.
LOTS of debugging stuff that will be removed shortly.
Configuration menu - View commit details
-
Copy full SHA for 50aa923 - Browse repository at this point
Copy the full SHA 50aa923View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4347d84 - Browse repository at this point
Copy the full SHA 4347d84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a230d7 - Browse repository at this point
Copy the full SHA 3a230d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a36f047 - Browse repository at this point
Copy the full SHA a36f047View commit details
Commits on Jun 26, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 1682c31 - Browse repository at this point
Copy the full SHA 1682c31View commit details
Commits on Jun 27, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 80381a0 - Browse repository at this point
Copy the full SHA 80381a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e63681a - Browse repository at this point
Copy the full SHA e63681aView commit details
Commits on Jun 28, 2018
-
Increase the alert_msg size from 916 to 2048 in some places.
The instances that are MAC_PATH stayed the same.
Configuration menu - View commit details
-
Copy full SHA for ae89927 - Browse repository at this point
Copy the full SHA ae89927View commit details
Commits on Jul 12, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 6835e83 - Browse repository at this point
Copy the full SHA 6835e83View commit details -
Get rid of a free that was apparently not ok.
Configuration menu - View commit details
-
Copy full SHA for a5244f9 - Browse repository at this point
Copy the full SHA a5244f9View commit details -
Instead of passing syscheck_opts around (which I didn't do correctly)
pass the opts in the function.
Configuration menu - View commit details
-
Copy full SHA for 16effe5 - Browse repository at this point
Copy the full SHA 16effe5View commit details
Commits on Jul 13, 2018
-
I forgot to copy new_hashes_tmp to new_hashes like a moron.
Also remove some debugging.
Configuration menu - View commit details
-
Copy full SHA for 72d0ffb - Browse repository at this point
Copy the full SHA 72d0ffbView commit details -
Remove the poorly done syscheck_opts idea. I switched to passing
the opts to the functions that needed it instead. Much cleaner.
Configuration menu - View commit details
-
Copy full SHA for 6252474 - Browse repository at this point
Copy the full SHA 6252474View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6302c1c - Browse repository at this point
Copy the full SHA 6302c1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 792dea6 - Browse repository at this point
Copy the full SHA 792dea6View commit details
Commits on Jul 19, 2018
-
Add the hash names into the hash output so that we know what we're
looking at when investigating later. I'm not sure if I should use GENERIC or BLAKE2B for the "generic" hash. It's set to GENERIC for now. Hopefully correct some ifdef/else/endif LIBSODIUM stuff. I think alert_msg was being overwritten in a few places making my actual hashes to be written as "xxx:xxx" (no value, basically) instead of the actual computed hashes. Also a bunch of debugging stuff that will be removed later.
Configuration menu - View commit details
-
Copy full SHA for 5d5e806 - Browse repository at this point
Copy the full SHA 5d5e806View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2af210 - Browse repository at this point
Copy the full SHA b2af210View commit details
Commits on Jul 25, 2018
-
Configuration menu - View commit details
-
Copy full SHA for a38f439 - Browse repository at this point
Copy the full SHA a38f439View commit details
Commits on Jul 31, 2018
-
Configuration menu - View commit details
-
Copy full SHA for c02f109 - Browse repository at this point
Copy the full SHA c02f109View commit details
Commits on Aug 6, 2018
-
Configuration menu - View commit details
-
Copy full SHA for ab95af3 - Browse repository at this point
Copy the full SHA ab95af3View commit details
Commits on Oct 12, 2018
-
Configuration menu - View commit details
-
Copy full SHA for e6f2fd5 - Browse repository at this point
Copy the full SHA e6f2fd5View commit details
Commits on Oct 15, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 00b6de1 - Browse repository at this point
Copy the full SHA 00b6de1View commit details
Commits on Oct 16, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 9b5ddc7 - Browse repository at this point
Copy the full SHA 9b5ddc7View commit details
Commits on Oct 23, 2018
-
Configuration menu - View commit details
-
Copy full SHA for f803934 - Browse repository at this point
Copy the full SHA f803934View commit details
Commits on Oct 29, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4e2b2bf - Browse repository at this point
Copy the full SHA 4e2b2bfView commit details
Commits on Nov 5, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 5b6f673 - Browse repository at this point
Copy the full SHA 5b6f673View commit details -
Handle the different hash types better.
Also try not to truncate the hashes when reporting changes.
Configuration menu - View commit details
-
Copy full SHA for fe1dd8f - Browse repository at this point
Copy the full SHA fe1dd8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd5cc78 - Browse repository at this point
Copy the full SHA bd5cc78View commit details
Commits on Jan 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 136e7f3 - Browse repository at this point
Copy the full SHA 136e7f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5092227 - Browse repository at this point
Copy the full SHA 5092227View commit details
Commits on Feb 19, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 823a0e4 - Browse repository at this point
Copy the full SHA 823a0e4View commit details
Commits on Apr 18, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 86f23ff - Browse repository at this point
Copy the full SHA 86f23ffView commit details -
I'm not sure there is enough space for the blake2b hash, so default
to SHA256 and MD5. SHA256 should be good enough for integrity checking for now, and MD5 can be used with services (if necessary, and sha256 isn't an option).
Configuration menu - View commit details
-
Copy full SHA for 425391c - Browse repository at this point
Copy the full SHA 425391cView commit details
Commits on Apr 29, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0cc90b4 - Browse repository at this point
Copy the full SHA 0cc90b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3082ed5 - Browse repository at this point
Copy the full SHA 3082ed5View commit details
Commits on Oct 6, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 17e2a2b - Browse repository at this point
Copy the full SHA 17e2a2bView commit details