Commit graph

72 commits

Author SHA1 Message Date
Micah Snyder (micasnyd)
9c58ba7bd7 Update to clamav-devel to synchronize with the clamav-bytecode-compiler project. 2019-10-02 16:08:24 -04:00
Jonas Zaddach
c84683f2f4 Mach-O bytecode unpackers 2019-10-02 16:08:21 -04:00
Jonas Zaddach
2b776e4b89 Linux bytecode unpackers 2019-10-02 16:08:21 -04:00
Micah Snyder
52cddcbcfd Updating and cleaning up copyright notices. 2019-10-02 16:08:18 -04:00
Micah Snyder
8d53f30804 Added 0.101.1 version information, flevel enum value. Increased the FLEVEL setting to 110 for 0.102.0 devel. Increased the libclamav revision value to account for the clamav-types.h change. 2019-10-02 16:08:17 -04:00
Micah Snyder
2e26e12cab Changing ClamAV version number from 0.101.0 to 0.102.0-devel. 2019-10-02 16:08:17 -04:00
Micah Snyder
72fd33c8b2 clang-format'd using new .clang-format rules. 2019-10-02 16:08:16 -04:00
Micah Snyder
38fe8b69a0 Added .clang-format style rules, clam-format script to automate formatting of ClamAV code, and preparing select files so that clang-format does not alter carefully formatted sections. 2019-10-02 16:08:16 -04:00
Micah Snyder
3c43fffda7 Improvements to signature writing documentation. Notably the inclusion of a comprehensive CL_TYPE file type reference, requested by in bb11408. 2018-12-02 23:07:07 -05:00
Micah Snyder (micasnyd)
2f28382694 Updated version string to 0.101-rc and incremented the FLEVEL to 101. 2018-12-02 23:07:07 -05:00
Micah Snyder
420426dd5f Incrementing the libclamav version numbers to 9.0.0 and setting the version strings to 0.101.0-beta. 2018-12-02 23:07:06 -05:00
Micah Snyder
531ba0a361 Adding FUNC_LEVEL_0100_2 to bytecode api following recent 0.100.2 release. 2018-12-02 23:07:01 -05:00
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.
Updated libclamav documentation detailing new scan options structure.
Renamed references to 'algorithmic' detection to 'heuristic' detection. Renaming references to 'properties' to 'collect metadata'.
Renamed references to 'scan all' to 'scan all match'.
Renamed a couple of 'Hueristic.*' signature names as 'Heuristics.*' signatures (plural) to match majority of other heuristics.
2018-12-02 23:06:59 -05:00
Micah Snyder
9957ff3c66 Adding bytecode functionlity level for 0.100.1. Incrementing the CL_FLEVEL to 100 for 0.101. 2018-07-30 09:14:28 -04:00
Micah Snyder
d64cd9defd Updated version-related strings, structs, FLEVEL for 0.101.0(-devel). 2018-07-30 09:14:11 -04:00
Micah Snyder (micasnyd)
88005aeb12 bb12085: Converting some constants from enums to defines, because the enums may be evaluated as signed on some systems - notably solaris, causing issues if he value is greater than MAX_INT. 2018-07-30 09:14:07 -04:00
Micah Snyder
c9893ef062 Adding missing commas to FunctionalityLevels enum definition where newer version numbers were added. 2018-04-02 07:58:51 -04:00
Micah Snyder
64e2fedac7 Updated the NEWS.md, and reformatted it to improve the markdown. updated the version string from 0.100.0-rc to 0.100.0 in preparation for the release. 2018-04-02 07:58:46 -04:00
Mickey Sola
46a35abe56 mass update of copyright headers 2015-09-17 13:41:26 -04:00
Kevin Lin
47c2d618cd added BC_PRECLASS hook support; replaces target type 13 2015-03-03 15:00:55 -05:00
Kevin Lin
d549c451d9 bytecode: updated functionality level macros 2014-11-19 12:20:12 -05:00
Kevin Lin
61e3637d08 bytecode api: added support for querying int and booleans from json properties 2014-05-06 16:15:08 -04:00
Kevin Lin
fa7ae4ccbc bytecode api: updated copyright information
bytecode api: added json properties reading implementation
2014-05-06 16:13:48 -04:00
Török Edvin
7719760b66 pdf: implement text extraction (bb #2022) 2011-12-23 17:40:22 +02:00
Török Edvin
c16b3abb8c flag and dump PDF objects with /Launch (bb #3514). 2011-10-08 12:20:42 +03:00
Török Edvin
7606789f91 Better detection for encrypted PDFs (bb #2448)
If --block-encrypted is specified then we can detect Encrypted.PDF if:
 - PDF is encrypted with R 2,3,4 or 5
 - PDF is not displayable without specifying a password

If PDF is encrypted, but is displayable without specifying a password, then it
is not detected as Encrypted.PDF.
2011-05-07 18:14:58 +03:00
Török Edvin
acc8bccb89 bb #2307. 2010-10-19 16:23:19 +03:00
Török Edvin
4116c65d1b Add bytecode API to determine whether running under JIT. 2010-10-18 12:35:39 +03:00
Török Edvin
f73212dc62 Fix bytecode virusname reporting (bb #2255).
Also adds possibility to stop a hook from executing, and set
a virus as heuristic (by using BC.Heuristic* name)
2010-09-10 22:11:32 +03:00
Török Edvin
4abbeb3a6c Sync headers with bytecode compiler. 2010-09-02 18:04:00 +03:00
Török Edvin
1dae00ebf4 bytecode: add icon match API. 2010-08-02 18:21:24 +03:00
Török Edvin
dc200c6b19 Add bytecode API for pdf. 2010-08-02 18:21:24 +03:00
Török Edvin
9f1715ccea Add new bytecode APIs to access the environment.
check_platform(...) is an API that can be used to:
 - blacklist JIT/bytecode on just a very specific platform (not recommended)
 - mask (with 0xf/0xff) some fields, and keep just the flags that uniquely
 identify the system where a bug occurs (for example linux + ppc32).
 - it returns a bool so you can do further checks if needed.

The bytecode also has access to all the information collected from the
environment, so it can make more detailed decisions (based on CPU, presence of
SELinux/PaX, etc.).
You can't introduce new detections via bytecode, but you can write new
conditions using existing ones.

The previously added builtin bytecode moved all the JIT disable logic to
bytecode for easy updating.
2010-07-29 14:06:59 +03:00
Török Edvin
d5ffa2acff Introduce BC_STARTUP bytecode (bb #2101, #2078).
This bytecode will be run in interpreter mode on startup:
it can disable the JIT, or disable all further bytecodes.
There will be a builtin copy of it that is loaded if
no BC_STARTUP bytecodes were loaded (like filetypes_int.h and daily.ftm).
Only one BC_STARTUP bytecode is accepted, so as soon as bytecode.cvd will
contain one, it won't be overridable!

This bytecode will replace all the JIT checks (CPU, selinux, pax) etc.,
and allows to disable the JIT on just specific OS/arch/compiler/etc.
combinations. There are too many combinations to have a dconf flag for each.

Also fix the bytecode dconf so that the individual JIT_* flags actually work
(previously we could disable the entire JIT, or none at all).

Also introduce preliminary support for bytecode test mode (we already have
auto, jit and interpreter mode, introducing another mode here is easiest).
The test mode doesn't actually compare the outputs yet, but it does fail if
the JIT is disabled / falls back to interpreter.
2010-07-29 13:48:18 +03:00
Török Edvin
da91503d8e Properly round ilog/iexp/... 2010-05-14 10:41:42 +03:00
Török Edvin
7ebca3d717 Fix interpreter on new bytecode API tests. 2010-05-13 22:44:41 +03:00
Török Edvin
7a7365efe9 0.96.1 new APIs (cli_map etc.) 2010-05-12 23:51:20 +03:00
Török Edvin
8f5cead087 Fix bytecode_api.h
It helps if I actually run make before committing.
2010-05-07 11:09:17 +03:00
Török Edvin
4ed8c2349b Restore the fix in clamav-0.96-19-ge4a0f2c.
It got lost when running sync_clamav in the bytecode compiler.
Fixed the script now.
2010-05-07 11:01:51 +03:00
Török Edvin
1c4683acd1 add match_offsets support. 2010-05-07 10:53:18 +03:00
Török Edvin
3735fda134 min/max functionality level support. 2010-04-26 19:37:04 +03:00
Török Edvin
e4a0f2c94f fix compiler warnings (bb #1872, bb #1934, bb #1935) 2010-04-13 16:19:47 +03:00
Török Edvin
b00a7cc8f8 jsnorm api. 2010-03-31 10:53:11 +03:00
Török Edvin
02068643c1 Print location of runtime error. 2010-03-22 14:58:58 +02:00
Török Edvin
7b33a3661d More API fixes. 2010-03-22 11:18:28 +02:00
Török Edvin
6ad39a4099 zlib/buffer apis. 2010-03-22 11:18:28 +02:00
Török Edvin
75e18b29c2 minimalistic zlib api. 2010-03-22 11:18:28 +02:00
Török Edvin
f6471bc9d6 More APIs. 2010-03-22 11:18:28 +02:00
Török Edvin
d9fbce26fc More API additions for PDF. 2010-03-22 11:18:28 +02:00
Török Edvin
b56bea54d3 New API for buffer fill. 2010-03-22 11:18:28 +02:00