Skip to content

fix(security): remove auto-update RCE in legacy/beta Python agent (#9671) - #5

Open
TheDude4224 wants to merge 1 commit into
mainfrom
fix/9671-remove-autoupdate-rce
Open

fix(security): remove auto-update RCE in legacy/beta Python agent (#9671)#5
TheDude4224 wants to merge 1 commit into
mainfrom
fix/9671-remove-autoupdate-rce

Conversation

@TheDude4224

Copy link
Copy Markdown
Member

Board #9671 (Launch P0). Removes the fetch-and-exec auto-update path.

…9671)

check_for_update() polled GET /api/v1/agents/version for a coordinator-supplied
{version,url}, downloaded that URL over the network with no signature check and
no cert/host pinning (only a substring "sanity check" for def register/def
poll_loop), overwrote the running file and os.execv'd the interpreter. A MITM on
the download or a compromised/rogue coordinator = arbitrary code execution on
every provider box.

Fix: remove the fetch-and-exec path entirely. check_for_update()/auto_update_loop()
are now inert no-ops; the startup call and the hourly auto_update thread are
removed from __main__. Core agent behaviour (register, heartbeat, ws_loop,
poll_loop) is unchanged. Aligns with the canonical myai-agent PyPI package, which
has no self-update; updates ship out-of-band via installer / pip.

Board: #9671 (Launch P0). py_compile passes.
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