{"id":37140419,"url":"https://github.com/micromdm/mdm","last_synced_at":"2026-01-14T16:27:44.918Z","repository":{"id":57492520,"uuid":"53446636","full_name":"micromdm/mdm","owner":"micromdm","description":"common library for mdm command payloads and responses. ","archived":true,"fork":false,"pushed_at":"2018-03-08T13:28:28.000Z","size":46,"stargazers_count":21,"open_issues_count":4,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-14T01:19:28.217Z","etag":null,"topics":["go","golang","mdm"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micromdm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-08T21:31:51.000Z","updated_at":"2024-02-02T03:13:37.000Z","dependencies_parsed_at":"2022-08-28T13:40:20.903Z","dependency_job_id":null,"html_url":"https://github.com/micromdm/mdm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/micromdm/mdm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromdm%2Fmdm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromdm%2Fmdm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromdm%2Fmdm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromdm%2Fmdm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micromdm","download_url":"https://codeload.github.com/micromdm/mdm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromdm%2Fmdm/sbom","scorecard":{"id":642986,"data":{"date":"2025-08-11","repo":{"name":"github.com/micromdm/mdm","commit":"aab40a0d8858ffa58000166248e28525c82571de"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":3,"reason":"Found 10/26 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T11:19:50.336Z","repository_id":57492520,"created_at":"2025-08-21T11:19:50.337Z","updated_at":"2025-08-21T11:19:50.337Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"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":["go","golang","mdm"],"created_at":"2026-01-14T16:27:44.203Z","updated_at":"2026-01-14T16:27:44.910Z","avatar_url":"https://github.com/micromdm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/micromdm/mdm?status.svg)](http://godoc.org/github.com/micromdm/mdm) [![Build Status](https://travis-ci.org/micromdm/mdm.svg?branch=master)](https://travis-ci.org/micromdm/mdm)\n\nThe mdm package holds structs and helper methods for payloads in Apple's Mobile Device Management protocol.  \nThis package embeds the various payloads and responses in two structs - `Payload` and `Response`.\n\n# How an MDM server executes commands on a device.\nTo communicate with a device, an MDM server must create a Payload property list with a specific RequestType and additional data for each request type. Let's use the DeviceInformation request as an example:\n\n\n```\n    // create a request\n\trequest := \u0026CommandRequest{\n\t\tRequestType: \"DeviceInformation\",\n\t\tQueries:     []string{\"IsCloudBackupEnabled\", \"BatteryLevel\"},\n\t}\n\n    // NewPayload will create a proper Payload based on the CommandRequest struct\n\tpayload, err := NewPayload(request)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Encode in a plist and print to stdout\n    // uses the github.com/groob/plist package\n\tencoder := plist.NewEncoder(os.Stdout)\n\tencoder.Indent(\"  \")\n\tif err := encoder.Encode(payload); err != nil {\n\t\tlog.Fatal(err)\n\t}\n```\n\nResulting command payload:\n```\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n  \u003cdict\u003e\n    \u003ckey\u003eCommand\u003c/key\u003e\n    \u003cdict\u003e\n      \u003ckey\u003eQueries\u003c/key\u003e\n      \u003carray\u003e\n        \u003cstring\u003eIsCloudBackupEnabled\u003c/string\u003e\n        \u003cstring\u003eBatteryLevel\u003c/string\u003e\n      \u003c/array\u003e\n      \u003ckey\u003eRequestType\u003c/key\u003e\n      \u003cstring\u003eDeviceInformation\u003c/string\u003e\n    \u003c/dict\u003e\n    \u003ckey\u003eCommandUUID\u003c/key\u003e\n    \u003cstring\u003efa34b4b7-0553-4b3a-9c4b-76b8b357a622\u003c/string\u003e\n  \u003c/dict\u003e\n\u003c/plist\u003e\n```\n\nAn MDM server will queue this request and send a push notification to a device. When device checks in, the server will\nreply with the queued plist.\n\nOnce the device receives and processes the payload plist, it will reply back to the server. The response will be another plist, which can be unmarshalled into the `Response` struct. Below is the response to our DeviceInformation request.\n\n```\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n\t\u003ckey\u003eCommandUUID\u003c/key\u003e\n    \u003cstring\u003efa34b4b7-0553-4b3a-9c4b-76b8b357a622\u003c/string\u003e\n\t\u003ckey\u003eQueryResponses\u003c/key\u003e\n\t\u003cdict\u003e\n\t\t\u003ckey\u003eBatteryLevel\u003c/key\u003e\n\t\t\u003creal\u003e1\u003c/real\u003e\n\t\t\u003ckey\u003eIsCloudBackupEnabled\u003c/key\u003e\n\t\t\u003cfalse/\u003e\n\t\u003c/dict\u003e\n\t\u003ckey\u003eStatus\u003c/key\u003e\n\t\u003cstring\u003eAcknowledged\u003c/string\u003e\n\t\u003ckey\u003eUDID\u003c/key\u003e\n\t\u003cstring\u003e1111111111111111111111111111111111111111\u003c/string\u003e\n\u003c/dict\u003e\n\u003c/plist\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromdm%2Fmdm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicromdm%2Fmdm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromdm%2Fmdm/lists"}