{"id":18894245,"url":"https://github.com/trailofbits/binrec-tob","last_synced_at":"2025-04-15T00:32:06.365Z","repository":{"id":63418582,"uuid":"567317340","full_name":"trailofbits/binrec-tob","owner":"trailofbits","description":"BinRec: Dynamic Binary Lifting and Recompilation ","archived":false,"fork":false,"pushed_at":"2023-09-18T09:29:20.000Z","size":35266,"stargazers_count":129,"open_issues_count":43,"forks_count":15,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-03-28T12:51:16.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trailofbits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-17T14:35:10.000Z","updated_at":"2025-03-18T09:12:14.000Z","dependencies_parsed_at":"2023-02-10T02:15:37.607Z","dependency_job_id":null,"html_url":"https://github.com/trailofbits/binrec-tob","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fbinrec-tob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fbinrec-tob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fbinrec-tob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fbinrec-tob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailofbits","download_url":"https://codeload.github.com/trailofbits/binrec-tob/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248984426,"owners_count":21193750,"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":"2024-11-08T08:20:18.478Z","updated_at":"2025-04-15T00:32:01.358Z","avatar_url":"https://github.com/trailofbits.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BinRec: Dynamic Binary Lifting and Recompilation\n\n## Overview\n\nBinRec dynamically lifts binary executables to LLVM IR, where they can be\noptimized, hardened, or transformed and recompiled back to binaries.\nIt is based on [S2E](http://s2e.systems/docs/). For a full description\nof the framework, see the original research\n[paper](https://dl.acm.org/doi/10.1145/3342195.3387550).\n\n## Key Dependencies and Environment\n\nBinrec has been developed for and tested against the following\nenvironments and major dependencies:\n\n- Ubuntu 20.04.03 or Debian 11.3\n- LLVM (Clang): 14\n- Python 3.9\n- s2e-env @4bd6a45\n\nThe limiting factor for both Linux environment and LLVM is s2e,\nwhich supports Ubuntu 20.04 LTS at a maximum.\n\n## Installing BinRec\n\n1. BinRec uses [just](https://github.com/casey/just#installation) to automate\nvarious tasks including building BinRec. The first step in building BinRec is\nto install this tool (and `curl` if not already installed). We provide a simple\nshell script for this:\n\n    ```bash\n    ./get_just.sh\n    ```\n\n2. Next, BinRec and its dependencies can be fetched, built, and installed from\nthe root of this repository with:\n\n    ```bash\n    just install-binrec\n    ```\n\n3. (Optional) The above command will download a prebuilt QEMU virtual machine\nimage within which target binaries will run. The default prebuilt image is a\nLinux `x86` image (currently the only supported environment). If you want to\ndownload additional images (e.g., Linux `x64`) you can use the following command:\n\n   ```bash\n   # just build-s2e-image \u003cimage_name\u003e\n   $ just build-s2e-image debian-9.2.1-x86_64\n   ```\n\n## Using BinRec\n\nBinRec is a versatile dynamic binary recovery and recompilation platform.\nAs such, it can be used to achieve many different goals at varying levels\nof complexity. Please refer to BinRec's [User Manual](docs/manual/manual.md)\nfor detailed walkthroughs of typical workflows.\n\n## Acknowledgements\n\nThis material is based upon work supported by the Office of Naval\nResearch (ONR) under Contract No. N00014-21-C-1032. Any opinions, findings\nand conclusions or recommendations expressed in this material are those\nof the author(s) and do not necessarily reflect the views of the ONR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailofbits%2Fbinrec-tob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailofbits%2Fbinrec-tob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailofbits%2Fbinrec-tob/lists"}