{"id":13720445,"url":"https://github.com/willfindlay/suidsnoop","last_synced_at":"2025-05-07T12:31:25.695Z","repository":{"id":109611167,"uuid":"423167197","full_name":"willfindlay/suidsnoop","owner":"willfindlay","description":"suidsnoop is a tool based on eBPF LSM programs that logs whenever a suid binary is executed and implements custom allow/deny lists.","archived":false,"fork":false,"pushed_at":"2021-10-31T23:15:09.000Z","size":179,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-14T09:39:15.333Z","etag":null,"topics":["aya","ebpf","linux","linux-kernel","lsm","rust","security","suid-binaries"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willfindlay.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}},"created_at":"2021-10-31T14:14:28.000Z","updated_at":"2024-06-28T13:18:32.000Z","dependencies_parsed_at":"2023-04-04T04:47:13.610Z","dependency_job_id":null,"html_url":"https://github.com/willfindlay/suidsnoop","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/willfindlay%2Fsuidsnoop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfindlay%2Fsuidsnoop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfindlay%2Fsuidsnoop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfindlay%2Fsuidsnoop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfindlay","download_url":"https://codeload.github.com/willfindlay/suidsnoop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252876401,"owners_count":21818174,"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":["aya","ebpf","linux","linux-kernel","lsm","rust","security","suid-binaries"],"created_at":"2024-08-03T01:01:03.865Z","updated_at":"2025-05-07T12:31:21.771Z","avatar_url":"https://github.com/willfindlay.png","language":"Rust","funding_links":[],"categories":["Small Tools that Use Aya"],"sub_categories":["Aya-related talks"],"readme":"# suidsnoop\n\n\u003e Log suid binaries and enforce per-uid suid policy.\n\n`suidsnoop` is a tool for logging whenever a suid binary is executed on your system and\noptionally enforcing a per-uid policy for suid binaries. `suidnsoop` is built using eBPF\nLSM programs and is written in pure Rust using the [Aya][aya] library.\n\n[aya]: https://github.com/aya-rs/aya\n\n## Prerequisites\n\n1. Install a rust stable toolchain: `rustup install stable`\n1. Install a rust nightly toolchain: `rustup install nightly`\n1. Install bpf-linker: `cargo install bpf-linker`\n\n## Build and Install\n\n```bash\ngit clone https://github.com/willfindlay/suidsnoop \u0026\u0026 cd suidsnoop\nmake install\n```\n\nMake sure `$HOME/.cargo/bin` is in your `$PATH`!\n\n## Examples\n\nLog all attempts to run suid binaries:\n```bash\nsudo suidsnoop\n```\n\nAllow uid 1000 and deny all others:\n```bash\nsudo suidsnoop -u 1000\n```\n\nDeny uid 1001 and allow all others:\n```bash\nsudo suidsnoop -U 1001\n```\n\nDo a dry run of a policy:\n```bash\nsudo suidsnoop -U 1001 -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfindlay%2Fsuidsnoop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfindlay%2Fsuidsnoop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfindlay%2Fsuidsnoop/lists"}