Coder Social home page Coder Social logo

gonotifyav's Introduction

gonotifyav

  • it is an AntiVirus scanner to detect common webhosting threats
  • it uses wonderful rules provided by R-fx Networks at https://www.rfxn.com/api/?id=all
  • it supports MD5 sum and HEX-style rules from ClamAV
  • it is a fast replacement for LMD (meldet a.k.a. maldetect)
  • it always downloads fresh rules on start-up (a feature not bug)
  • it uses inotify in Linux kernel to monitor given directories for IN_MODIFY, IN_CREATE and IN_MOVED_TO events
  • it scans all detected files smaller than 10 MB and recursively adds new children directories to watch

How to build

aptitude install mercurial
go get code.google.com/p/go.exp/inotify
go get code.google.com/p/go-charset/charset
go build

How to use

Optional flags:

  • --cpu 2 (default: 2) set the number of OS threads used for multi-threading
  • --delete 1 (default: false) delete detected threats
  • --maxsize 10 (default: 10) skip files bigger than given number of MB
  • --notify http://localhost/path (default: none) send an HTTP POST notification about each detected threat
  • --quarantine /var/quarantine (default: none) move threats to this directory

You can only choose one of delete or quarantine. Deletion takes precedence.

At least one positional argument is required, specify paths to directories to watch.

./gonotifyav /home /tmp /dev/shm

Notification body format

{"Path":"/tmp/c99.txt","Threat":"web.malware.unclassed.155","Owner":"root"}

Quarantine

  • Quarantine directory will be created if it doesn't exist.
  • Files will be moved into subdirectories with the name of Unix timestamp
  • Files moved there will not have their permissions altered so make sure that regular users don't have access to it.

gonotifyav's People

Contributors

dspeichert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.