Home›GitHub Copilot›ChatGPTやCopilotに「社内コード」を貼り付ける前に知っておきたい!AI利用で絶対にやってはいけない3つのこと
ChatGPTやCopilotに「社内コード」を貼り付ける前に知っておきたい!AI利用で絶対にやってはいけない3つのこと

ChatGPTやCopilotに「社内コード」を貼り付ける前に知っておきたい!AI利用で絶対にやってはいけない3つのことAs AI coding tools become standard practice, this article outlines three…

元記事を読むRead original articleqiita.com(新しいタブで開きます)(opens in a new tab)
AI要点サマリSummary highlight

AIコーディングツールの普及が進む中、社内コードや機密情報をChatGPT・CopilotなどのAIに貼り付けることで生じるセキュリティリスクと、絶対に避けるべき3つの行為を解説した記事。

As AI coding tools become standard practice, this article outlines three critical mistakes developers must avoid—such as pasting proprietary code into public AI services—to prevent serious security and compliance risks.

本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (qiita.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (qiita.com).

要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.

AIツールの日常化

ChatGPTやCopilotへ社内コードを貼り付ける行為は、機密情報を扱ううえで重大なリスクになり得る。開発者が避けるべきなのは、機密データ・個人情報の無断投入、AI生成コードの無検証マージ、フォールバック経路としての無承認AIツール活用の3つだ。

JetBrainsの2025年10月調査では、85%近くの開発者がAIコーディングツールを日常業務で使用している。2026年の調査では、従業員によるChatGPTへの入力のうち、機密データを含む割合が34.8%に達した。2023年の11%から3倍に増えている。

機密データ

コードだけでなく、ログやSQL、個人情報、社内会議録、測定データも無断で入力してはいけない。2023年のSamsungでは、3人のエンジニアが3週間以内にソースコード、社内会議録、チップ測定データをChatGPTへ貼り付けていたことが発覚し、全社でのChatGPT利用禁止に至った。

ChatGPTのFree、Plus、Teamプランでは、ユーザーの入力がデフォルトで学習データに使用される。EnterpriseとAPIのみ、Zero Data Retentionがデフォルトで提供されると説明されている。

無検証マージ

避けるべき2つ目の行為は、AIが生成したコードを検証せずにマージすることだ。AIツールからコードを得られることと、そのまま社内のコードへ取り込めることは分けて扱い、無検証でのマージを行わないことが求められる。

無承認AIツール

3つ目は、通常の手段が使えない場合などに、フォールバック経路として無承認のAIツールを利用することだ。速い、賢い、無料または安いという理由でコードやログ、SQLを貼り付ける場合でも、承認されていないツールを代替経路として使う行為は避ける必要がある。

AI Coding Tools Become Standard Practice

AI coding tools are becoming part of developers’ daily work, but entering internal code or confidential information into them can create serious security and compliance risks. The article identifies three practices developers must avoid: unauthorized submission of confidential or personal data, merging AI-generated code without verification, and using an unapproved AI tool as a fallback route.

A JetBrains survey from October 2025 found that nearly 85% of developers already used AI coding tools in their daily work. Developers may turn to ChatGPT or GitHub Copilot with code, logs, or SQL because the tools are fast, capable, and free or inexpensive, but convenience does not remove the risks surrounding submitted information.

Confidential Data and Personal Information

The first prohibited practice is entering confidential data or personal information without authorization. In 2023, Samsung discovered that three engineers had submitted source code, internal meeting records, and chip measurement data to ChatGPT within three weeks. The discovery led to a company-wide ban on ChatGPT use.

A 2026 survey reported that 34.8% of employee ChatGPT inputs contained confidential data. That figure was 11% in 2023.

The article also states that ChatGPT Free, Plus, and Team use user inputs as training data by default. According to the quoted plan distinction, only Enterprise and the API provide Zero Data Retention by default.

Unverified AI-Generated Code

The second practice to avoid is merging AI-generated code without verification. The article treats verification as a necessary step rather than assuming generated code can be accepted directly.

This warning applies alongside the risks created when developers paste proprietary code into AI services while seeking help with bugs or other development tasks. Using an AI tool does not eliminate the need to review what is submitted or what the tool produces.

Unapproved AI Tools

The third prohibited practice is using an unapproved AI tool as a fallback route. The article presents this as a distinct risk from both confidential-data submission and unverified code merging.

Together, the three restrictions focus on controlling sensitive inputs, checking generated outputs, and avoiding unauthorized services. The guidance is presented as educational security information for developers using AI tools.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPoko社内コードをChatGPTに貼るだけで、どうしてそんなに危ないの?バグ相談くらいに見えるけど。Why is simply pasting company code into ChatGPT so risky? It sounds like you're just asking for help with a bug.
  2. TECHガイドTECH Guideこの記事では、ChatGPTのFree・Plus・Teamは入力を標準で学習に使うとしておる。機密まで渡せば、情報管理上のリスクになるのじゃ。The article says ChatGPT Free, Plus, and Team use inputs for training by default. If confidential material is included, that creates an information-security risk.
  3. ポコPokoつまり、開発者が設計図を外の相談箱に入れないためのルールなんだね。本人だけでなく会社を守るの?So it’s like a rule against dropping company blueprints into an outside help box. Does it protect both the developer and the company?
  4. TECHガイドTECH Guideそうじゃ。本文が挙げるのは、機密の無断投入、生成コードの無検証マージ、無承認AIの代用利用を避け、セキュリティと規則順守を守ることじゃよ。Exactly. It warns against unauthorized confidential-data uploads, merging AI code without review, and using unapproved AI as a fallback—all to protect security and compliance.
  5. ポコPoko分かった!AIは便利でも、社内情報を入れず、出てきたコードもそのまま採用しないってことだね。Got it! AI may be useful, but don’t feed it company secrets or accept its code without checking it.
  6. TECHガイドTECH Guideその二点に加え、困ったときも無承認のAIへ逃げないことじゃ。書かれている三つを、利用前の確認事項にするとよいのう。And even when you’re stuck, don’t fall back on an unapproved AI tool. Those three warnings make a useful pre-use checklist, as the piece explains.
記事情報・収集記録Article details & collection record
出典Source
Qiita GitHub CopilotコミュニティCommunity
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
JA
重要度の位置づけImportance in this lane
MediumMedium priority(GitHub Copilot 218件中、同等以上 166件)(166 of 218 GitHub Copilot entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.1 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
中期 (チュートリアル)Medium-term (tutorial)

🧠GitHub Copilot の他の記事More from GitHub Copilotもっと見る →View more →

ページ上部へScroll to top