🇰🇷 한글 설명
Anthropic TypeScript SDK의 BetaLocalFilesystemMemoryTool이 메모리 파일을 세계적으로 읽을 수 있는 권한(0o666)과 디렉토리를 세계적으로 쓸 수 있는 권한(0o777)으로 생성하여, 공유 호스트의 로컬 공격자가 에이전트 상태를 읽거나 컨테이너 환경에서 메모리 파일을 수정할 수 있습니다. 0.91.1 버전에서 패치되었습니다.
💡 쉬운 설명
Claude의 TypeScript 라이브러리가 저장된 정보를 모두가 볼 수 있게 저장했습니다. 같은 컴퓨터나 컨테이너의 다른 프로그램이 이를 읽거나 수정할 수 있습니다.
🇺🇸 원문 (English)
Claude SDK for TypeScript provides access to the Claude API from server-side TypeScript or JavaScript applications. From version 0.79.0 to before version 0.91.1, the BetaLocalFilesystemMemoryTool in the Anthropic TypeScript SDK created memory files and directories using the Node.js default modes (0o666 for files, 0o777 for directories), leaving them world-readable on systems with a standard umask and world-writable in environments with a permissive umask such as many Docker base images. A local attacker on a shared host could read persisted agent state, and in containerized deployments could modify memory files to influence subsequent model behavior. This issue has been patched in version 0.91.1.
📍 영향받는 시스템
Anthropic TypeScript SDK v0.79.0 ~ v0.91.0 (BetaLocalFilesystemMemoryTool 사용)
⚔️ 공격 벡터
로컬 파일 시스템 권한 부족을 악용한 메모리 파일 접근 및 조작
🛡️ 대응 방법
@anthropic-ai/sdk를 0.91.1 이상으로 업데이트
🔧 검증 코드
v0.91.1 이상이 표시되면 안전, 이하 버전이면 즉시 업데이트
npm list @anthropic-ai/sdk 2>/dev/null | grep @anthropic-ai/sdk