{"id":37191728,"url":"https://github.com/grammatech/ddisasm","last_synced_at":"2026-01-14T22:12:54.662Z","repository":{"id":37514077,"uuid":"148640580","full_name":"GrammaTech/ddisasm","owner":"GrammaTech","description":"A fast and accurate disassembler","archived":false,"fork":false,"pushed_at":"2025-11-24T17:36:58.000Z","size":30770,"stargazers_count":734,"open_issues_count":34,"forks_count":65,"subscribers_count":39,"default_branch":"main","last_synced_at":"2026-01-08T19:29:21.680Z","etag":null,"topics":["analysis","binary","binary-analysis","binary-rewriting","disassembler","gtirb","intermediate-representation","reverse-engineering"],"latest_commit_sha":null,"homepage":"https://grammatech.github.io/ddisasm/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrammaTech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-09-13T13:19:08.000Z","updated_at":"2026-01-08T17:01:42.000Z","dependencies_parsed_at":"2024-01-10T16:58:15.844Z","dependency_job_id":"cba892d5-97b2-4ad9-8840-1863c8a9f170","html_url":"https://github.com/GrammaTech/ddisasm","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/GrammaTech/ddisasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrammaTech%2Fddisasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrammaTech%2Fddisasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrammaTech%2Fddisasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrammaTech%2Fddisasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrammaTech","download_url":"https://codeload.github.com/GrammaTech/ddisasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrammaTech%2Fddisasm/sbom","scorecard":{"id":58999,"data":{"date":"2025-08-11","repo":{"name":"github.com/GrammaTech/ddisasm","commit":"5a8779f427ddfecd085f5bfd86c3a2006251ef8d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"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":"Maintained","score":10,"reason":"10 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'packages' permission set to 'read': .github/workflows/actions.yml:83","Info: jobLevel 'packages' permission set to 'read': .github/workflows/actions.yml:116","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/actions.yml:8","Info: jobLevel 'packages' permission set to 'read': .github/workflows/actions.yml:51","Warn: no topLevel permission defined: .github/workflows/actions.yml:1"],"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":"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":"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":"Binary-Artifacts","score":7,"reason":"binaries present in source code","details":["Warn: binary detected: etc/sstrip:1","Warn: binary detected: src/tests/inputs/hello.x64.elf:1","Warn: binary detected: src/tests/inputs/man:1"],"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: GNU Affero General Public License v3.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'","Warn: branch protection not enabled for branch 'release-1.8.0'","Warn: branch protection not enabled for branch 'release-1.7.0'","Warn: branch protection not enabled for branch 'release-1.6.0'"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/actions.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:121: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:128: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:147: update your workflow using https://app.stepsecurity.io/secureworkflow/GrammaTech/ddisasm/actions.yml/main?enable=pin","Warn: containerImage not pinned by hash: .ci/Dockerfile.conan-ubuntu20:1","Warn: containerImage not pinned by hash: .ci/Dockerfile.conan-ubuntu20:12: pin your Docker image by updating ubuntu:20.04 to ubuntu:20.04@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214","Warn: containerImage not pinned by hash: .ci/Dockerfile.manylinux2010:1: pin your Docker image by updating quay.io/pypa/manylinux2010_x86_64 to quay.io/pypa/manylinux2010_x86_64@sha256:3b5eb5ab9bc73b93740ae4eda9962078951cd3bb7efe837b770360e78c7366fb","Warn: containerImage not pinned by hash: .ci/Dockerfile.static:4","Warn: containerImage not pinned by hash: .ci/Dockerfile.static:34","Warn: containerImage not pinned by hash: .ci/Dockerfile.static:76","Warn: containerImage not pinned by hash: .ci/Dockerfile.static:94","Warn: containerImage not pinned by hash: .ci/Dockerfile.static:113","Warn: containerImage not pinned by hash: .ci/Dockerfile.ubuntu20:4","Warn: containerImage not pinned by hash: .ci/Dockerfile.ubuntu20:35","Warn: containerImage not pinned by hash: .ci/Dockerfile.ubuntu20:77","Warn: containerImage not pinned by hash: .ci/Dockerfile.ubuntu20:95","Warn: containerImage not pinned by hash: .ci/Dockerfile.ubuntu20:114: pin your Docker image by updating ubuntu:20.04 to ubuntu:20.04@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214","Warn: containerImage not pinned by hash: Dockerfile:4","Warn: containerImage not pinned by hash: Dockerfile:33","Warn: containerImage not pinned by hash: Dockerfile:75","Warn: containerImage not pinned by hash: Dockerfile:92","Warn: containerImage not pinned by hash: Dockerfile:114","Warn: containerImage not pinned by hash: Dockerfile:148","Warn: containerImage not pinned by hash: Dockerfile:206: pin your Docker image by updating ubuntu:20.04 to ubuntu:20.04@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214","Warn: pipCommand not pinned by hash: .ci/Dockerfile.conan-ubuntu20:64-68","Warn: pipCommand not pinned by hash: .ci/Dockerfile.conan-ubuntu20:64-68","Warn: pipCommand not pinned by hash: .ci/Dockerfile.static:163-167","Warn: pipCommand not pinned by hash: .ci/Dockerfile.static:163-167","Warn: pipCommand not pinned by hash: .ci/Dockerfile.ubuntu20:201-209","Warn: pipCommand not pinned by hash: .ci/Dockerfile.ubuntu20:201-209","Warn: pipCommand not pinned by hash: .github/workflows/actions.yml:102","Warn: pipCommand not pinned by hash: .github/workflows/actions.yml:125","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of  20 containerImage dependencies pinned","Info:   1 out of   9 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"}}]},"last_synced_at":"2025-08-15T01:19:01.588Z","repository_id":37514077,"created_at":"2025-08-15T01:19:01.588Z","updated_at":"2025-08-15T01:19:01.588Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","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":["analysis","binary","binary-analysis","binary-rewriting","disassembler","gtirb","intermediate-representation","reverse-engineering"],"created_at":"2026-01-14T22:12:54.012Z","updated_at":"2026-01-14T22:12:54.654Z","avatar_url":"https://github.com/GrammaTech.png","language":"C++","readme":"Datalog Disassembly\n===================\n\nDDisasm is a *fast* disassembler which is *accurate* enough for the\nresulting assembly code to be reassembled.  DDisasm is implemented\nusing the datalog ([souffle](https://github.com/souffle-lang/souffle))\ndeclarative logic programming language to compile disassembly rules\nand heuristics.  The disassembler first parses ELF/PE file information\nand decodes a superset of possible instructions to create an initial\nset of datalog facts.  These facts are analyzed to identify *code\nlocation*, *symbolization*, and *function boundaries*.  The results of\nthis analysis, a refined set of datalog facts, are then translated to\nthe [GTIRB](https://github.com/grammatech/gtirb) intermediate\nrepresentation for binary analysis and reverse engineering.  The\n[GTIRB pretty printer](https://github.com/grammatech/gtirb-pprinter)\nmay then be used to pretty print the GTIRB to reassemblable assembly\ncode.\n\n## Binary Support\n\nBinary formats:\n\n - ELF (Linux)\n - PE  (Windows)\n\nInstruction Set Architectures (ISAs):\n\n-  x86_32\n-  x86_64\n-  ARM32\n-  ARM64\n-  MIPS32\n\n## Getting Started\n\nYou can run a prebuilt version of Ddisasm using Docker:\n\n```bash\ndocker pull grammatech/ddisasm:latest\n```\n\nDdisasm can be used to disassemble a binary into the [GTIRB](https://github.com/grammatech/gtirb) representation.\nWe can try it with one of the examples included in the repository.\n\nFirst, start the Ddisasm docker container:\n```bash\ndocker run -v $PWD/examples:/examples -it grammatech/ddisasm:latest\n```\n\nWithin the Docker container, let us build one of the examples:\n\n```bash\napt update \u0026\u0026 apt install gcc -y\ncd /examples/ex1\ngcc ex.c -o ex\n```\n\nNow we can proceed to disassemble the binary:\n\n```bash\nddisasm ex --ir ex.gtirb\n```\n\nOnce you have the GTIRB representation, you can make programmatic changes to the\nbinary using [GTIRB](https://github.com/grammatech/gtirb) or [gtirb-rewriting](https://github.com/grammatech/gtirb-rewriting).\n\nThen, you can use [gtirb-pprinter](https://github.com/grammatech/gtirb-pprinter) (included in the Docker image) to produce\na new version of the binary:\n\n```\ngtirb-pprinter ex.gtirb -b ex_rewritten\n```\n\nInternally, `gtirb-pprinter` will generate an assembly file and invoke the compiler/assembler (e.g. gcc)\nto produce a new binary. `gtirb-pprinter` will take care or generating all the necessary command line\noptions to generate a new binary, including compilation options, library dependencies, or version linker scripts.\n\nYou can also use `gtirb-pprinter` to generate an assembly listing for manual modification:\n```bash\ngtirb-pprinter ex.gtirb --asm ex.s\n```\n\nThis assembly listing can then be manually recompiled:\n```bash\ngcc -nostartfiles ex.s -o ex_rewritten\n```\n\nPlease take a look at our [documentation](https://grammatech.github.io/ddisasm/) for additional information.\n\n## [Documentation](https://grammatech.github.io/ddisasm/)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## External Contributors\n\n * Programming Language Group, The University of Sydney: Initial support for ARM64.\n * Github user gogo2464: Documentation refactoring.\n\n## Cite\n\n1. [Datalog Disassembly](https://www.usenix.org/conference/usenixsecurity20/presentation/flores-montoya)\n\n```\n@inproceedings {flores-montoya2020,\n    author = {Antonio Flores-Montoya and Eric Schulte},\n    title = {Datalog Disassembly},\n    booktitle = {29th USENIX Security Symposium (USENIX Security 20)},\n    year = {2020},\n    isbn = {978-1-939133-17-5},\n    pages = {1075--1092},\n    url = {https://www.usenix.org/conference/usenixsecurity20/presentation/flores-montoya},\n    publisher = {USENIX Association},\n    month = aug,\n}\n```\n\n2. [GTIRB](https://arxiv.org/abs/1907.02859)\n\n```\n@misc{schulte2020gtirb,\n    title={GTIRB: Intermediate Representation for Binaries},\n    author={Eric Schulte and Jonathan Dorn and Antonio Flores-Montoya and Aaron Ballman and Tom Johnson},\n    year={2020},\n    eprint={1907.02859},\n    archivePrefix={arXiv},\n    primaryClass={cs.PL}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrammatech%2Fddisasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrammatech%2Fddisasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrammatech%2Fddisasm/lists"}