{"id":20744878,"url":"https://github.com/calebzulawski/symbol-slasher","last_synced_at":"2026-02-18T12:02:27.656Z","repository":{"id":88675218,"uuid":"155953958","full_name":"calebzulawski/symbol-slasher","owner":"calebzulawski","description":"Obfuscate shared objects by hashing symbol names","archived":false,"fork":false,"pushed_at":"2018-11-08T14:06:51.000Z","size":64,"stargazers_count":15,"open_issues_count":8,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T05:47:55.569Z","etag":null,"topics":["dynamic-library","elf","obfuscation","shared-library","symbol-table"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calebzulawski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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}},"created_at":"2018-11-03T05:38:03.000Z","updated_at":"2024-12-03T23:42:05.000Z","dependencies_parsed_at":"2023-03-13T18:19:32.825Z","dependency_job_id":null,"html_url":"https://github.com/calebzulawski/symbol-slasher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebzulawski%2Fsymbol-slasher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebzulawski%2Fsymbol-slasher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebzulawski%2Fsymbol-slasher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebzulawski%2Fsymbol-slasher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calebzulawski","download_url":"https://codeload.github.com/calebzulawski/symbol-slasher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250573344,"owners_count":21452345,"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":["dynamic-library","elf","obfuscation","shared-library","symbol-table"],"created_at":"2024-11-17T07:17:32.581Z","updated_at":"2026-02-18T12:02:27.632Z","avatar_url":"https://github.com/calebzulawski.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"logo.svg\" width=\"50%\" height=\"auto\"\u003e\n\u003c/div\u003e\n\n## Overview\nSymbol Slasher renames dynamic symbols on already-linked binaries.\nThis obfuscates the interactions with private libraries, or simply prevents future linking to those libraries.\n\n## Building\nInstall the following:\n* [libLIEF](https://github.com/lief-project/lief)\n* [nlohmann/json](https://github.com/nlohmann/json)\n\nTo install on Ubuntu:\n```bash\nsudo apt install liblief-dev nlohmann-json-dev\n```\nThen run:\n```bash\nmeson symbol-slasher build\ncd build \u0026\u0026 ninja\n```\n## Example\nThis section assumes you have built the example libraries and executable in `/example`.\n\nExample library `liba.so` contains a simple print function.  Example library `libb.so` contains its own print function, plus a wrapper for `liba.so`'s print function.  The executable `main` calls all three print functions.  Some snippets from `nm -DC`:\n```\nliba.so:\n00000000000011a5 T a::print(int, std::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e)\n\nlibb.so:\n                 U a::print(int, std::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e)\n0000000000001252 T b::a::print(int, std::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e)\n00000000000011d5 T b::print(int, std::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e)\n\nmain:\n                 U a::print(int, std::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e)\n                 U b::a::print(int, std::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e)\n                 U b::print(int, std::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e)\n```\n\nTo build the symbol hash table, run:\n```\nsymbol-slasher insert liba.so libb.so\n```\nNote that `main` does not need to be inserted into the table, since only *defined* symbols are inserted into the table (since there will always be some undefined symbols that are resolved by `libstdc++`, for example).\n\nTo create hash the symbol names, run:\n```\nmkdir hashed\nsymbol-slasher hash liba.so hashed/liba.so\nsymbol-slasher hash libb.so hashed/libb.so\nsymbol-slasher hash main hashed/main\n```\n\nSome snippets from `nm -DC` on the hashed binaries:\n```\nliba.so\n00000000000011a5 T symslash2\n\nlibb.so:\n00000000000011d5 T symslash0\n0000000000001252 T symslash1\n                 U symslash2\n                 \nmain:\n                 U symslash0\n                 U symslash1\n                 U symslash2\n```\n\n## Credits\nLogo by [Nick](https://github.com/nickells)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalebzulawski%2Fsymbol-slasher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalebzulawski%2Fsymbol-slasher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalebzulawski%2Fsymbol-slasher/lists"}