Git Product home page Git Product logo

exchangefilter's Introduction

Microsoft Exchange 2019 Transport Filtering Agent

Overview

  • Detects potential malware with libyara.NET (we use our own build with different fixes).
  • Extracts archives with SevenZipSharp.
  • Disarms potentially malicious PDFs with based on xdpdf algorithm.
  • Parses subject/body/headers with regex, aho-corasik.
  • Checks MessageId and source subnet of messages.
  • Can send user email notifications about potentially malicious messages.
  • Marks potentially malicious message with special header, which helps you archive and reject malicious messages on your Exchange server.
  • Uses metrics to decide whether a message is malicious.
  • Bruteforces archive attachments with the dictionary generated on message text (bad guys like that way to hide malicious files from antiviruses).

Using third party libraries:

Requirements

Linyaranet requires .Net version 4.6 and higher. You can check if your server support it:

Installation

  • Stop-Service msexchangetransport
  • ls "c:\Path\To\FilterBinaries" -Recurse | Unblock-File
  • Install-TransportAgent -Name "ExchangeFilter" -TransportAgentFactory "ExchangeFilterAgentFactory " -AssemblyPath "c:\Path\To\FilterBinaries\ExchangeFilter.dll"
  • Set-TransportAgent "ExchangeFilter" -Priority 10
  • Enable-TransportAgent -identity ExchangeFilter
  • Start-Service msexchangetransport

Configuration

  • Config.cs - Class contains necessary configurations, without which agents work is impossible.
  • default_config.xml - once configured, will be backup fuse, and if you change config.xml with mistake, agent will use default configuration
  • config.xml - main configuration file.

Logging

Information about messages processing is stored as JSON on filesystem via log4net.Ext.Json. Its useful to process these logs via ELK stack.

exchangefilter's People

Contributors

admiralbenbou 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.