{"id":24748366,"url":"https://github.com/0xthiebaut/mdeproxy","last_synced_at":"2026-02-10T15:48:14.211Z","repository":{"id":247384306,"uuid":"825671622","full_name":"0xThiebaut/mdeproxy","owner":"0xThiebaut","description":"Microsoft Defender for Endpoint Proxy (Device Timeline, ...)","archived":false,"fork":false,"pushed_at":"2024-08-20T10:44:16.000Z","size":570,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T05:41:56.628Z","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":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xThiebaut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-08T09:32:28.000Z","updated_at":"2024-08-20T10:38:20.000Z","dependencies_parsed_at":"2024-07-09T16:16:18.915Z","dependency_job_id":null,"html_url":"https://github.com/0xThiebaut/mdeproxy","commit_stats":null,"previous_names":["0xthiebaut/mdeproxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xThiebaut%2Fmdeproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xThiebaut%2Fmdeproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xThiebaut%2Fmdeproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xThiebaut%2Fmdeproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xThiebaut","download_url":"https://codeload.github.com/0xThiebaut/mdeproxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235970068,"owners_count":19074330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2025-01-28T05:45:02.274Z","updated_at":"2026-02-10T15:48:09.160Z","avatar_url":"https://github.com/0xThiebaut.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MDE Proxy\nMDE Proxy leverages an undocumented proxy at [security.microsoft.com] to access the undocumented\nMicrosoft Defender for Endpoint APIs (e.g., device timeline).\n\nThis tool is inspired by [Defender Harvester] which does not rely on the undocumented proxy; However\nsome organizations prevent direct access to the Security Center API (i.e., conditional access policies) which\nhinders incident response. This tool acts as a workaround: If you can access the timeline in a browser,\nthis tool can extract the data from the timeline API.\n\nAs a rough estimate, the timeline API produces 1GB of data per appliance per month;\nExtraction of the data takes around 20 minutes per device per month.\n\n## Getting Started\n\n### Installation\nMDE Proxy is written in [Go] and can be installed as follows...\n```bash\ngo install github.com/0xThiebaut/mdeproxy@latest\n```\n\n### Configuration\nMDE Proxy relies on two headers sent through [security.microsoft.com]:\n- `Cookie` which holds authentication data\n- `X-XSRF-TOKEN` which holds a cross-site request forgery token\n\nExtracting these header values can be done through the browser's developer tools when inspecting `POST` requests.\n\n![Capture]\n\n### Usage\nWith the two header values extracted, a device's timeline can be extracted as follows...\n```bash\nmdeproxy timeline --cookie COOKIE --xsrf XSRF --machine MID --from 2024-04-01T00:00:00Z --to 2024-07-01T00:00:00Z --output timeline.jsonl\n```\n- `COOKIE` being the cookie header extracted through the browser's developer tools.\n- `XSRF` being the cross-site request forgery token extracted through the browser's developer tools.\n- `MID` being the hexadecimal machine ID.\n\nThe `from` and `to` field represents the time-range of timeline data to recover.\nThis tool handles paging and is hence not subject to the usual 7 or 30 day limit.\nBy omitting `from` and `to`, the last 6 months of data are exported.\n\n[Defender Harvester]: https://github.com/olafhartong/DefenderHarvester\n[Go]: https://go.dev/doc/install\n[security.microsoft.com]: https://security.microsoft.com\n\n[Capture]: docs/images/Tokens.jpg","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xthiebaut%2Fmdeproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xthiebaut%2Fmdeproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xthiebaut%2Fmdeproxy/lists"}