anonym.legal

By · Last updated 2026-04-05

กลับไปที่บล็อกความปลอดภัยของ AI

ใช้ Cursor และ Claude โดยไม่รั่วไหลโค้ด

Cursor โหลดไฟล์ .env เข้าสู่บริบท AI โดยค่าเริ่มต้น บริษัทด้านบริการการเงินแห่งหนึ่งสูญเสีย 12 ล้านดอลลาร์หลังจากอัลกอริทึมการซื้อขายที่เป็นกรรมสิทธิ์ถูกส่งไปยัง AI assistant

April 5, 20269 อ่านประมาณ
Cursor AI securitydeveloper credential leakMCP Server protectionClaude Code securitycodebase privacy

สิ่งที่ Cursor โหลดเข้าสู่บริบท AI

Cursor โหลดไฟล์ JSON และ YAML ที่กำหนดค่าเข้าสู่บริบท AI โดยค่าเริ่มต้น ไฟล์เหล่านั้นมักมี cloud token รหัสผ่านฐานข้อมูล และการตั้งค่าการ deploy

ความเสี่ยงไม่ได้มาจากการใช้งานที่ประมาท แต่มาจากการตั้งค่าเริ่มต้น ทุกเซสชันเขียนโค้ดด้วย AI ที่แตะไฟล์ config อาจส่งไฟล์เหล่านั้นไปยังเซิร์ฟเวอร์ของ Anthropic หรือ OpenAI

ความตั้งใจของนักพัฒนาไม่มีปัญหา พวกเขาขอให้ AI แก้ไข database query Query มี connection string AI เห็นมัน นั่นคือการรั่วไหล มันเป็นผลข้างเคียงของงานปกติ กฎนโยบายเพียงอย่างเดียวไม่สามารถหยุดมันได้อย่างน่าเชื่อถือ

นั่นคือเหตุผลที่การใช้งาน tooling ของ Model Context Protocol เพิ่มขึ้น 340% ในสภาพแวดล้อมองค์กรใน Q4 2025 ทีมต้องการการแก้ไขทางเทคนิค เอกสารนโยบายใหม่ไม่เพียงพอ

ผลกระทบ 12 ล้านดอลลาร์

บริษัทด้านบริการการเงินแห่งหนึ่งสูญเสียการควบคุมอัลกอริทึมการซื้อขายที่เป็นกรรมสิทธิ์ อัลกอริทึมถูกส่งไปยังเซิร์ฟเวอร์ของ AI assistant ระหว่างเซสชันตรวจสอบโค้ด

ต้นทุนโดยประมาณ: 12 ล้านดอลลาร์ (IBM Cost of Data Breach 2025 สำหรับองค์กรที่มีพนักงาน >10,000 คน) บริษัทไม่สามารถเรียกข้อมูลกลับมาได้ ต้องตรวจสอบทุกไฟล์ที่ส่งออกไป ต้องจ้างที่ปรึกษากฎหมายสำหรับความเสี่ยงด้านความลับทางการค้า และต้องดำเนินการตรวจสอบความเสียหายทางการแข่งขัน

นั่นคือกรณีเลวร้ายที่สุด กรณีทั่วไปเล็กกว่าแต่สะสมได้รวดเร็ว API key ต้องหมุนเวียนหลังจากปรากฏในบันทึกแชท AI รหัสผ่านฐานข้อมูลถูกเปลี่ยนหลังจากปรากฏในบันทึกเครื่องมือ OAuth token ถูกเพิกถอนหลังจากการบันทึกหน้าจอจับภาพมัน แต่ละขั้นตอนใช้เวลาพนักงาน ต้นทุนนั้นมีจริงและไม่ค่อยมีการติดตาม

วิธีการทำงานของชั้น Anonymization

Model Context Protocol (MCP) เพิ่มชั้นระหว่าง AI client และ AI model API ทุก prompt ผ่านเครื่องมือ anonymize ก่อนที่จะถึงโมเดล

ไม่มีการป้องกัน: นักพัฒนาเขียนสคริปต์ migration มี connection string: postgres://admin:password@host:5432/db โมเดล AI ได้รับสตริงนั้นตามที่เป็น

มีชั้น anonymization: เครื่องมือตรวจพบสตริง แทนที่ด้วย token — [DB_CONN_1] โมเดลเห็นโครงสร้างและตรรกะของสคริปต์ ข้อมูลประจำตัวอยู่ในเครื่องท้องถิ่น

ตัวเลือกการเข้ารหัสแบบย้อนกลับไปไกลกว่านั้น รหัสลูกค้าและรหัสสินค้าถูกเข้ารหัสและแทนที่ด้วย token แบบ deterministic AI ส่งคืนการตอบสนองที่ใช้ token เหล่านั้น เซิร์ฟเวอร์ถอดรหัสการตอบสนองและแทน token กลับด้วยค่าจริง นักพัฒนาอ่านตัวระบุจริง โมเดล AI ไม่เคยเห็นพวกมัน

การตั้งค่าและประสบการณ์ผู้ใช้

สำหรับทีมพัฒนา การตั้งค่าเป็นงานครั้งเดียว Cursor และ Claude Code ถูกกำหนดค่าให้เส้นทางผ่านเซิร์ฟเวอร์ proxy ท้องถิ่น การกำหนดค่าเซิร์ฟเวอร์กำหนดประเภทเอนทิตีที่จะสกัดกั้น:

  • API key
  • Database connection string
  • Auth token
  • ข้อมูลประจำตัว AWS, Azure และ GCP
  • Header ของ private key

ทีมสามารถเพิ่มรูปแบบแบบกำหนดเองสำหรับชื่อบริการภายในหรือรูปแบบตัวระบุที่เป็นกรรมสิทธิ์

จากมุมมองของนักพัฒนา ไม่มีอะไรเปลี่ยนแปลง การทำ autocomplete การตรวจสอบโค้ด การช่วยเหลือ debug และการสร้างเอกสารทำงานเหมือนเดิม proxy ทำงานอย่างเงียบๆ ในพื้นหลัง

การวิเคราะห์ปี 2025 ของ Checkpoint Research ระบุการเปิดเผยข้อมูลประจำตัวของนักพัฒนาเป็นความเสี่ยงที่มีผลกระทบสูงที่สุดในการปรับใช้เครื่องมือเขียนโค้ด AI นั่นคือปัญหาที่แน่ชัดที่สถาปัตยกรรมนี้แก้ไข เป็นการแก้ไขทางเทคนิค ไม่ใช่การเตือนนโยบาย

เรียนรู้เพิ่มเติมใน ภาพรวมความปลอดภัย และ เอกสารการปฏิบัติตาม ของเรา ดูเพิ่มเติมที่ คู่มือการตรวจจับเอนทิตี สำหรับรายการประเภทข้อมูลที่ถูกสกัดกั้นทั้งหมด

แหล่งอ้างอิง

พร้อมที่จะปกป้องข้อมูลของคุณหรือยัง?

เริ่มทำให้ PII เป็นนิรนามด้วยประเภทเอนทิตีมากกว่า 285 ประเภทใน 48 ภาษา.

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

Related reading

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.