Commit graph

531 commits

Author SHA1 Message Date
Micah Snyder
cd2f2975b9 Docs: Warn against running untrusted bytecode
Add notices to man pages and help strings cautioning against running
bytecode signatures from untrusted sources.

Also adds missing BytecodeUnsigned option to clamd.conf.sample files.
2020-07-09 15:38:15 -07:00
Micah Snyder
dac084fb91 bb10979: clamd multi-threaded database reload #2
Add clamd config option to force blocking clamd database reload to
conserve RAM. Users may set `ConcurrentDatabaseReload no` in their
clamd.conf config file to force a blocking reload.

The blocking mode will still perform the reload in a new thread, but
will first free the current database, wait for scans targeting that
database to complete, and then load the new database in the new thread
and wait (`pthread_join()`) on that thread. Once loaded, any pending
scans will continue. This is effectively the same behavior as how
clamd reloads worked before the multi-threaded database reload feature
was added.
2020-07-01 22:06:15 -07:00
John Schember
a6a355629d Add DLP feature to detect credit cards only
Add Data-Loss-Prevention option to detect credit cards only, excluding
debit and private label cards where possible.

You can select the credit card-only DLP mode for clamscan with the
`--structured-cc-mode` command-line option.

You can select the credit card-only DLP mode for clamd with the
`StructuredCCOnly` clamd.conf config option.

This patch also adds credit card matching for additional vendors:
- Mastercard 2016
- China Union Pay
- Discover 2009
2020-04-29 13:55:25 -07:00
Micah Snyder (micasnyd)
6e17eb5e97 Adds missing clamscan --max-scantime documentation 2020-04-01 17:21:46 -07:00
Mickey Sola
01b9a84fef autojunk'd 2020-03-30 10:00:23 -07:00
Micah Snyder (micasnyd)
f5d465a864 bb12500: [docs] freshclam ReceiveTimeout clarity 2020-03-13 09:26:13 -07:00
Tuomo Soini
2fd28e1d09 freshclam: change default of ReceiveTimeout to 0
This fixes issues in cvd download when network speed is slow.
Setting is passed to libcurl CURLOPT_TIMEOUT. Original default of 60s
was not enough if network speed is limited. Curl handles this as
total time for http(s) transfer.

https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html

Also change commented out setting of ReceiveTimeout on example configs
to somewhat sensible value (1800s).

Signed-off-by: Tuomo Soini <tis@foobar.fi>
2020-01-28 08:15:11 -08:00
Micah Snyder
206dbaefe8 Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
Mickey Sola
a0e8d2ffbb autojunk'd 2019-11-06 09:50:38 -08:00
Mickey Sola
5b7fac5aeb autojunk'd 2019-10-02 16:08:31 -04:00
Mickey Sola
56a068c29f autojunk'd 2019-10-02 16:08:31 -04:00
Micah Snyder
10c06218aa Autojunk'd 2019-10-02 16:08:31 -04:00
Mickey Sola
28459aec91 autojunk'd 2019-10-02 16:08:31 -04:00
Micah Snyder
d39035d95d Autojunk'd 2019-10-02 16:08:30 -04:00
Mickey Sola
2b4b18045c clamonacc - update conf and manpage 2019-10-02 16:08:28 -04:00
Mickey Sola
f7d82063dd autojunk'd 2019-10-02 16:08:28 -04:00
Mickey Sola
3921323b62 autojunk'd 2019-10-02 16:08:28 -04:00
Mickey Sola
4ca79bd7cb autojunk'd 2019-10-02 16:08:28 -04:00
Mickey Sola
18b723e697 autojunk'd 2019-10-02 16:08:27 -04:00
Mickey Sola
3733a8795e clamonacc - move and configure fts fix 2019-10-02 16:08:27 -04:00
Mickey Sola
1b264c0bf2 clamonacc - update autotools scripts to get clamd and onacc building; autojunk'd 2019-10-02 16:08:26 -04:00
Micah Snyder
c3cc2841e7 Autojunk'd 2019-10-02 16:08:24 -04:00
Micah Snyder
5fef7399da Autojunk'ed 2019-10-02 16:08:23 -04:00
Micah Snyder (micasnyd)
cb9b09afa9 bb12043, bb12302: Adds --foreground freshclam option to help and manpage, some other documentation tweaks. 2019-10-02 16:08:23 -04:00
Micah Snyder
06e3c1c896 Increased default freshclam receive timeout from 30 sec to 60 sec. Set default DatabaseMirror back to database.clamav.net, now that TLS/SSL is enabled on the mirrors that back the CDN. Some other updates to the man pages that were missing from previous changes. 2019-10-02 16:08:23 -04:00
Micah Snyder
cef54eaf8f Freshclam refresh. This update makes libcurl a hard requirement for ClamAV.
New features added to freshclam:
- Update signature definitions over HTTPS.
- Support for HTTP protocol v1.1 (formerly v1.0).
- New libfreshclam library with an all new API and versioning separate from libclamav (v2.0.0). This library is now build and installed alongside libclamav as a hard dependency of freshclam.
- The ability to opt-in and opt-out of standard and optional official ClamAV databases (ExtraDatabase, ExcludeDatabase)
- The option to specify the protocol and port number of official and private mirror servers.
- Support for additional types of proxy servers beyond plain HTTP (SOCKS 4, SOCKS 5).

Features removed from freshclam:
- Mirror management (mirrors.dat) file. This feature is no longer needed as official signature databases are distributed using a paid content delivery network (Cloudflare).

This commit also adds the following features for Windows users:
- The clamsubmit tool.
- The json-c library dependency, which will enable the --gen-json option in clamscan.
- Third party libraries under the win32/3rdparty directory have been removed. Developers will need to build the libraries separately from ClamAV and provide the headers and lib/dll library files the same way they do for OpenSSL. This includes libxml2, pthread-win32, bzip2, zlib, pcre2 as well as new dependencies: curl, json-c. Developers are encouraged to use the build tool Mussels to simplify this task.
2019-10-02 16:08:22 -04:00
Micah Snyder
f212a6365a Adjusted clambc page to remove copyright dates from credit wording. 2019-10-02 16:08:21 -04:00
Micah Snyder
fe4433b01f Autojunk'd 2019-10-02 16:08:20 -04:00
Mickey Sola
393edc437d automake'd 2019-10-02 16:08:18 -04:00
Micah Snyder
b8dbe267cf Corrections to dist to account for moving of UserManual and addition of fuzz directory. 2019-10-02 16:08:18 -04:00
Micah Snyder
bbe70a1b9a Moved the UserManual markdown content to the Cisco-Talos clamav-faq Github repository. 2019-10-02 16:08:18 -04:00
Micah Snyder
52cddcbcfd Updating and cleaning up copyright notices. 2019-10-02 16:08:18 -04:00
Micah Snyder (micasnyd)
9eeaf14a72 Corrections to CentOS and Debian install guides. 2019-10-02 16:08:17 -04:00
Micah Snyder
29b6da0213 bb12227: Patch to adjust the default CommandReadTimeout to reduce the chance of mail loss when using clamav-milter with the TCP socket. Contribution by Scott Kitterman. 2019-10-02 16:08:17 -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
b3e82e5e61 Replacing libclamav/cltypes.h with clamav-types.h.in, which generates a header clamav-types.h that we install alongside clamav.h. 2019-10-02 16:08:17 -04:00
Micah Snyder (micasnyd)
ce6402f7fe Added oss-fuzz integration. 2019-10-02 16:08:17 -04:00
Micah Snyder
5ba88cab51 Corrections to links in UserManual. 2018-12-02 23:07:09 -05:00
Micah Snyder
f1f31c6acf Removed rc moniker for the 0.100.0 stable release. Added docs/html back so it may be packaged in the release tarball. 2018-12-02 23:07:08 -05:00
Mickey Sola
89d6620b3a docs - updating Usage docs based on feedback 2018-12-02 23:07:08 -05:00
Mickey Sola
68ded1f6d7 docs - updating Usage on-access info 2018-12-02 23:07:08 -05:00
Mickey Sola
ab012ecae8 docs - adding links to Usage documentations along with some other formatting touchups 2018-12-02 23:07:08 -05:00
Mickey Sola
6ed3d579a7 docs - overhauling Usage documentation 2018-12-02 23:07:08 -05:00
Micah Snyder
83bc694ced Restructured the signature writing documentation, and supplemented it with dconf documentation, file type magic documentation, and references for ClamAV functionality levels. 2018-12-02 23:07:08 -05:00
Andrew
799c100266 Update sig docs to have more info about sig writing 2018-12-02 23:07:08 -05:00
Micah Snyder
53a419744c Added recommended system requirements to the user manual in the introduction. 2018-12-02 23:07:08 -05:00
Micah Snyder
8a6eec6a13 Some formatting adjustments to the development guide. Added development guide to UserManual.md table of contents. 2018-12-02 23:07:08 -05:00
Andrew
47ae24a8a6 Update development docs based on Micah's feedback 2018-12-02 23:07:08 -05:00
Andrew
678f79064a Add page with use info related to ClamAV dev 2018-12-02 23:07:08 -05: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