GithubHelp home page GithubHelp logo

sima's Introduction

SIMA

Scan Inventory for Mail Attachments

Disclaimer

This tool is still under development, so you might missing or looking at incomplete commands. If you find any bugs, please report them.

Installation

  • Check out this repository to /opt/sima/
  • Create database, user and schema:
mysql -e "CREATE DATABASE sima;"
mysql -e "CREATE USER 'sima'@'localhost' IDENTIFIED BY 'some_secret_password';"
mysql -e "GRANT ALL PRIVILEGES ON sima.* TO 'sima'@'localhost';"
mysql -u sima -psome_secret_password -d sima < /opt/sima/database/schema.sql
  • Configure application:
vi /opt/sima/config/database.yml
vi /opt/sima/config/mail.yml
vi /opt/sima/config/avtotal.yml
vi /opt/sima/config/base.yml
  • Configure Amavis:

For Ubuntu, edit /etc/amavis/conf.d/15-av_scanners and add:

@av_scanners = (
  ### SIMA / Scan Inventory for Mail Attachments
  ['SIMA', ['/opt/sima/bin/sima'],
    'scan {}', [0], qr/Found bad hash/m, qr/Found bad hash (.+) in/m ],
)

This will ONLY start to collect information. If you change the 'scan {}' into 'scan -f {}' the filter policy will be applied. Do not enable filtering unless you have testing correct working of the system FIRST.

Stuff to do

  • Create central API to exchange hash information (replace AVTotal API)
  • Exchange hashes with mail vendors to build a large database
  • Create filtering and policy builder

sima's People

Contributors

kruisdraad avatar

Watchers

 avatar

sima's Issues

Add original filenames

amavis removes the filenames, which is not handy. There is an e-mail.txt which we could mime parse ourselves.

includes un-archiving-en archives and such.

Add e-mail UUID

now amavis adds multiple parts within the same scan. each scan should get a UUID-4 so that files from the same e-mail can be found.

Needs an search option too (as well as show, perhaps even bulk blacklist)

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.