{"id":20286666,"url":"https://github.com/yezzfusl/rustylog4jguard","last_synced_at":"2026-06-07T00:32:30.710Z","repository":{"id":253190936,"uuid":"842737487","full_name":"yezzfusl/RustyLog4jGuard","owner":"yezzfusl","description":"Effortless Log4j vulnerability detection.","archived":false,"fork":false,"pushed_at":"2024-08-15T01:57:55.000Z","size":23,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T08:14:47.828Z","etag":null,"topics":["cve-2021-44228","cybersecurity","exploit-detection","infosec","log4j","log4shell","malware-detection","open-source","penetration-testing","rust","rust-security","security","security-tools","vulnerability-scanner"],"latest_commit_sha":null,"homepage":"https://yezzfusl.vercel.app/blog/log4shell","language":"Rust","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/yezzfusl.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":"2024-08-15T01:25:08.000Z","updated_at":"2024-08-15T02:06:09.000Z","dependencies_parsed_at":"2024-08-15T04:03:09.271Z","dependency_job_id":null,"html_url":"https://github.com/yezzfusl/RustyLog4jGuard","commit_stats":null,"previous_names":["yezzfusl/rustylog4jguard"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yezzfusl%2FRustyLog4jGuard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yezzfusl%2FRustyLog4jGuard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yezzfusl%2FRustyLog4jGuard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yezzfusl%2FRustyLog4jGuard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yezzfusl","download_url":"https://codeload.github.com/yezzfusl/RustyLog4jGuard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780499,"owners_count":20019061,"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":["cve-2021-44228","cybersecurity","exploit-detection","infosec","log4j","log4shell","malware-detection","open-source","penetration-testing","rust","rust-security","security","security-tools","vulnerability-scanner"],"created_at":"2024-11-14T14:36:00.974Z","updated_at":"2026-06-07T00:32:30.697Z","avatar_url":"https://github.com/yezzfusl.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RustyLog4jGuard\nEffortless Log4j vulnerability detection.\n\n## Features\n\n- Recursive scanning of directories for JAR and class files\n- Multi-threaded parallel scanning for improved performance\n- Identification of potential Log4Shell vulnerabilities\n- Support for custom vulnerability patterns using regex\n- File and directory exclusion patterns using glob syntax\n- Multiple hashing algorithms for file integrity checks:\n  - SHA-256\n  - SHA-3\n  - Blake3\n- Advanced analysis techniques:\n  - Entropy analysis for detecting obfuscated malicious code\n  - Fourier transform analysis for identifying hidden patterns\n  - Markov chain analysis for behavioral detection\n- Configurable output formats (text and JSON)\n- Progress bar for real-time scanning feedback\n- Quiet mode for CI/CD integration\n- Option to save results to a file\n\n## Prerequisites\n\n- Rust 1.54 or higher\n- Cargo (Rust's package manager)\n\n## Installation\n\n1. Clone the repository:\n\n`git clone https://github.com/yezzfusl/RustyLog4jGuard.git`\n\n`cd RustyLog4jGuard`\n\n2. Build the project:\n\n`cargo build --release`\n\nThe compiled binary will be available in the `target/release` directory.\n\n## Usage\n\nRun the scanner with the following command:\n\n`./target/release/cve_2021_44228_scanner [OPTIONS] --path \u003cPATH\u003e`\n\n### Options:\n\n- `--path \u003cPATH\u003e`: Specify the directory to scan (required)\n- `--format \u003cFORMAT\u003e`: Choose the output format (text or json) [default: text]\n- `--threads \u003cTHREADS\u003e`: Set the number of threads to use for scanning (optional)\n- `--exclude \u003cPATTERN\u003e`: Exclude files/directories matching the given glob pattern (can be used multiple times)\n- `--custom-patterns \u003cREGEX\u003e`: Add custom vulnerability patterns as regex (can be used multiple times)\n- `--quiet`: Enable quiet mode (only output vulnerable files)\n- `--output \u003cFILE\u003e`: Save results to the specified file\n- `-h, --help`: Print help information\n- `-V, --version`: Print version information\n\n\n### Examples:\n\n1. Scan a directory with default settings:\n\n`./target/release/cve_2021_44228_scanner --path /path/to/scan`\n\n2. Scan a directory and output results in JSON format:\n\n`./target/release/cve_2021_44228_scanner --path /path/to/scan --format json`\n\n3. Scan a directory using 8 threads:\n\n`./target/release/cve_2021_44228_scanner --path /path/to/scan --threads 8`\n\n## Output\n\nThe scanner provides two output formats:\n\n1. Text (default): A human-readable summary of the scan results.\n2. JSON: A detailed JSON output of all scan results, suitable for further processing or integration with other tools.\n\n## Performance Considerations\n\n- The scanner uses parallel processing to improve performance on multi-core systems.\n- For large directories with many files, increasing the number of threads may improve scanning speed.\n- Scanning speed may be limited by I/O performance, especially when dealing with many small files or scanning from a network drive.\n\n## Limitations\n\n- The scanner identifies potential vulnerabilities based on known patterns. It may produce false positives or miss sophisticated obfuscated vulnerabilities.\n- Only JAR and class files are scanned. Other file types are ignored.\n- The scanner does not decompile or deeply analyze the bytecode, which may limit its ability to detect certain vulnerability variations.\n\n## Contributing\n\nContributions to improve the scanner are welcome. Please follow these steps:\n\n1. Fork the repository\n2. Create a new branch for your feature\n3. Commit your changes\n4. Push to your branch\n5. Create a new Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Disclaimer\n\nThis tool is provided as-is for informational and educational purposes only. It should not be considered as a comprehensive security solution. Always consult with cybersecurity professionals and perform thorough testing in controlled environments.\n\n## Acknowledgments\n\n- The Rust community for providing excellent libraries and tools\n- The cybersecurity community for their continuous efforts in identifying and mitigating vulnerabilities\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyezzfusl%2Frustylog4jguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyezzfusl%2Frustylog4jguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyezzfusl%2Frustylog4jguard/lists"}