Git Product home page Git Product logo

dmarcrua's Introduction

DmarcRua

DmarcRua is a simple .NET serializer for DMARC aggregate reports. Given aggregate report XML, DmarcRua serializes the report into an object and provides some convenience functions for identifying and exploring DMARC failures.

Features

  • Serialize DMARC aggregate report XML into .NET types and objects.
  • Discover reported DMARC failures.
  • Summarize or itemize DMARC failures by IP address.
  • Summarize or itemize DMARC failures by From header.

Packages

Current Version: 1.1.5

Target Framework: netstandard2.0

Dependencies

  • None.

Development Dependencies

Usage

AggregateReport objects can be constructed with a stream of the report XML or the report can be serialized later.

For example:

    using (var stream = File.OpenRead("\path\to\report.xml"))
    {
        var aggregateReport = new AggregateReport(stream);
    }

Or:

    var aggregateReport = new AggregateReport();
     
    using (var stream = File.OpenRead("\path\to\report.xml"))
    {
        aggregateReport.ReadAggregateReport(stream);
    }

Features / Methods in Brief

  • AggregateReport.GetFailureRecords()
    • An enumeration of all report records that failed DMARC.
  • AggregateReport.GetFailureCount()
    • Count of all report records that failed DMARC
  • AggregateReport.SummarizeFailuresByIpAddress()
    • All report records that failed DMARC summarized by IP address.
  • AggregateReport.SummarizeFailuresByHeaderFrom()
    • All report records that failed DMARC summarized by From header.
  • AggregateReport.GetFailedRecordsByIpAddress(IPAddress ipAddress)
    • Itemized DMARC fail report records for a single IP address.
  • AggregateReport.GetFailedRecordsByFromHeader(string fromHeader)
    • Itemized DMARC fail report records for a single From header.

References

Specifications on the DMARC aggregate report format were taken from https://tools.ietf.org/html/rfc7489#appendix-C

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.