{"id":15056991,"url":"https://github.com/acceis/ebpf-hide-pid","last_synced_at":"2025-04-10T05:06:28.385Z","repository":{"id":221543777,"uuid":"754563661","full_name":"Acceis/eBPF-hide-PID","owner":"Acceis","description":"This tool have the power to hide any PID/directory in the Linux kernel","archived":false,"fork":false,"pushed_at":"2024-09-13T22:41:26.000Z","size":28,"stargazers_count":22,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T20:23:35.887Z","etag":null,"topics":["cybersecurity","ebpf","getdents64"],"latest_commit_sha":null,"homepage":"","language":"C","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/Acceis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-02-08T10:22:09.000Z","updated_at":"2025-01-14T12:58:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"1595b8f4-123c-4ef4-9366-3e91f507b53c","html_url":"https://github.com/Acceis/eBPF-hide-PID","commit_stats":null,"previous_names":["acceis/ebpf-hide-pid"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acceis%2FeBPF-hide-PID","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acceis%2FeBPF-hide-PID/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acceis%2FeBPF-hide-PID/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acceis%2FeBPF-hide-PID/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Acceis","download_url":"https://codeload.github.com/Acceis/eBPF-hide-PID/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239140427,"owners_count":19588417,"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":["cybersecurity","ebpf","getdents64"],"created_at":"2024-09-24T21:59:48.546Z","updated_at":"2025-02-16T14:31:59.268Z","avatar_url":"https://github.com/Acceis.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eBPF hide PID\n\nThis project aims to demonstrate a way to hide a _process identifier_ (PID) to a user abusing of a system call.\n\nIt is inspired by the work of Pathtofile about [bad BPF programs behaviour](https://github.com/pathtofile/bad-bpf).\n\nIf you're looking for a deep dive into this project, you can find the two related articles on the [ACCEIS blog](https://www.acceis.fr/categorie/articles-techniques/). \\\nYou can find the [first article](https://www.acceis.fr/ebpf-program-creation-in-practice-pid-concealment-part-1/) and [the second](https://www.acceis.fr/ebpf-in-practice-pid-concealment-part-2/).\n\n## Dependencies\n\n- Kernel v5.7 or higher\n- [golang](https://go.dev/doc/install) v1.21 (not tested on lower versions)\n- [clang](https://clang.llvm.org/) v16 or higher(depending on your OS, LLVM may be needed)\n- [libbpf](https://github.com/libbpf/libbpf) v1.3.0 or higher\n\n\u003e If you manually install the package in a debian/ubuntu based repository, notice that _libbpf_ is not up to date in the \"apt\" repositories. So you may have problems compiling the program.\n\n### For ArchLinux\n\nIf you are on archlinux you can simply run\n\n```bash\nsudo pacman -S llvm clang libbpf go\n```\n\n## Run in Docker\n\nIf you want a simple way to try this tool, you can use the provided Dockerfile\n\nBuild the image first\n\n```bash\ndocker buildx build -t hide-pid .\n```\n\nYou need to run the docker in privileged mod in order to inject the program in the kernel\n\n```bash\ndocker run --rm --privileged -v /sys/kernel/debug:/sys/kernel/debug:rw hide-pid \u003cPID|DIR\u003e\n```\n\n## Manual installation\n\nYou can build the project using the following command\n\n```bash\nmake\n```\n\nAnd then you can run the program in sudo\n\n```bash\nsudo ./bin/hide-pid 1337\n# 2024/02/09 18:59:48 Waiting for events..\n# 2024/02/09 18:59:53 Hiding \"1337\" for process \"ps\" (pid: 29939)\n```\n\n## Licence\n\nThe eBPF code is under GPL licence.\nThe Go code is under MIT licence.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facceis%2Febpf-hide-pid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facceis%2Febpf-hide-pid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facceis%2Febpf-hide-pid/lists"}