learn-claude-code icon indicating copy to clipboard operation
learn-claude-code copied to clipboard

fix: add missing "> /dev/" dangerous command check in s09/s10/s11

Open 123456wda opened this issue 6 months ago • 1 comments

Summary

  • s09_agent_teams.py, s10_team_protocols.py, and s11_autonomous_agents.py are 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/sda could 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.py passes
  • [x] python -m py_compile agents/s10_team_protocols.py passes
  • [x] python -m py_compile agents/s11_autonomous_agents.py passes
  • [x] Verified blocklist now matches s01/s06/s12/s_full

123456wda avatar May 17 '26 07:05 123456wda

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

vercel[bot] avatar May 17 '26 07:05 vercel[bot]