Claude Code는 수정되지 않은 세션 기록과 비밀을 일반 텍스트로 캐시합니다.
hackernews
|
|
📦 오픈소스
#claude
#claude code
#plaintext
#tip
#보안
#세션 기록
#캐시
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
Claude Code의 로컬 저장소인 ~/.claude/ 디렉터리가 공식적으로 문서화되지 않아 심각한 보안 및 개인정보 침해 우려가 제기되었습니다. 이 디렉터리는 전체 대화 기록, 입력한 프롬프트 내역, 토큰 사용량뿐만 아니라 도구 실행 결과에 포함된 민감한 비밀번호와 인증 정보까지 암호화 없이 평문 JSONL 파일 형태로 저장합니다. 사용자들은 데이터 저장 여부와 평문 노출 위험성을 인지할 방법이 전혀 없는 상태이며, 커뮤니티에서는 디렉터리 구조와 보안 영향을 다룬 상세한 가이드를 공식 문서에 반영할 것을 강력히 촉구하고 있습니다.
본문
[DOCS] ~/.claude/ directory is undocumented — community deep dive available for incorporation #43675 Description Documentation Type Missing documentation (feature not documented) Documentation Location Section/Topic ~/.claude/ directory — session storage, file formats, and security implications Current Documentation There is no documentation for the ~/.claude/ directory. What's Wrong or Missing? The ~/.claude/ directory is completely undocumented. Every Claude Code user has this directory on their machine. It contains: - Complete conversation history in plaintext JSONL (projects/ folder) - Every prompt ever typed ( history.jsonl ) - Sub-agent task descriptions ( .meta.json files) - Shell environment snapshots ( shell-snapshots/ ) - Usage statistics and token counts ( stats-cache.json ) - A Statsig stable ID — persistent anonymous identifier across sessions - A plugin blocklist refreshed remotely during active sessions - Abandoned agent task lists ( todos/ ) Users have no way to know what is stored, that storage is unencrypted plaintext, or that any secrets passing through tool results are written to disk. This is both a documentation gap and a security/privacy gap. Suggested Improvement Add a ~/.claude/ reference page to the official docs covering: - Full directory structure with explanation of each folder/file - File formats ( JSONL schema,meta.json , etc.) - What is stored and for how long - Security implications (plaintext storage, credential exposure risk) - How to read and interpret session files A detailed community-written guide already exists and is available as a starting point: Inside ~/.claude/: Structure is Not Security Impact High - Prevents users from using a feature Additional Context The linked community article was written by reading actual files from a real installation and verified against the actual directory structure. Multiple community members have noted it should be incorporated into official documentation.
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유