{"id":36741421,"url":"https://github.com/devodev/go-mdatp","last_synced_at":"2026-01-12T12:29:06.915Z","repository":{"id":64302362,"uuid":"261772708","full_name":"devodev/go-mdatp","owner":"devodev","description":"A CLI as well as a library to interact with the Microsoft Defender ATP API","archived":false,"fork":false,"pushed_at":"2020-05-14T13:07:11.000Z","size":97,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T06:24:19.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-06T13:49:47.000Z","updated_at":"2024-06-20T06:24:19.780Z","dependencies_parsed_at":"2023-01-15T09:45:23.735Z","dependency_job_id":null,"html_url":"https://github.com/devodev/go-mdatp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/devodev/go-mdatp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fgo-mdatp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fgo-mdatp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fgo-mdatp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fgo-mdatp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devodev","download_url":"https://codeload.github.com/devodev/go-mdatp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fgo-mdatp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T12:29:06.836Z","updated_at":"2026-01-12T12:29:06.897Z","avatar_url":"https://github.com/devodev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-mdatp\n\nA CLI as well as a library to interact with the Microsoft Defender ATP REST API.\n\n## Overview\n\n`go-mdatp` provides a client library for the `Microsoft Defender ATP REST API` written in [Go](https://golang.org/). It follows the Microsoft API Reference available [here](https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/pull-alerts-using-rest-api).\n\n`go-mdatp` is also a CLI application with everything you need to interact with the API on the command line.\n\nCurrently, **`go-mdatp` requires Go version 1.13 or greater**.\n\n### Supported Architectures\n\nWe provide pre-built go-mdatp binaries for Windows, Linux and macOS (Darwin) architectures, in both 386/amd64 flavors.\u003c/br\u003e\nPlease see the release section [here](https://github.com/devodev/go-mdatp/releases).\n\n## Table of Contents\n\n- [Overview](#overview)\n  - [Supported Architectures](#supported-architectures)\n- [Get Started](#get-started)\n  - [Build](#build)\n- [CLI](#cli)\n  - [Usage](#usage)\n  - [Configuration File](#configuration-file)\n\n## Get Started\n\n`go-mdatp` uses Go Modules introduced in Go 1.11 for dependency management.\n\n### Build\n\nBuild the CLI for a target platform (Go cross-compiling feature), for example linux, by executing:\n\n```bash\n$ mkdir $HOME/src\n$ cd $HOME/src\n$ git clone https://github.com/devodev/go-mdatp.git\n$ cd go-mdatp\n$ env GOOS=linux go build -o go_mdatp_linux ./cmd/go-mdatp\n..\n```\n\nIf you are a Windows user, substitute the $HOME environment variable above with %USERPROFILE%.\n\n## CLI\n\n### Usage\n\n\u003e Auto-generated documentation for each command can be found [here](./docs/go-mdatp.md).\n\n```bash\nInteract with the Microsoft Defender ATP REST API.\n\nUsage:\n  go-mdatp [command]\n\nAvailable Commands:\n  alert       Alert resource type commands.\n  gendoc      Generate markdown documentation for the go-mdatp CLI.\n  help        Help about any command\n\nFlags:\n  -h, --help      help for go-mdatp\n  -v, --version   version for go-mdatp\n\nUse \"go-mdatp [command] --help\" for more information about a command.\n```\n\n### Configuration file\n\nCommands that need to interact with the API require credentials to be provided using a YAML configuration file.\u003c/br\u003e\nThe following locations are looked into if the --config flag is not provided:\n\n```bash\n$CWD/.go-mdatp.yaml\n```\n\nThe following is the current schema used.\n\u003e Credentials can be found in `Azure Active Directory`, under: `Installed apps`.\u003c/br\u003e\n\n```yaml\n---\nCredentials:\n  ClientID: 00000000-0000-0000-0000-000000000000\n  ClientSecret: 00000000000000000000000000000000\n  TenantID: 00000000-0000-0000-0000-000000000000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevodev%2Fgo-mdatp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevodev%2Fgo-mdatp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevodev%2Fgo-mdatp/lists"}