Commit Graph

270 Commits (2e55c901b1b0571a340602ee2681255876f63f1a)

Author SHA1 Message Date
mko-x a21cc6dcd7
Add explicit log level parameter to application logging API 4 years ago
Micah Snyder c24654d244 Fix all-match mode bug in PE section hash scans 4 years ago
micasnyd 140c88aa4e Bump copyright for 2022 4 years ago
Micah Snyder d1141becac Fix fmap handle_gets() page arithmetic 4 years ago
Micah Snyder db013a2bfd libclamav: Fix scan recursion tracking 4 years ago
Tim Gates 251befbdf3
docs: Fix a few typos 4 years ago
Micah Snyder 971a12ddb9 Clang-format cleanup 4 years ago
Andrew 1306d100ee Support SHA256-based .cat files and related improvements/bugfixes 4 years ago
Andrew Williams 1df4f82f2b libclamav: Increase max PE section count to 65535 4 years ago
Micah Snyder 0255f29a72 Blacklist & Whitelist verbiage 5 years ago
Micah Snyder (micasnyd) b9ca6ea103 Update copyright dates for 2021 5 years ago
ihsinme 5f698f3842 Fix unsigned arithmetic checks 5 years ago
Micah Snyder c110392780 Change permission for new tmp files from RWX to RW 6 years ago
Micah Snyder 9b9999d778 Rename core scanning functions 6 years ago
Micah Snyder 005cbf5a37 Record names of extracted files 6 years ago
Jonas Zaddach (jzaddach) d5a733ef90 XLM (Excel 4.0) macro detection and extraction 6 years ago
Micah Snyder 898c08f08b Formatting touch-up 6 years ago
Micah Snyder 206dbaefe8 Update copyright dates for 2020 6 years ago
Andrew 07990918f7 Handle case where Authenticode sig directly follows PE header 6 years ago
Micah Snyder bcb4505e60 bb12370 - cli_strndup and other str* replacements must be built and exported for every OS to be used outside of libclamav on systems that don't have the original functions (e.g. strndup). This commit renames the macros to be uppercase, renames the replacement functions to be preceeded with two understores (e.g. __cli_strndup), and removes the ifdef's so that they are built regardless, because there are no ifdefs in libclamav.map. 6 years ago
Micah Snyder 4524c398f3 Argument and return types for fmap_readn(), cli_writen(), cli_readn() converted to use size_t instead of int. 6 years ago
Andrew e969151915 Change errmsg to dbgmsg when skipping imphash on PE with no imports 6 years ago
Andrew 8b72234369 Add option to not remove missing sections (PE) 6 years ago
Andrew df8dfda9cd Address code-review comments, fix several memleaks 6 years ago
Andrew e8169c7053 Multiple blacklist sigs can now match with allmatch 6 years ago
Andrew 92088f91f1 Add support for cert blacklisting and whitelisting upfront 6 years ago
Andrew 14d52d0c63 Use genhash_pe instead of checkfp_pe for section hash computation 6 years ago
Andrew 7ba310e605 PE parsing code improvements, db loading bug fixes 6 years ago
Micah Snyder 52cddcbcfd Updating and cleaning up copyright notices. 6 years ago
Micah Snyder b3e82e5e61 Replacing libclamav/cltypes.h with clamav-types.h.in, which generates a header clamav-types.h that we install alongside clamav.h. 6 years ago
Micah Snyder 72fd33c8b2 clang-format'd using new .clang-format rules. 6 years ago
Andrew 64ecd1099c Fix support for authenticode signatures from external .cat files 7 years ago
Andrew 4ef79cfcbf Fix a memory leak that occurs when a PE is whitelisted due to a valid signature 7 years ago
Andrew ecae7f1976 Fix bug in how ptrs to file data are used for computing Authenticode hash 7 years ago
Andrew 1094264f41 Ignore section information when computing Authenticode sig 7 years ago
Andrew 6c8ca96b9e Fix actual authenticode hash computation for header overlap case 7 years ago
Andrew c714559526 Add support for MD5 and SHA256 hash-based validation of the exe code 7 years ago
Andrew 50873c8a58 Replace tabs with spaces in pe.c and crtmgr.c, move debug message 7 years ago
Andrew 5130fddd7f Allow signature whitelisting for binaries that violate MS13-098 7 years ago
Andrew e1a08b60a4 Fix authenticode hash computation regression (must hash data not contained in a section) 7 years ago
Andrew 18a813afb6 Update PE parsing code related to Authenticode verification 7 years ago
Micah Snyder 20e3cfc08a bb12170: Added pointer arithmetic guards to PE MEW unpacking code. 7 years ago
Micah Snyder d39cb6581f Updating libclamunrar from legacy C implementation to modern unrar 5.6.5. API changes and supporting changes included to pass the filepath of the scanned file into libclamav through the cli_ctx structure, required by the unrar library to open archives. The filename argument may be optional for the scandesc scanning variant, but libclamav will make a best effort to identify the filename from the file descriptor if it was not provided. In addition, included the ability to prefix temp file and directory names with file basenames. 7 years ago
Micah Snyder (micasnyd) 9dcc0f7a74 Integrated new PE file unpacking capabilities for versions of Aspack up to 2.42, courtesy of Emmanuel Tacheau. 7 years ago
Micah Snyder d7979d4ff7 Restructured scan options flags from a single bitflag field to a structure containing multiple bitflag fields. This also required adding a new function to the bytecode API to get scan options a la carte, and modifying the existing function to hand back scan options in the old/deprecated uint32_t bitflag format. Re-generated bytecode iface header files. 7 years ago
Micah Snyder 6289eda8e0 Eliminating AUTHORS file, and moving acknowledgements for various source code contributions to the file comment blocks for the individual files, as appropriate. 8 years ago
Josh Soref 7cd9337a70 Spelling Adjustments (#30) 8 years ago
Jonas Zaddach 1c6bead7ba Tolerate different LZMA parameters in UPX compression 8 years ago
Mickey Sola 5ce31ac0a0 bb11904 - ensuring md5 hashset string is initialized before use 8 years ago
Micah Snyder 4cd97da451 eliminating warnings, mostly with regards to signed vs unsigned comparisons, some of which could have been functional bugs if negative values were used (for offsets, etc). cleaned up a couple of macros and cleaned up some ifdefs. 8 years ago