{"id":16485820,"url":"https://github.com/anthonyg-1/log4jvulnscripts","last_synced_at":"2026-06-14T10:32:32.949Z","repository":{"id":132216132,"uuid":"438303464","full_name":"anthonyg-1/Log4jVulnScripts","owner":"anthonyg-1","description":"A collection of PowerShell scripts to detect and mitigate the log4j vulnerability on Windows servers with Sitecore installed.","archived":false,"fork":false,"pushed_at":"2021-12-16T16:22:15.000Z","size":88,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T14:46:52.176Z","etag":null,"topics":["log4j","log4shell","powershell","sitecore"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/anthonyg-1.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":"2021-12-14T15:26:03.000Z","updated_at":"2022-04-25T18:52:33.000Z","dependencies_parsed_at":"2024-03-30T19:01:17.499Z","dependency_job_id":null,"html_url":"https://github.com/anthonyg-1/Log4jVulnScripts","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/anthonyg-1%2FLog4jVulnScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyg-1%2FLog4jVulnScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyg-1%2FLog4jVulnScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyg-1%2FLog4jVulnScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonyg-1","download_url":"https://codeload.github.com/anthonyg-1/Log4jVulnScripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241262280,"owners_count":19936046,"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":["log4j","log4shell","powershell","sitecore"],"created_at":"2024-10-11T13:27:23.295Z","updated_at":"2026-06-14T10:32:27.918Z","avatar_url":"https://github.com/anthonyg-1.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Log4jVulnScripts\n\nThis repository contains PowerShell scripts that serve to detect and mitigate CVE-2021-44228 (Log4j vulnerability) on Windows systems with Sitecore installed per the steps outlined in the following: https://solr.apache.org/security.html#apache-solr-affected-by-apache-log4j-cve-2021-44228. \n\nNote that this mitigation applies only to Log4j version 2.10 or higher. More on that here: https://blog.malwarebytes.com/exploits-and-vulnerabilities/2021/12/log4j-zero-day-log4shell-arrives-just-in-time-to-ruin-your-weekend/\n\nThis MitigateLog4jVuln.ps1 script takes two parameters; target drive letter and a switch parameter to instruct this script to restart the service. If no drive letter is specified, all file system drives are searched.\n\nUse at your own risk, optimally in a test environment before attempting to execute on several servers at once. Pull requests welcome and encouraged!\n\n### Requirements\nRequires PowerShell 4 or above.\n\n### Usage\n#### Mitigation\n```powershell\n# Searches all file system drives for solr.in.cmd and applies mitigation without restarting the service:\n.\\MitigateLog4jVuln.ps1\n\n# Searches all file system drives for solr.in.cmd, applies mitigation, and restarts service:\n.\\MitigateLog4jVuln.ps1 -RestartService\n\n# Searches only the E: drive for solr.in.cmd, applies mitigation, and restarts service:\n.\\MitigateLog4jVuln.ps1 -DriveLetter E -RestartService\n```\n#### Detection\n```powershell\n# Searches all file system drives for solr.in.cmd and determines if mitigation needs to be applied.\n.\\DetectLog4jVuln.ps1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyg-1%2Flog4jvulnscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonyg-1%2Flog4jvulnscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyg-1%2Flog4jvulnscripts/lists"}