Type: docs Makes the version stamps, Compatible Models footers and locale README badges say only what has been checked. Every claim below was checked against `https://code.claude.com/docs/en/<page>.md` or the raw changelog (2.1.303–2.1.322), not written from memory. ## Part A: English footers at 2.1.310 / 2.1.302 Each file's behavioural claims were checked against every changelog entry after its stamp, up to 2.1.322, and against the current docs. A stamp moves only when every claim checks out. | File | Claims checked | Fixes | Sources | New stamp | |---|---|---|---|---| | `INDEX.md` | ~75: AGENTS.md rule (v2.1.277); skill/agent/MCP install paths; `/mcp__github__list_prs`; 5 hook types, 33 events, task-tool model note; `--plugin-dir`; checkpoint menu (6 options); `/workflows`, ultracode (v2.1.284), size guideline; 6 permission modes; `/loop` and the cron tools; Chrome; Remote Control; `SendMessage`/`ListAgents`/`notify_when_idle`; CLI flags | 1. Workflow size: medium aims for fewer than 10 agents only since v2.1.271 (15 before), and the default is small on a Pro plan. 2. dontAsk: file reads inside the working directories also run, as do *most* calls a `permissions.allow` rule or a `PreToolUse` hook approves (neither can approve critical-path `rm`/`rmdir` or network-path reads), and an installed mod can approve some calls. No version is given: the changelog doesn't say when a mod's `tool.check` allow arrived (it is already referenced in 2.1.290, 2.1.292 and 2.1.299). 3. `SendMessage` also reaches sessions on other machines and in the cloud, from a session connected to Remote Control with a claude.ai sign-in; a cloud session can't answer with `SendMessage`. The L383 use-case column now says the same. 4. The `--model` list adds the Fable models. 5. Plan mode: "Read-only analysis" → researches and proposes, runs shell commands to explore, edits blocked until the plan is approved. | [workflows#set-a-size-guideline](https://code.claude.com/docs/en/workflows#set-a-size-guideline) ("The default is `medium`, or `small` when you're signed in on a Pro plan with Claude Code v2.1.271 or later"); CL 2.1.219 ("aim for fewer than 15 agents"), CL 2.1.271 ("lowered the medium size guideline from 15 to 10 agents"); [permission-modes](https://code.claude.com/docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode) ("a mod you installed can still approve some of those calls"; "Claude still runs … file reads inside your working directories and read-only Bash commands"; "It also denies the built-in `AskUserQuestion` tool even if your allow rules match it"; "An allow rule or `PreToolUse` hook can't approve these: Recognized `rm` and `rmdir` critical-path removals … Reads from a network path"); CL 2.1.292 ("Fixed a plugin's `tool.check` hook answering allow running a tool…"), CL 2.1.299 ("…that a `PreToolUse` hook or a mod's `tool.check` hook allowed"); [permission-modes#analyze-before-you-edit-with-plan-mode](https://code.claude.com/docs/en/permission-modes#analyze-before-you-edit-with-plan-mode) ("Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source. Except in interactive terminal sessions with bypass permissions available, edits stay blocked until you approve the plan."); [cross-session-messaging](https://code.claude.com/docs/en/cross-session-messaging) ("reach your sessions on other machines or in the cloud"; "from a session that is connected to Remote Control, which needs a claude.ai sign-in"; "A cloud session … can't use `SendMessage` to answer a message from another machine"); model-config. The "device card" line checked out against [whats-new/2026-w34](https://code.claude.com/docs/en/whats-new/2026-w34). | **2.1.322** | | `LEARNING-ROADMAP.md` | 33 hook events / 5 types; 6 built-in subagents (Explore, Plan, General-purpose, claude, statusline-setup, claude-code-guide); 60+ commands (commands page has 121 rows); `/design` (v2.1.265); `/plan`, `/rewind`, `/loop 5m`, `/schedule`; 6 permission modes (Manual since v2.1.200); Alt+T; skill `effort`/`shell`; plugin `workflows`/`channels`/`dependencies`; agent-teams env var; `claude mcp add --transport http`; `-r`, `--max-turns`, `--output-format json`; all 17 source links resolve | 1. Remote Control: "generally available" → "out of research preview", the docs' own wording. 2. Extended thinking (L368, Exercise 3, checklist): Opus 5.5, Sonnet 5.5, Haiku 5.5 and the Fable models always use extended thinking, so the exercise uses `/effort` and scopes Alt+T / Option+T to models that allow turning thinking off. 3. Exercise 4: checkpoints are automatic and unnamed, so step 1 no longer creates a named "Clean state" checkpoint and step 5 says which one to `/rewind` to. | [whats-new/2026-w34](https://code.claude.com/docs/en/whats-new/2026-w34): "Any machine running `claude remote-control` now shows up as a device card at the top of the Code tab in the Claude app. Remote Control is also out of research preview."; [interactive-mode](https://code.claude.com/docs/en/interactive-mode): Alt+T "Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking."; [model-config](https://code.claude.com/docs/en/model-config): "the effort level is the primary control for how much thinking happens"; [checkpointing](https://code.claude.com/docs/en/checkpointing): "Every prompt you send that starts a turn creates a new checkpoint" | **2.1.322** | | `resources.md` | Adaptive reasoning on Opus 4.7+, Sonnet 5+, Haiku 5.5 and the Fable models; permission modes; 33 hook events; `/loop` and cron; 7 memory tiers; Chrome; keybinding chords; Code Review; Monitor (2.1.98); `/goal` and `claude agents` (2.1.139); `--json` (2.1.145); all links | none needed | model-config, hooks, memory, agent-view, changelog | **stays 2.1.310**: L253 gives `/run`, `/verify`, `/run-skill-generator` as "(v2.1.145+)". Neither the changelog, the v2.1.145 release notes, the skills/commands docs nor the what's-new pages for weeks 19–22 give a version. | | `03-skills/claude-md/SKILL.md` | `name`/`description` frontmatter, `$ARGUMENTS`; CLAUDE.md locations and loading; "under 200 lines"; AGENTS.md gates (v2.1.277, v2.1.281), blocking files, `/config` Project instructions values and default; `@AGENTS.md`/symlink fallback; `.claude/agents/` | L196: the list of cases where AGENTS.md isn't read now includes a disabled built-in plugin, and limits the upgrade case to "in some cases" after upgrading from v2.1.276 or earlier | [memory#when-agents-md-support-is-unavailable](https://code.claude.com/docs/en/memory#when-agents-md-support-is-unavailable): "You used `/plugin` to disable the built-in plugin that reads `AGENTS.md`"; "In some cases, it's your first session after you upgrade from v2.1.276 or earlier" | **stays 2.1.302**: no primary source states L24 ("~150-200 instructions", "system prompt already uses ~50") or L214 (the system reminder says CLAUDE.md "may or may not be relevant") | | `07-plugins/devops-automation/README.md` | `--plugin-dir` install; commands; agents; hooks; MCP; workflow; source URLs (all 200) | none: the stale claims need a design decision (below) | [plugins/components](https://code.claude.com/docs/en/plugins/components): "Save a command at `commands/<file>.md` and it becomes `/<plugin>:<file>`"; [plugins-reference](https://code.claude.com/docs/en/plugins-reference) standard layout: "Hooks \| `hooks/hooks.json`", "MCP servers \| `.mcp.json`" | **stays 2.1.302**: bare `/deploy`, `/rollback`, `/status` (`/status` is also a built-in), `/incident`; `hooks/*.js` are never registered (no `hooks/hooks.json`); `mcp/kubernetes-config.json` never loads (no `.mcp.json` or `mcpServers`) | | `07-plugins/documentation/README.md` | same | none | same | **stays 2.1.302**: bare command names; `mcp/github-docs-config.json` never loads, so the `GITHUB_TOKEN` setup has no effect | | `07-plugins/pr-review/README.md` | same | none | same | **stays 2.1.302**: bare command names; `hooks/pre-review.js` is not registered; `mcp/github-config.json` never loads | No changelog entry from 2.1.303 to 2.1.322 touched the plugin READMEs or SKILL.md. Their problems predate the stamps, and #209 already listed the hook/MCP files that never load. **Locale copies:** the same factual fixes went into every locale with the same sentence. That's dontAsk and plan mode in all six INDEX files; workflow size in fa and ko; `SendMessage` and the use-case column in fa and ko; the `--model` list in fa and ko; "generally available" in fa and ko LEARNING-ROADMAP; the extended-thinking exercise/checklist and the checkpoint exercise in all six LEARNING-ROADMAP copies; the AGENTS.md cases in all six SKILL.md copies. Locale stamps were not bumped. INDEX and LEARNING-ROADMAP stay at 2.1.310 in every locale, and the SKILL.md copies keep their footers. ## Part B: Compatible Models footers The new list is **Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, Claude Haiku 4.5**. It is used on root docs and module pages alike, and it's the README FAQ's list, so the footers and the FAQ no longer disagree. Why one list for both file types: STYLE_GUIDE's footer rule ("List all compatible models") applies to both. A shorter "current models only" list on module pages would break that rule. Justification from [model-config](https://code.claude.com/docs/en/model-config): - **Current models:** "| Anthropic API | Opus 5.5 | Sonnet 5.5 | Haiku 5.5 |"; "the `fable` alias resolves to Fable 5 in Claude apps gateway sessions and to Fable 5.2 everywhere else"; "Fable 5.2 requires Claude Code v2.1.321 or later". - **Older models still in use:** - "**Fable 5.1 or Fable 5**: select it by model ID." - "| Claude Platform on AWS | Opus 5.5 | Sonnet 4.6 | Haiku 4.5 |". - "biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8". - "**Sonnet 5.5**: cybersecurity-flagged requests re-run on Sonnet 5." - **None are retired.** The [models overview](https://platform.claude.com/docs/en/about-claude/models/overview) that model-config links marks only Opus 4.1, Opus 4 and Sonnet 4 as "retired". All eleven listed models appear there without that mark. Scope: 336 lines in 331 files. The changed lines are the `**Compatible Models**` lines (92, some of them in locale files) and every localized label (`호환 모델`, `مدلهای سازگار`, `Các Mô Hình Tương Thích`, `Сумісні моделі`, `対応モデル`, `互換モデル`, `兼容模型`), plus the italic `*対応:…*` / `*Для …*` / `*适用于 …*` lines in the ja/uk/zh concepts guides. Labels, separators (`, ` `、` `، `) and locale stamps are unchanged. The README FAQ lines and the 05-mcp `tool_reference` note are not footers and were left alone. The footer lines of `CHANGELOG.md`, `fa/CHANGELOG.md` and `ko/CHANGELOG.md` also carry the new list; only the footer line changed, not the entries. ## Part C: locale README badges Real state: the newest version that most (more than half) of the locale's ten module READMEs carry or exceed, backed by the sync commit that brought them there. A badge is marked **(partial)** when one or more of the locale's module READMEs has no version footer (never synced since its first translation), or when the locale is a condensed translation. A module synced to an older version than the badge doesn't make it partial on its own; the majority rule above already covers that. Only zh meets the rule (02-memory and 05-mcp have no footer, and #247 calls zh condensed). | Locale | Old badge / "latest" | Evidence | New | |---|---|---|---| | ja | 2.1.119 (badge, "latest", FAQ) | module footers: 3×2.1.322, 5×2.1.316, 1×2.1.310, 1×2.1.302; 8/10 ≥ 2.1.316 (#230); #247 carried only the sections ja has | **2.1.316** (Oct 2026) | | uk | 2.1.112 (FAQ line; no badge) | 3×2.1.322, 4×2.1.316, 1×2.1.310, 2×2.1.302; 7/10 ≥ 2.1.316 (#230) | **2.1.316** (Oct 2026) | | zh | 2.1.112 (badge, "latest", FAQ) | 2.1.316, 2.1.310 ×2, 2.1.302 ×2, 2.1.300 ×2, 2.1.278; 02 and 05 have no footer (untouched since the first translation); 7/10 ≥ 2.1.300 (#193); #247 was "condensed", model lists only | **2.1.300 (partial)** (Oct 2026): the badge, "latest" and FAQ lines say zh is condensed and that 02-memory and 05-mcp haven't been synced since the April 2026 translation | | ko | 2.1.310 | 5×2.1.322, 5×2.1.310; #228 synced ko to 2.1.310, and #247 says 2.1.316 "was not backfilled" | **2.1.310** (unchanged) | | fa | 2.1.310 | 5×2.1.322, 5×2.1.316; #241 "syncs the translation from v2.1.310 to v2.1.316"; #247 carried only the 2.1.322 P1 changes | **2.1.316** (Oct 2026) | | vi | none (README has no badge or version line) | 4×2.1.322, 6×2.1.316 | no change | Months come from the docs changelog: 2.1.300 was released October 14, 2026 and 2.1.316 October 31, 2026. The README *footers* in fa/ja/ko/uk/zh stay at 2.1.322: #247 checked those files themselves, while the badge describes the whole locale. ## Deliberately left - **Stamps not bumped:** `resources.md` (2.1.310), `03-skills/claude-md/SKILL.md` and the three plugin READMEs (2.1.302), for the reasons in the Part A table. - **Example plugins:** the fix is a design choice between wiring up `hooks/hooks.json` / `.mcp.json` and rewording the READMEs, and renaming commands to `/<plugin>:<name>` touches seven languages plus `07-plugins/README.md` (bare `/review-pr`). It needs a follow-up issue. - **Same unverifiable version elsewhere:** `03-skills/README.md` also said `/run-skill-generator` is v2.1.145+. Handled by #262, now merged into this branch from `main`. - **Older `--model` lists:** ja/uk/vi/zh INDEX have pre-5.x lists (e.g. "Sonnet 4.6, Opus 4.7, Haiku 4.5"). That isn't the English sentence, so it belongs to a locale sync. ## Follow-ups - **LEARNING-ROADMAP `/effort` line (review r3 N13):** line 368 can read as if `/effort` applies only to the models that always use extended thinking; per model-config's effort table it also works on Opus 5, Sonnet 5 and Opus 4.8. Not wrong; clarify in the next pass. - **Compatible Models scope (review S3):** Opus 4.6 is Microsoft Foundry's current `opus`, and Sonnet 4.5 is the current `sonnet` on Bedrock, Google Cloud's Agent Platform and Foundry (deprecated, retiring Nov 30, 2026), per model-config's alias table. Both are still in use, so either add them to the FAQ and every footer (Sonnet 4.5 marked deprecated), or define the list's scope in STYLE_GUIDE (e.g. the models the aliases resolve to on the Anthropic API plus older models in active use) and cite the deprecations table. - **Model order (review N8):** the list puts Opus 4.8 after Sonnet 4.6. Grouping by family (Fable, Opus 5.5/5/4.8, Sonnet, Haiku) would read better; the order is shared by STYLE_GUIDE, the FAQ and every footer, so change it everywhere at once. - **Example plugins:** the follow-up issue proposed above. ## Validation - `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid pre-commit run --files <338 changed files>`: every hook passes, including link-check (246 URLs per language). The Mermaid hooks can't install here (`language: node must have package.json or additional_dependencies`, the same failure #247 reported). `python scripts/check_mermaid.py --strict` was run directly instead: Pele 1.6.0 rendered all 416 blocks. - `python scripts/check_cross_references.py`: all valid (674 files). - Review fix round 1 (18 files): the same `pre-commit run --files` passes every hook (Mermaid hooks skipped as above; no Mermaid block was touched), and the cross-reference check is still valid after merging `main`. - Review fix round 2 (14 files: the extended-thinking wording in all 7 LEARNING-ROADMAP files, the dontAsk line in all 7 INDEX files): `pre-commit run --files` passes every hook (Mermaid hooks skipped; no Mermaid block touched), and the cross-reference check is valid (674 files) after merging `main` again (#257). - Pre-push secret scan: it flagged `06-hooks/README.md:1683` (en, fa, vi), a false positive. The `sk-…{20,}` pattern matches the docs anchor `hooks#pretooluse-ask-decisions-in-auto-mode`, which has been on `main` since11b2ae3(en),c2f92c8(fa) and8de1820(vi), and is not on a line this PR changes. The PR's added lines have no secret-pattern matches. Closes #256
12 KiB
보안 정책
개요
Claude How To 프로젝트의 보안은 매우 중요합니다. 이 문서는 프로젝트의 보안 관행을 설명하고, 보안 취약점을 책임감 있게 신고하는 방법을 안내합니다.
지원 버전
다음 버전에 대해 보안 업데이트를 제공합니다.
| Version | Status | Support Until |
|---|---|---|
| Latest (main) | ✅ Active | Current + 6 months |
참고: 이 프로젝트는 교육용 가이드 프로젝트이므로, 일반적인 버전 지원보다는 최신 모범 사례와 문서 보안을 유지하는 데 중점을 둡니다. 업데이트는 메인 브랜치에 직접 적용됩니다.
보안 관행
코드 보안
-
의존성 관리
- 모든 Python 의존성은
requirements.txt에 고정되어 있습니다. - Dependabot 및 수동 검토를 통해 정기적으로 업데이트합니다.
- 모든 커밋에서 Bandit을 사용해 보안 스캔을 수행합니다.
- 보안 검사를 위한 pre-commit 훅을 사용합니다.
- 모든 Python 의존성은
-
코드 품질
- Ruff를 사용한 린트 검사가 일반적인 문제를 탐지합니다.
- mypy를 통한 타입 검사는 타입 관련 취약점을 방지합니다.
- pre-commit 훅이 표준 준수를 강제합니다.
- 모든 변경 사항은 병합 전에 검토됩니다.
-
접근 제어
main브랜치에 브랜치 보호가 적용됩니다.- 병합 전 필수 리뷰가 필요합니다.
- 병합 전에 상태 검사(Status Checks)가 모두 통과해야 합니다.
- 저장소 쓰기 권한은 제한적으로 부여됩니다.
문서 보안
-
예제에 비밀 정보 포함 금지
- 예제에 포함된 모든 API 키는 자리 표시자(placeholder)입니다.
- 자격 증명은 절대 하드코딩되지 않습니다.
.env.example파일은 필요한 변수를 보여줍니다.- 비밀 정보 관리에 대한 명확한 경고를 제공합니다.
-
보안 모범 사례
- 예제는 안전한 구현 패턴을 보여줍니다.
- 보안 경고를 문서에서 강조 표시합니다.
- 공식 보안 가이드 링크를 제공합니다.
- 관련 섹션에서 자격 증명 처리 방법을 설명합니다.
-
콘텐츠 검토
- 모든 문서는 보안 문제 여부를 검토합니다.
- 기여 가이드라인에 보안 고려 사항이 포함됩니다.
- 외부 링크와 참고 자료를 검증합니다.
의존성 보안
-
스캔
- Bandit이 모든 Python 코드의 취약점을 검사합니다.
- GitHub 보안 경고를 통해 의존성 취약점을 확인합니다.
- 정기적으로 수동 보안 감사를 수행합니다.
-
업데이트
- 보안 패치는 신속하게 적용됩니다.
- 메이저 버전은 신중하게 평가합니다.
- 변경 이력에는 보안 관련 업데이트가 포함됩니다.
-
투명성
- 보안 업데이트는 커밋에 문서화됩니다.
- 취약점 공개는 책임감 있게 처리합니다.
- 필요 시 공개 보안 권고문을 발행합니다.
취약점 신고
중요하게 다루는 보안 이슈
다음과 같은 보고를 환영합니다.
- 스크립트 또는 예제 코드의 취약점
- Python 패키지의 의존성 취약점
- 코드 예제의 암호화 관련 문제
- 문서 내 인증/인가 취약점
- 설정 예제의 데이터 노출 위험
- 인젝션 취약점 (SQL, 명령어 등)
- SSRF/XXE/경로 순회(Path Traversal) 문제
범위에 포함되지 않는 보안 이슈
다음 항목은 이 프로젝트의 범위에 포함되지 않습니다.
- Claude Code 자체의 취약점(Anthropic에 신고)
- 외부 서비스 또는 라이브러리의 문제(원 프로젝트에 신고)
- 사회공학 또는 사용자 교육 관련 문제(이 가이드에는 해당 없음)
- 개념 증명(PoC) 없이 제시된 이론적 취약점
- 공식 채널을 통해 이미 보고된 의존성 취약점
신고 방법
비공개 신고 (권장)
민감한 보안 이슈는 GitHub의 비공개 취약점 신고 기능을 이용해 주세요.
- 방문: https://github.com/luongnv89/claude-howto/security/advisories
- "Report a vulnerability" 클릭
- 취약점 세부 정보 입력
- 다음 정보를 포함:
- 취약점에 대한 명확한 설명
- 영향을 받는 구성 요소(파일, 섹션, 예제)
- 잠재적 영향
- 재현 방법(해당하는 경우)
- 제안하는 수정 방법(있는 경우)
이후 진행 절차
- 48시간 이내에 접수 사실을 확인합니다.
- 취약점을 조사하고 심각도를 평가합니다.
- 수정 방안을 함께 마련합니다.
- 공개 일정을 조율합니다.
- 원하실 경우 보안 권고문에 기여자로 이름을 표기합니다.
공개 신고
민감하지 않거나 이미 공개된 이슈의 경우:
security라벨을 사용하여 GitHub Issue를 생성합니다.- 다음 정보를 포함합니다.
- 제목:
[SECURITY]뒤에 간단한 설명 - 상세 설명
- 영향을 받는 파일 또는 섹션
- 잠재적 영향
- 제안하는 수정 방법
- 제목:
취약점 대응 절차
평가 (24시간 이내)
- 보고서 접수를 확인합니다.
- CVSS v3.1을 사용하여 심각도를 평가합니다.
- 범위 내 이슈인지 확인합니다.
- 초기 평가 결과를 전달합니다.
수정 개발 (1~7일)
- 수정 사항을 개발합니다.
- 수정 사항을 검토하고 테스트합니다.
- 보안 권고문을 작성합니다.
- 릴리스 노트를 준비합니다.
공개 (심각도에 따라 상이)
치명적(Critical) (CVSS 9.0-10.0)
- 즉시 수정 버전 배포
- 공개 보안 권고문 발행
- 신고자에게 24시간 사전 통지
높음(High) (CVSS 7.0-8.9)
- 48~72시간 내 수정 버전 배포
- 신고자에게 5일 사전 통지
- 릴리스 시 공개 권고문 발행
보통(Medium) (CVSS 4.0-6.9)
- 다음 정기 업데이트에 포함
- 릴리스 시 공개 권고문 발행
낮음(Low) (CVSS 0.1-3.9)
- 다음 정기 업데이트에 포함
- 릴리스 시 권고문 발행
게시
발행되는 보안 권고문에는 다음이 포함됩니다.
- 취약점 설명
- 영향을 받는 구성 요소
- 심각도 평가(CVSS 점수)
- 수정 버전
- 우회 방법(해당하는 경우)
- 신고자 크레딧(동의한 경우)
신고자를 위한 모범 사례
신고 전
- 이슈 검증: 일관되게 재현 가능한가요?
- 기존 이슈 검색: 이미 보고된 문제인가요?
- 문서 확인: 안전한 사용 방법이 안내되어 있나요?
- 수정안 테스트: 제안한 수정 방법이 실제로 동작하나요?
신고 시
- 구체적으로 작성: 정확한 파일 경로와 줄 번호를 제공하세요.
- 맥락 제공: 왜 이것이 보안 문제인지 설명하세요.
- 영향 설명: 공격자가 무엇을 할 수 있는지 설명하세요.
- 재현 절차 제공: 어떻게 재현할 수 있는지 설명하세요.
- 수정안 제안: 어떻게 수정할 수 있을지 제안하세요.
신고 후
- 인내심을 가져주세요: 프로젝트의 리소스는 제한적입니다.
- 신속히 응답해 주세요: 후속 질문에 빠르게 답변해 주세요.
- 기밀을 유지해 주세요: 수정 전에는 공개하지 말아 주세요.
- 조율을 존중해 주세요: 공개 일정에 협조해 주세요.
보안 헤더 및 구성
저장소 보안
- 브랜치 보호: 메인 브랜치 변경 시 2명의 승인 필요
- 상태 검사: 모든 CI/CD 검사를 통과해야 함
- CODEOWNERS: 주요 파일에 대한 지정 리뷰어 운영
- 서명된 커밋: 기여자에게 권장
개발 보안
# Install pre-commit hooks
pre-commit install
# Run security scans locally
bandit -c pyproject.toml -r scripts/
mypy scripts/ --ignore-missing-imports
ruff check scripts/
의존성 보안
# Check for known vulnerabilities
pip install safety
safety check
# Or use pip-audit
pip install pip-audit
pip-audit
기여자를 위한 보안 가이드라인
예제 작성 시
-
비밀 정보를 절대 하드코딩하지 마세요
# ❌ Bad api_key = "sk-1234567890" # ✅ Good api_key = os.getenv("API_KEY") -
보안 영향을 경고하세요
⚠️ **Security Note**: Never commit `.env` files to git. Add to `.gitignore` immediately. -
안전한 기본값을 사용하세요
- 기본적으로 인증을 활성화합니다.
- 가능한 경우 HTTPS를 사용합니다.
- 입력값을 검증하고 정제합니다.
- 매개변수화된 쿼리를 사용합니다.
-
보안 고려 사항을 문서화하세요
- 보안이 중요한 이유를 설명합니다.
- 안전한 패턴과 안전하지 않은 패턴을 비교하여 보여줍니다.
- 신뢰할 수 있는 공식 자료를 연결합니다.
- 경고 사항을 눈에 띄게 표시합니다.
기여 내용 검토 시
-
노출된 비밀 정보를 확인하세요
- 일반적인 패턴(
api_key=,password=등)을 검사합니다. - 설정 파일을 검토합니다.
- 환경 변수를 확인합니다.
- 일반적인 패턴(
-
안전한 코딩 관행을 검증하세요
- 하드코딩된 자격 증명이 없는지 확인
- 적절한 입력 검증 수행
- 안전한 인증 및 권한 부여 적용
- 안전한 파일 처리 구현
-
보안 영향을 테스트하세요
- 악용될 가능성이 있는가?
- 최악의 시나리오는 무엇인가?
- 고려해야 할 예외 상황이 있는가?
보안 리소스
공식 표준
Python 보안
의존성 관리
일반 보안
보안 권고문 아카이브
Past security advisories are available in the GitHub Security Advisories tab.
문의
보안 관련 질문이나 보안 관행에 대한 논의를 원하시는 경우:
- 비공개 보안 신고: GitHub의 비공개 취약점 신고 기능 사용
- 일반 보안 질문:
[SECURITY]태그를 사용하여 Discussion 생성 - 보안 정책 피드백:
security라벨을 사용하여 Issue 생성
감사의 말씀
프로젝트의 보안을 유지하는 데 도움을 주는 보안 연구자와 커뮤니티 구성원들께 깊이 감사드립니다. 책임감 있게 취약점을 신고해 주신 기여자는 보안 권고문에 이름이 기재됩니다(익명성을 원하지 않는 경우).
정책 업데이트
이 보안 정책은 다음 경우에 검토 및 업데이트됩니다.
- 새로운 취약점이 발견될 때
- 보안 모범 사례가 발전할 때
- 프로젝트 범위가 변경될 때
- 최소 연 1회 정기 검토 시
최종 업데이트: 2026년 8월 25일 Claude Code 버전: 2.1.245 출처:
- https://code.claude.com/docs/en/overview 호환 모델: Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, Claude Haiku 4.5 다음 검토 예정: 2027년 4월
Claude How To의 보안 유지에 도움을 주셔서 감사합니다! 🔒