{"id":28450077,"url":"https://github.com/captainirs/ebpf-tools","last_synced_at":"2025-07-01T13:32:02.957Z","repository":{"id":296451178,"uuid":"993438052","full_name":"CaptainIRS/ebpf-tools","owner":"CaptainIRS","description":"A collection of eBPF-based tools","archived":false,"fork":false,"pushed_at":"2025-05-30T19:43:46.000Z","size":1072,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-31T04:56:03.768Z","etag":null,"topics":["ebpf","ebpf-co-re","libbpf","systems-programming"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/CaptainIRS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2025-05-30T19:41:43.000Z","updated_at":"2025-05-30T19:45:17.000Z","dependencies_parsed_at":"2025-05-31T05:04:59.434Z","dependency_job_id":"7eb21d8b-7d0d-4670-864a-a777674c016f","html_url":"https://github.com/CaptainIRS/ebpf-tools","commit_stats":null,"previous_names":["captainirs/ebpf-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CaptainIRS/ebpf-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIRS%2Febpf-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIRS%2Febpf-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIRS%2Febpf-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIRS%2Febpf-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptainIRS","download_url":"https://codeload.github.com/CaptainIRS/ebpf-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIRS%2Febpf-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262972469,"owners_count":23393043,"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":["ebpf","ebpf-co-re","libbpf","systems-programming"],"created_at":"2025-06-06T15:00:27.737Z","updated_at":"2025-07-01T13:32:02.951Z","avatar_url":"https://github.com/CaptainIRS.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eBPF Tools\n\nA collection of eBPF tools that are built using libbpf in C++. The build system is written in CMake and is configured to provide a solid development experience in IDEs.\n\nOriginally submitted for the NetworkInCode hackathon by me.\n\n## Included Tools\n\n### Syscall Blocker\n\nCode: [syscall-blocker](./syscall-blocker)\n\n#### Features\n\n- [x] **Block syscalls**: Specific system calls can be blocked by passing the syscall names as arguments to the program.\n- [x] **Filter by UID**: The user can specify the UIDs for which the syscalls should be blocked.\n- [x] **Filter by Mount Namespace ID**: The user can specify the mount namespace IDs for which the syscalls should be blocked.\n- [x] **Logging**: The blocked syscalls are logged to the console.\n- [x] **Filter by container name**: By passing the docker container name directly, the mount namespace ID is automatically fetched and the syscalls are blocked for that container.\n\n#### Demo\n\n![Demo](./syscall-blocker/demo.gif)\n\n### DNS Query Delay Injector\n\nCode: [dns-delay](./dns-delay)\n\n##### Features Implemented\n\n- [x] **Delay Injection:** Introduce delays in DNS query packets.\n- [x] **Filtering Capabilities:** Filter based on:\n  - [x] **Process:** Making the DNS request. (Process Name)\n  - [x] **Target URL:** Being queried.\n  - [x] **DNS Server:** Handling the request.\n- [x] **Delay Configuration:** Set user-defined or random delays (with jitter).\n- [x] **Logging:** Provide logging for debugging and verification.\n\n#### Demo\n\n![demo.gif](./dns-delay/demo.gif)\n\n### ThreadViz\n\nCode: [threadviz](./threadviz)\n\n#### Implementation Notes\n\n* The program uses eBPF hooks to trace thread events.\n* The user-space program transforms the raw data into Perfetto trace format.\n* The trace is then visualized using Perfetto UI.\n\n#### Demo\n\nhttps://github.com/user-attachments/assets/02ef1524-19d6-4015-9d67-3013355e60d4\n\n## License\n\nMIT License\n\n© 2025, @CaptainIRS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptainirs%2Febpf-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptainirs%2Febpf-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptainirs%2Febpf-tools/lists"}