windows-infra-admin
Audited by Socket on Sep 23, 2026
2 alerts found:
SecurityAnomalyNo evidence of malware, data exfiltration, reverse shells, cryptomining, or obfuscated payloads is present. The primary security issue is the hardcoded predictable temporary password assigned to all enabled newly created accounts, which can permit unauthorized access if exposed. The script also performs privileged account deletion and status changes without confirmation and writes to an unchecked caller-specified log path. It should not be used without replacing the password with secure per-user generation or administrator-supplied credentials, enforcing stronger authorization and validation, and adding safeguards for destructive actions.
The fragment shows no clear malicious behavior or supply-chain payload. It is a high-privilege Group Policy management script that can make significant domain and local security-policy changes. Main concerns are insufficient validation and authorization, caller-controlled filesystem paths, fixed temporary files, possible policy misapplication, and the likely recursive Get-GPOReport function-name collision. It should be restricted to trusted administrators and corrected before production use.