{"id":19733740,"url":"https://github.com/h2337/modreveal","last_synced_at":"2025-08-13T06:41:38.715Z","repository":{"id":65306183,"uuid":"584145750","full_name":"h2337/modreveal","owner":"h2337","description":"Utility to find hidden Linux kernel modules","archived":false,"fork":false,"pushed_at":"2025-07-21T20:33:11.000Z","size":17,"stargazers_count":144,"open_issues_count":3,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-04T08:58:44.216Z","etag":null,"topics":["blueteam","kernel-module","kernel-security","lkm","lkm-rootkit","security","security-audit","security-tools"],"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/h2337.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}},"created_at":"2023-01-01T15:15:27.000Z","updated_at":"2025-07-21T20:33:15.000Z","dependencies_parsed_at":"2024-12-18T20:43:27.598Z","dependency_job_id":null,"html_url":"https://github.com/h2337/modreveal","commit_stats":null,"previous_names":["h2337/modreveal","hikmat2337/modreveal","jafarlihi/modreveal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h2337/modreveal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Fmodreveal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Fmodreveal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Fmodreveal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Fmodreveal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h2337","download_url":"https://codeload.github.com/h2337/modreveal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Fmodreveal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270197918,"owners_count":24543466,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["blueteam","kernel-module","kernel-security","lkm","lkm-rootkit","security","security-audit","security-tools"],"created_at":"2024-11-12T00:33:20.371Z","updated_at":"2025-08-13T06:41:38.641Z","avatar_url":"https://github.com/h2337.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modreveal\n\n`modreveal` is a small utility that prints the names of hidden LKMs (Linux Kernel Modules) if any exist. It's useful for detecting rootkits that hide themselves from standard tools like `lsmod`.\n\n![Demo](https://github.com/h2337/file-hosting/blob/59be44dca2845a68c210e61ec2733d20ddfad63f/modreveal.gif?raw=true)\n\n## Requirements\n\n- Linux kernel 5.2 or newer (updated for modern kernel API)\n- Kernel headers matching your running kernel\n- GCC compiler\n- libnl-3 and libnl-genl-3 development libraries\n\n### Installing Dependencies\n\n#### Arch Linux\n```bash\nsudo pacman -S linux-headers gcc libnl\n```\n\n#### Ubuntu/Debian\n```bash\nsudo apt-get install linux-headers-$(uname -r) gcc libnl-3-dev libnl-genl-3-dev\n```\n\n#### Fedora/RHEL\n```bash\nsudo dnf install kernel-devel gcc libnl3-devel\n```\n\n## Usage\n\n```bash\nmake\nsudo ./modreveal\n```\n\n## How It Works\n\n1. Loads a kernel module that uses kprobes to access `kallsyms_lookup_name`\n2. Iterates through all kernel modules using the internal `module_kset` structure\n3. Communicates the complete module list to userspace via generic netlink\n4. Compares the kernel's internal module list with the output of `lsmod`\n5. Reports any modules that exist in the kernel but are hidden from `lsmod`\n\n## Testing\n\nTo test the utility, you can use a rootkit that hides itself, such as:\n- Diamorphine rootkit (https://github.com/m0nad/Diamorphine)\n\n## Compatibility\n\n- Updated for Linux kernel 5.2+ (uses modern generic netlink API)\n- Tested on kernel 6.x series\n- Should work on any modern Linux distribution with proper dependencies installed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh2337%2Fmodreveal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh2337%2Fmodreveal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh2337%2Fmodreveal/lists"}