agents-md-generator

Warn

Audited by Socket on May 18, 2026

1 alert found:

Anomaly
AnomalyLOW
scripts/detect-agent-context.cmd

The 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.

Confidence: 56%Severity: 60%
Audit Metadata
Analyzed At
May 18, 2026, 11:49 AM
Package URL
pkg:socket/skills-sh/thienanblog%2Fawesome-ai-agent-skills%2Fagents-md-generator%2F@279bd5f0b8131a263be9a92c5310fc751236f573
Security Audit — socket — agents-md-generator