agents-md-generator
Audited by Socket on May 18, 2026
1 alert found:
AnomalyThe batch script serves as a launcher for a PowerShell script, constructing and forwarding arguments in a way that could be exploited if the invoked PS script is untrusted or poorly handled. The use of ExecutionPolicy Bypass and direct forwarding of command-line arguments to PowerShell represents a potential security risk, particularly if detect-agent-context.ps1 processes or trusts these inputs without proper validation. There is no explicit malware or backdoor behavior in this fragment, but it introduces a risk of command-line injection or unintended PowerShell execution depending on the PS script’s handling of parameters. Recommended mitigations include validating and sanitizing inputs at the batch level, avoiding ExecutionPolicy Bypass, constraining arguments to expected patterns, implementing signed PS scripts, and auditing detect-agent-context.ps1 for secure handling of incoming parameters.