Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

microsoft/agent-academy
main @ 3c898e2
5
Fixes
0
CVEs
HIGH
Peak severity
25.0%
Coverage
Highlights
Privilege Escalation: 3 prior fixes. Scrutinize any change in this area.
GitHub: most-fixed (3 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Command Injection: The use of shell-evaluating execution sinks like `execSync` during build-time plugin execution allows shell command injection via untrusted inputs (such as git paths). Utilizing direct process execution like `execFileSync` prevents shell evaluation of arguments.
Privilege Escalation: Default configuration of GITHUB_TOKEN in workflows can provide broad write permissions. Failing to pin explicit, minimal scopes (e.g., read-only access for validation checks) allows compromised runner environments or malicious inputs to abuse high-privilege operations.