🇰🇷 한글 설명
agentscope 1.0.18, 1.0.19 버전의 RealtimeAgent 세션에서 execute_python_code 도구가 노출될 경우, 원격 WebSocket 사용자가 에이전트를 조종하여 서비스 환경 내에서 임의의 파이썬 코드를 실행할 수 있습니다. RealtimeAgent._acting 함수가 모델이 생성한 도구 호출을 별도의 승인이나 격리 과정 없이 Toolkit.call_tool_function으로 전달하기 때문에 발생합니다.
💡 쉬운 설명
해커가 채팅창을 통해 인공지능에게 명령을 내려, 인공지능이 돌아가고 있는 컴퓨터에서 마음대로 파이썬 프로그램을 실행하게 만들 수 있는 보안 결함입니다. 이를 통해 해커는 서버의 제어권을 탈취하거나 중요한 데이터를 훔칠 수 있습니다.
🇺🇸 원문 (English)
In agentscope 1.0.18, 1.0.19, and 1.0.19 when the RealtimeAgent session exposes execute_python_code as an available tool, a remote WebSocket user can prompt the agent to call that tool and run Python code in the service environment. In the validated path, RealtimeAgent._acting forwards the model-produced tool call to Toolkit.call_tool_function, which invokes execute_python_code without an additional approval or isolation boundary on that path.
📍 영향받는 시스템
agentscope 1.0.18, 1.0.19
⚔️ 공격 벡터
원격 WebSocket 연결을 통한 악의적인 프롬프트 주입 및 도구 호출 유도
🛡️ 대응 방법
해당 취약점이 해결된 최신 버전으로 업데이트하거나, RealtimeAgent 설정에서 execute_python_code 도구 노출을 차단하십시오.
🔧 검증 코드
출력된 버전이 1.0.18 또는 1.0.19인 경우 해당 취약점에 노출된 상태입니다.
pip show agentscope | grep Version