Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
clam-engine
Advanced tools
Clam Engine provides robust native bindings to the clamav library. It allows you to scan files for viruses in-process, without requiring a running instance of clamd
, or imposing the startup time of the clamscan
command.
Clam Engine requires libclamav
to be present.
apt-get install libclamav-dev clamav-freshclam
brew install clamav
Just run npm install clam-engine
. Clam Engine supports Node.js 0.10, 0.11 and 0.12 as well as io.js. If something doesn't work for you using one of those runtimes, please file a bug.
In order for Clam Engine to work, you need to update the clamav virus signatures by running the freshclam
command. You will need to configure it firsy.
var clam = require('clam-engine');
clam.createEngine(function (err, engine) {
if (err) {
return console.log('Error', err);
}
engine.scanFile('eicar.com', function (err, virus) {
if (err) {
return console.log('Error', err);
}
if (virus) {
return console.log('Virus', virus);
}
console.log('Clean');
});
});
clam.createEngine(cb)
Creates and initialises a new engine. The callback is called with (err, engine)
.
engine.version
Property that contains the version of the underlying clamav engine.
engine.signatures
Propery that indicates the number of signatures loaded.
engine.scanFile(filename, cb)
Scans a file for a virus. The callback is called with (err, virus)
. virus
is null if the file is clean.
FAQs
Native bindings for the clamav engine
We found that clam-engine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.