Skip to content

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

Open
123456wda wants to merge 1 commit into
shareAI-lab:mainfrom
123456wda:fix/s09-s10-s11-missing-dev-null-check
Open

fix: add missing "> /dev/" dangerous command check in s09/s10/s11#286
123456wda wants to merge 1 commit into
shareAI-lab:mainfrom
123456wda:fix/s09-s10-s11-missing-dev-null-check

Conversation

@123456wda
Copy link
Copy Markdown

@123456wda 123456wda commented May 17, 2026

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

  • python -m py_compile agents/s09_agent_teams.py passes
  • python -m py_compile agents/s10_team_protocols.py passes
  • python -m py_compile agents/s11_autonomous_agents.py passes
  • Verified blocklist now matches s01/s06/s12/s_full

s09_agent_teams.py, s10_team_protocols.py, and s11_autonomous_agents.py
were missing the "> /dev/" entry in their 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.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant