learn-claude-code
learn-claude-code copied to clipboard
fix: add missing "> /dev/" dangerous command check in s09/s10/s11
Summary
s09_agent_teams.py,s10_team_protocols.py, ands11_autonomous_agents.pyare missing the"> /dev/"entry in their_run_bash()dangerous command blocklist- This is present in s01, s06, s12, and s_full but was dropped when s09–s11 were written, creating a security regression where commands like
echo y > /dev/sdacould bypass the blocklist
Changes
| File | Change |
|---|---|
agents/s09_agent_teams.py |
Added "> /dev/" to dangerous list in _run_bash() |
agents/s10_team_protocols.py |
Added "> /dev/" to dangerous list in _run_bash() |
agents/s11_autonomous_agents.py |
Added "> /dev/" to dangerous list in _run_bash() |
Test plan
- [x]
python -m py_compile agents/s09_agent_teams.pypasses - [x]
python -m py_compile agents/s10_team_protocols.pypasses - [x]
python -m py_compile agents/s11_autonomous_agents.pypasses - [x] Verified blocklist now matches s01/s06/s12/s_full
@123456wda is attempting to deploy a commit to the crazyboym's projects Team on Vercel.
A member of the Team first needs to authorize it.