{"id":21202643,"url":"https://github.com/cundd/hackscanner","last_synced_at":"2026-02-13T09:15:16.509Z","repository":{"id":146204586,"uuid":"122825965","full_name":"cundd/hackscanner","owner":"cundd","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-09T16:22:53.000Z","size":211,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T20:42:04.903Z","etag":null,"topics":["file-scanner","security-scanner"],"latest_commit_sha":null,"homepage":null,"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/cundd.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":"2018-02-25T10:30:06.000Z","updated_at":"2025-01-09T16:22:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"d51c473b-6774-4fdf-8b9a-47a60ef0759d","html_url":"https://github.com/cundd/hackscanner","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cundd/hackscanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cundd%2Fhackscanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cundd%2Fhackscanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cundd%2Fhackscanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cundd%2Fhackscanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cundd","download_url":"https://codeload.github.com/cundd/hackscanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cundd%2Fhackscanner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263331768,"owners_count":23450155,"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":["file-scanner","security-scanner"],"created_at":"2024-11-20T20:17:28.826Z","updated_at":"2026-02-13T09:15:11.466Z","avatar_url":"https://github.com/cundd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hackscanner\n\n\u003e A filesystem scanner that will search for files with suspicious content or file paths.\n\n## Usage\n\n```bash\nhackscanner /root/directory/to/scan/\n```\n\n### What does this do?\n\nThe scanner will go through each file in the given root directory (or the current working directory if none is given). \nEach file will be checked against all the defined rules. The severity values of all matching rules will be summed up to \nbuild a rating for the checked file.\n\nFinally the results will be sorted by rating and be printed to the screen. \n\n\n## Rules\n\nThe scanner has a set of [builtin rules](src/rule/builtin.rs), but can easily be extended with custom rules. \nCustom rules can be defined in a configuration file which is applied with the `-c, --configuration \u003cconfiguration\u003e` option.\n\n```bash\nhackscanner /root/directory/to/scan/ -c /configuration.yaml\n# or\nhackscanner /root/directory/to/scan/ -c /configuration.json\n```\n\nThe configuration file can be a JSON or YAML file.\n\n### JSON configuration file\n\n```json\n[\n    {\n        \"name\": \"some rule\",\n        \"path\": \"some/path\",\n        \"content\": \"some bad content\",\n        \"severity\": \"CRITICAL\"\n    },\n    {\n        \"name\": \"some whitelist rule\",\n        \"path\": \"\\\\.php\",\n        \"content\": \"love\",\n        \"severity\": \"WHITELIST\"\n    }\n]\n```\n\n### YAML configuration file\n\n```yaml\n- name: some rule\n  path: some/path\n  content: some bad content\n  severity: CRITICAL\n\n- name: some whitelist rule\n  path: \"\\\\.php\"\n  content: love\n  severity: WHITELIST\n```\n\n\n## Build\n\n```bash\ndocker run --rm --user \"$(id -u)\":\"$(id -g)\" -v \"$PWD\":/usr/src/hackscanner -w /usr/src/hackscanner rust:1.23.0 cargo build --release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcundd%2Fhackscanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcundd%2Fhackscanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcundd%2Fhackscanner/lists"}