Giter VIP home page Giter VIP logo

go-mdatp's Introduction

go-mdatp

A CLI as well as a library to interact with the Microsoft Defender ATP REST API.

Overview

go-mdatp provides a client library for the Microsoft Defender ATP REST API written in Go. It follows the Microsoft API Reference available here.

go-mdatp is also a CLI application with everything you need to interact with the API on the command line.

Currently, go-mdatp requires Go version 1.13 or greater.

Supported Architectures

We provide pre-built go-mdatp binaries for Windows, Linux and macOS (Darwin) architectures, in both 386/amd64 flavors.
Please see the release section here.

Table of Contents

Get Started

go-mdatp uses Go Modules introduced in Go 1.11 for dependency management.

Build

Build the CLI for a target platform (Go cross-compiling feature), for example linux, by executing:

$ mkdir $HOME/src
$ cd $HOME/src
$ git clone https://github.com/devodev/go-mdatp.git
$ cd go-mdatp
$ env GOOS=linux go build -o go_mdatp_linux ./cmd/go-mdatp
..

If you are a Windows user, substitute the $HOME environment variable above with %USERPROFILE%.

CLI

Usage

Auto-generated documentation for each command can be found here.

Interact with the Microsoft Defender ATP REST API.

Usage:
  go-mdatp [command]

Available Commands:
  alert       Alert resource type commands.
  gendoc      Generate markdown documentation for the go-mdatp CLI.
  help        Help about any command

Flags:
  -h, --help      help for go-mdatp
  -v, --version   version for go-mdatp

Use "go-mdatp [command] --help" for more information about a command.

Configuration file

Commands that need to interact with the API require credentials to be provided using a YAML configuration file.
The following locations are looked into if the --config flag is not provided:

$CWD/.go-mdatp.yaml

The following is the current schema used.

Credentials can be found in Azure Active Directory, under: Installed apps.

---
Credentials:
  ClientID: 00000000-0000-0000-0000-000000000000
  ClientSecret: 00000000000000000000000000000000
  TenantID: 00000000-0000-0000-0000-000000000000

go-mdatp's People

Contributors

devodev avatar

Stargazers

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