{"id":13717260,"url":"https://github.com/owasp-dep-scan/blint","last_synced_at":"2026-03-03T03:06:20.600Z","repository":{"id":109729473,"uuid":"591702216","full_name":"owasp-dep-scan/blint","owner":"owasp-dep-scan","description":"BLint is a Binary Linter to check the security properties, and capabilities in your executables. Since v2, blint is also an SBOM generator for binaries.","archived":false,"fork":false,"pushed_at":"2025-04-27T21:26:21.000Z","size":2042,"stargazers_count":363,"open_issues_count":43,"forks_count":35,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-07T00:05:20.045Z","etag":null,"topics":["binary","cyclonedx","depscan","fuzzing","malware","sbom","supply-chain-analytics","supply-chain-security"],"latest_commit_sha":null,"homepage":"","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/owasp-dep-scan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"custom":["https://owasp.org/donate?reponame=www-project-dep-scan\u0026title=OWASP+dep-scan"],"github":["prabhu","cerrussell"]}},"created_at":"2023-01-21T15:42:23.000Z","updated_at":"2025-04-30T19:28:21.000Z","dependencies_parsed_at":"2023-04-01T07:08:43.391Z","dependency_job_id":"a4bd08e0-5627-4e68-81a2-ab7592e718cf","html_url":"https://github.com/owasp-dep-scan/blint","commit_stats":null,"previous_names":["appthreat/blint"],"tags_count":59,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owasp-dep-scan%2Fblint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owasp-dep-scan%2Fblint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owasp-dep-scan%2Fblint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owasp-dep-scan%2Fblint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owasp-dep-scan","download_url":"https://codeload.github.com/owasp-dep-scan/blint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252833407,"owners_count":21811177,"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":["binary","cyclonedx","depscan","fuzzing","malware","sbom","supply-chain-analytics","supply-chain-security"],"created_at":"2024-08-03T00:01:19.977Z","updated_at":"2026-03-03T03:06:20.539Z","avatar_url":"https://github.com/owasp-dep-scan.png","language":"Python","funding_links":["https://owasp.org/donate?reponame=www-project-dep-scan\u0026title=OWASP+dep-scan","https://github.com/sponsors/prabhu","https://github.com/sponsors/cerrussell","https://github.com/sponsors/lief-project/"],"categories":["Dependency intelligence"],"sub_categories":[],"readme":"# BLint\n\n\u003cimg src=\"./blint.png\" width=\"400\" /\u003e\n\nBLint is a Binary Linter that checks the security properties and capabilities of your executables. It is powered by [lief](https://github.com/lief-project/LIEF). Since version 2, blint can also generate Software Bill-of-Materials (SBOM) for supported binaries.\n\n[![BLint Demo](https://asciinema.org/a/438138.png)](https://asciinema.org/a/438138)\n\nSupported binary formats:\n\n- Android (apk, aab)\n- ELF (GNU, musl)\n- PE (exe, dll)\n- Mach-O (x64, arm64)\n\nYou can run blint on Linux, Windows, and Mac against any of these binary formats.\n\n## Motivation\n\nNowadays, vendors distribute statically linked binaries produced by Golang, Rust, or Dotnet tooling. Users are used to running antivirus and anti-malware scans while using these binaries in their local devices. Blint augments these scans by listing the technical capabilities of a binary. For example, whether the binary could use network connections or can perform file system operations and so on.\nThe binary is first parsed using the lief framework to identify the various properties, such as functions and the presence of symtab and dynamic symbols. Thanks to YAML-based annotation data, this information can be matched against capabilities and presented visually using a rich table.\nNOTE: The presence of capabilities doesn't imply that the binary always performs the operations. Use the output of this tool to get an idea about a binary. Also, this tool is not suitable for reviewing malware and other heavily obfuscated binaries for obvious reasons.\n\n## Use cases\n\n- Quickly identify malicious binaries by looking at their capabilities (Ability to manipulate networks or drivers or kernels etc)\n- Add blint to CI/CD to inspect the final binaries to ensure code signing or authenticode is applied correctly\n- Identify interesting functions and symbols for fuzzing\n\n## Installation\n\n- Install python 3.10, 3.11, or 3.12\n\n```bash\npip install blint\n```\n\n### Single binary releases\n\nYou can download single binary builds from the [blint-bin releases](https://github.com/OWASP-dep-scan/blint/releases). These executables should work without requiring python to be installed. The macOS .pkg file is signed with a valid developer account.\n\n## Usage\n\n```shell\nusage: blint [-h] [-i SRC_DIR_IMAGE [SRC_DIR_IMAGE ...]] [-o REPORTS_DIR] [--no-error] [--no-banner] [--no-reviews] [--suggest-fuzzable] [--use-blintdb] {sbom} ...\n\nBinary linter and SBOM generator.\n\noptions:\n  -h, --help            show this help message and exit\n  -i, --src SRC_DIR_IMAGE [SRC_DIR_IMAGE ...]\n                        Source directories, container images or binary files. Defaults to current directory.\n  -o, --reports REPORTS_DIR\n                        Reports directory. Defaults to reports.\n  --no-error            Continue on error to prevent build from breaking.\n  --no-banner           Do not display banner.\n  --no-reviews          Do not perform method reviews.\n  --suggest-fuzzable    Suggest functions and symbols for fuzzing based on a dictionary.\n  --use-blintdb         Use blintdb for symbol resolution. Use environment variables: BLINTDB_IMAGE_URL, BLINTDB_HOME, and BLINTDB_REFRESH for customization.\n\nsub-commands:\n  Additional sub-commands\n\n  {sbom}\n    sbom                Command to generate SBOM for supported binaries.\n    db                  Command to manage the pre-compiled database.\n```\n\n### SBOM sub-command\n\n```shell\nusage: blint sbom [-h] [-i SRC_DIR_IMAGE [SRC_DIR_IMAGE ...]] [-o SBOM_OUTPUT] [--deep] [--stdout] [--exports-prefix EXPORTS_PREFIX [EXPORTS_PREFIX ...]]\n                  [--bom-src SRC_DIR_BOMS [SRC_DIR_BOMS ...]]\n\noptions:\n  -h, --help            show this help message and exit\n  -i SRC_DIR_IMAGE [SRC_DIR_IMAGE ...], --src SRC_DIR_IMAGE [SRC_DIR_IMAGE ...]\n                        Source directories, container images or binary files. Defaults to current directory.\n  -o SBOM_OUTPUT, --output-file SBOM_OUTPUT\n                        SBOM output file. Defaults to bom-post-build.cdx.json in current directory.\n  --deep                Enable deep mode to collect more used symbols and modules aggressively. Slow operation.\n  --stdout              Print the SBOM to stdout instead of a file.\n  --exports-prefix EXPORTS_PREFIX [EXPORTS_PREFIX ...]\n                        prefixes for the exports to be included in the SBOM.\n  --bom-src SRC_DIR_BOMS [SRC_DIR_BOMS ...]\n                        Directories containing pre-build and build BOMs. Use to improve the precision.\n```\n\n### DB sub-command\n\n```shell\nusage: blint db [-h] [--download] [--image-url IMAGE_URL]\n\noptions:\n  -h, --help            show this help message and exit\n  --download            Download the pre-compiled database to the /Volumes/Work/blintdb/ directory. Use the environment variable `BLINTDB_HOME` to override.\n  --image-url IMAGE_URL\n                        Blintdb image url. Defaults to ghcr.io/appthreat/blintdb-vcpkg-arm64:v1. The environment variable `BLINTDB_IMAGE_URL` is an alternative way to set this value.\n```\n\nTo test any binary, including default commands\n\n```bash\nblint -i /bin/netstat -o /tmp/blint\n```\n\nUse -i to check any other binary. For eg: to check ngrok\n\n```bash\nblint -i ~/ngrok -o /tmp/blint\n```\n\nPass `--suggest-fuzzable` to get suggestions for fuzzing. A dictionary containing \"common verbs\" is used to identify these functions.\n\n```bash\nblint -i ~/ngrok -o /tmp/blint --suggest-fuzzable\n```\n\nTo generate SBOM in [CycloneDX format](https://cyclonedx.org/) for supported binaries, use the sbom sub-command.\n\n```shell\nblint sbom -i /path/to/apk -o bom.json\n```\n\n```shell\nblint sbom -i /directory/with/apk/aab -o bom.json\n```\n\nTo parse all files, including `.dex` files, pass `--deep` argument.\n\n```shell\nblint sbom -i /path/to/apk -o bom.json --deep\n```\n\nComponent identification for C/C++ binaries could be improved with [blintdb](https://github.com/AppThreat/blint-db). To download the pre-compiled database (SQLite format), first run the `db` command followed by the `sbom` command.\n\n```shell\nblint db\nblint sbom -i /path/to/binary -o bom.json --deep\n```\n\nThe following binaries are supported:\n\n- Android (apk/aab)\n- Dotnet executable binaries\n- Go binaries\n- Rust binaries\n- c/c++ binaries (WIP)\n\n```shell\nblint sbom -i /path/to/go-binaries -o bom.json --deep\n```\n\nFor all other binaries, the symbols will be collected and represented as properties with `internal` prefixes for the parent component. Child components and dependencies would be missing.\n\nPowerShell example\n\n![PowerShell](./docs/blint-powershell.jpg)\n\n## Reports\n\nBlint produces the following json artifacts in the reports directory:\n\n- blint-output.html - HTML output from the console logs\n- exename-metadata.json - Raw metadata about the parsed binary. Includes symbols, functions, and signature information\n- findings.json - Contains information from the security properties audit. Useful for CI/CD integrations\n- reviews.json - Contains information from the capability reviews. Useful for further analysis\n- fuzzables.json - Contains a suggested list of methods for fuzzing\n\nsbom command generates CycloneDX json.\n\n## References\n\n- [lief examples](https://github.com/lief-project/LIEF/tree/master/examples)\n- [checksec](https://github.com/Wenzel/checksec.py)\n\n## Discord support\n\nThe developers can be reached via the [Discord](https://discord.gg/DCNxzaeUpd) channel.\n\n## Sponsorship wishlist\n\nIf you love blint, you should consider [donating](https://owasp.org/donate?reponame=www-project-dep-scan\u0026title=OWASP+dep-scan) to our project. In addition, consider donating to the below projects, which make blint possible.\n\n- [LIEF](https://github.com/sponsors/lief-project/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowasp-dep-scan%2Fblint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowasp-dep-scan%2Fblint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowasp-dep-scan%2Fblint/lists"}