{"id":13311761,"url":"https://github.com/lstn/muddy","last_synced_at":"2026-03-17T23:19:49.544Z","repository":{"id":57443839,"uuid":"197949616","full_name":"lstn/muddy","owner":"lstn","description":"Muddy is a python package for generating MUD files.","archived":false,"fork":false,"pushed_at":"2019-07-26T01:36:06.000Z","size":86,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-27T16:24:07.705Z","etag":null,"topics":["ietf","iot","mud","python","python3","rfc8520"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/lstn.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":"2019-07-20T15:37:44.000Z","updated_at":"2023-09-07T15:20:42.000Z","dependencies_parsed_at":"2022-09-10T20:22:11.320Z","dependency_job_id":null,"html_url":"https://github.com/lstn/muddy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lstn/muddy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstn%2Fmuddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstn%2Fmuddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstn%2Fmuddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstn%2Fmuddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lstn","download_url":"https://codeload.github.com/lstn/muddy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstn%2Fmuddy/sbom","scorecard":{"id":601182,"data":{"date":"2025-08-11","repo":{"name":"github.com/lstn/muddy","commit":"f6fbcf9cff1ce63f0fd4245f7725824216db3b71"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"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":"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":"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":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating python:3.7-alpine to python:3.7-alpine@sha256:f3d31c8677d03f0b3c724446077f229a6ce9d3ac430f5c08cd7dff00292048c3","Warn: pipCommand not pinned by hash: Dockerfile:6","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"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":"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"}}]},"last_synced_at":"2025-08-21T00:27:37.010Z","repository_id":57443839,"created_at":"2025-08-21T00:27:37.010Z","updated_at":"2025-08-21T00:27:37.010Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"last_error":"SSL_read: 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":["ietf","iot","mud","python","python3","rfc8520"],"created_at":"2024-07-29T18:02:29.470Z","updated_at":"2026-03-17T23:19:49.498Z","avatar_url":"https://github.com/lstn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# muddy\n\n[![PyPI version](https://badge.fury.io/py/muddy.svg)](https://badge.fury.io/py/muddy)\n\n**muddy** is a python package and CLI tool for generating MUD files ([RFC8520](https://tools.ietf.org/html/rfc8520)).\n\n## Usage\n\nThere are multiple ways to generate MUD objects, depending on the level of abstraction:\n\n```python\nfrom muddy.maker import make_mud\nfrom muddy.models import Direction, IPVersion, Protocol, MatchType\n\nmud = make_mud(1,'https://lighting.example.com/lightbulb2000', 48, True, 'The BMS Example Light Bulb', \n'https://lighting.example.com/lightbulb2000/documentation', [Direction.TO_DEVICE,Direction.FROM_DEVICE],\n IPVersion.IPV4, 'test.example.com', Protocol.ANY, MatchType.IS_MYMFG, [88,443], [88,443])\n```\n\nor\n\n```python\nfrom muddy.maker import make_mud, make_support_info\nfrom muddy.models import Direction, IPVersion, Protocol, MatchType\n\nsupport_info = make_support_info(1,'https://lighting.example.com/lightbulb2000', 48, True,\n 'The BMS Example Light Bulb', 'https://lighting.example.com/lightbulb2000/documentation')\n\nmud = make_mud(support_info , [Direction.TO_DEVICE,Direction.FROM_DEVICE],\n IPVersion.IPV4, 'test.example.com', Protocol.ANY, [88,443], [88,443], MatchType.IS_MYMFG)\n```\n\nor\n\n```python\nfrom muddy.maker import make_mud, make_acl_names, make_policy, make_acls\nfrom muddy.models import Direction, IPVersion, Protocol, MatchType\nimport random\n\nmud_name = f'mud-{random.randint(10000, 99999)}'\nacl = []\npolicies = {}\nfor direction_initiated in [Direction.TO_DEVICE,Direction.FROM_DEVICE]:\n    acl_names = make_acl_names(mud_name, IPVersion.IPV4, direction_initiated)\n    policies.update(make_policy(direction_initiated, acl_names))\n    acl.append(make_acls([IPVersion.IPV4], 'test.example.com', Protocol.ANY, [88,443], [88,443], MatchType.IS_MYMFG,\n    direction_initiated, acl_names))\n\nmud = make_mud(policies, acl, 1,'https://lighting.example.com/lightbulb2000', 48, True, 'The BMS Example Light Bulb', \n'https://lighting.example.com/lightbulb2000/documentation')\n```\n\nor\n\n```python\nfrom muddy.maker import make_mud, make_acl_names, make_policy, make_acls, make_support_info\nfrom muddy.models import Direction, IPVersion, Protocol, MatchType\nimport random\n\nsupport_info = make_support_info(1,'https://lighting.example.com/lightbulb2000', 48, True,\n 'The BMS Example Light Bulb', 'https://lighting.example.com/lightbulb2000/documentation')\n\n\nmud_name = f'mud-{random.randint(10000, 99999)}'\nacl = []\npolicies = {}\nfor direction_initiated in [Direction.TO_DEVICE,Direction.FROM_DEVICE]:\n    acl_names = make_acl_names(mud_name, IPVersion.IPV4, direction_initiated)\n    policies.update(make_policy(direction_initiated, acl_names))\n    acl.append(make_acls([IPVersion.IPV4], 'test.example.com', Protocol.ANY, [88,443], [88,443], MatchType.IS_MYMFG,\n    direction_initiated,acl_names))\n\nmud = make_mud(support_info, policies, acl)\n```\n\nTo obtain JSON for a MUD object, you may just `json.dumps(mud)`.\n\n## Example output\n\n```json\n{\n  \"ietf-mud:mud\": {\n    \"mud-version\": 1,\n    \"mud-url\": \"https://lighting.example.com/lightbulb2000\",\n    \"last-update\": \"2019-07-23T19:54:24\",\n    \"cache-validity\": 48,\n    \"is-supported\": true,\n    \"systeminfo\": \"The BMS Example Light Bulb\",\n    \"documentation\": \"https://lighting.example.com/lightbulb2000/documentation\",\n    \"to-device-policy\": {\n      \"access-lists\": {\n        \"access-list\": [\n          {\n            \"name\": \"mud-52892-v4to\"\n          }\n        ]\n      }\n    },\n    \"from-device-policy\": {\n      \"access-lists\": {\n        \"access-list\": [\n          {\n            \"name\": \"mud-52892-v4fr\"\n          }\n        ]\n      }\n    }\n  },\n  \"ietf-access-control-list:acls\": {\n    \"acl\": [\n      {\n        \"name\": \"mud-52892-v4to\",\n        \"type\": \"ipv4\",\n        \"aces\": {\n          \"ace\": [\n            {\n              \"name\": \"myman0-todev\",\n              \"matches\": {\n                \"ietf-mud:mud\": {\n                  \"same-manufacturer\": []\n                }\n              },\n              \"actions\": {\n                \"forwarding\": \"accept\"\n              }\n            },\n            {\n              \"name\": \"myman1-todev\",\n              \"matches\": {\n                \"ietf-mud:mud\": {\n                  \"same-manufacturer\": []\n                }\n              },\n              \"actions\": {\n                \"forwarding\": \"accept\"\n              }\n            },\n            {\n              \"name\": \"myman1-todev\",\n              \"matches\": {\n                \"ietf-mud:mud\": {\n                  \"same-manufacturer\": []\n                }\n              },\n              \"actions\": {\n                \"forwarding\": \"accept\"\n              }\n            },\n            {\n              \"name\": \"myman2-todev\",\n              \"matches\": {\n                \"ietf-mud:mud\": {\n                  \"same-manufacturer\": []\n                }\n              },\n              \"actions\": {\n                \"forwarding\": \"accept\"\n              }\n            }\n          ]\n        }\n      },\n      {\n        \"name\": \"mud-52892-v4fr\",\n        \"type\": \"ipv4\",\n        \"aces\": {\n          \"ace\": [\n            {\n              \"name\": \"myman0-frdev\",\n              \"matches\": {\n                \"ietf-mud:mud\": {\n                  \"same-manufacturer\": []\n                }\n              },\n              \"actions\": {\n                \"forwarding\": \"accept\"\n              }\n            },\n            {\n              \"name\": \"myman1-frdev\",\n              \"matches\": {\n                \"ietf-mud:mud\": {\n                  \"same-manufacturer\": []\n                }\n              },\n              \"actions\": {\n                \"forwarding\": \"accept\"\n              }\n            },\n            {\n              \"name\": \"myman1-frdev\",\n              \"matches\": {\n                \"ietf-mud:mud\": {\n                  \"same-manufacturer\": []\n                }\n              },\n              \"actions\": {\n                \"forwarding\": \"accept\"\n              }\n            },\n            {\n              \"name\": \"myman2-frdev\",\n              \"matches\": {\n                \"ietf-mud:mud\": {\n                  \"same-manufacturer\": []\n                }\n              },\n              \"actions\": {\n                \"forwarding\": \"accept\"\n              }\n            }\n          ]\n        }\n      }\n    ]\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flstn%2Fmuddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flstn%2Fmuddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flstn%2Fmuddy/lists"}