OrgAI Secure Knowledge Gateway

สถาปัตยกรรม Zero-Trust AI Gateway และ Pre-LLM Data Masking สำหรับองค์กร

สถาปัตยกรรมความปลอดภัยของ OrgAI คือประตูกรองสิทธิ์ข้อมูลอัจฉริยะ (Secure Knowledge Gateway) ทำงานภายใต้หลัก Zero-Trust และ Pre-LLM Data Masking คัดกรองสิทธิ์ระดับเซิร์ฟเวอร์และตัดข้อมูลที่ไม่มีสิทธิ์ออกก่อนส่งเข้า LLM ป้องกันการเห็นข้อมูลข้ามสิทธิ์ 100%

ปัญหาใหญ่ของการใช้ AI ทั่วไปในองค์กรโดยไม่มี Gateway กรองสิทธิ์ (ความเสี่ยง Prompt Injection, พนักงานระดับปฏิบัติการหลอกถามข้อมูลลับผู้บริหาร)

เมื่อพนักงานคุยกับโมเดลโดยตรง โมเดลจะเห็นทุกอย่างที่ถูกแนบไปในคำขอ รวมถึงเอกสารลับ ตัวเลขการเงิน และข้อมูลผู้บริหาร หากไม่มีประตูกรองสิทธิ์ก่อนส่ง ผู้ใช้สามารถใช้ Prompt Injection เพื่อสั่งให้โมเดลละเลยคำสั่งระบบ หรือให้พนักงานระดับปฏิบัติการถามอ้อมจนได้ข้อมูลที่สงวนไว้สำหรับผู้บริหาร

Prompt Injection ข้ามคำสั่งระบบ

System Prompt ที่เขียนว่าห้ามตอบข้อมูลลับอยู่ในบริบทเดียวกับข้อความของผู้ใช้ ผู้โจมตีจึงสั่งให้โมเดลเพิกเฉยต่อกฎนั้น แล้วให้เปิดเผยบริบทที่ถูกแนบมาทั้งหมด คำสั่งในพรอมป์ต์ไม่ใช่ขอบเขตความปลอดภัย

พนักงานระดับปฏิบัติการถามข้อมูลลับผู้บริหาร

หากคลังความรู้ทั้งองค์กรถูกส่งเข้าโมเดลโดยไม่สนบทบาท พนักงานสามารถถามเงินเดือน ต้นทุน หรือแผนที่ยังไม่ประกาศ แล้วได้คำตอบเพราะโมเดลเห็นข้อมูลนั้นอยู่แล้ว สิทธิ์ต้องถูกตัดสินที่เซิร์ฟเวอร์ก่อนที่โมเดลจะได้รับข้อมูล

ระบบควบคุมสิทธิ์ 4-Tier RBAC & Pre-LLM Filtering ทำงานอย่างไร?

ทุกคำถามถูกถือว่าไม่น่าเชื่อถือจนกว่าเซิร์ฟเวอร์จะพิสูจน์ว่าผู้ถามมีสิทธิ์เห็นอะไร Pre-LLM Filtering ทำงานทีละชั้น แล้วประกอบ payload เฉพาะส่วนที่ผ่านสิทธิ์ ก่อนส่งเข้า LLM

  1. 1. Database Tier

    ทำงานร่วมกับ Text-to-SQL AI โดยแปลงคำถามเป็นคำสั่งที่อ้างอิงได้เฉพาะตารางและคอลัมน์ของบทบาทนั้น คิวรีที่ชี้ไปนอกสิทธิ์ถูกปฏิเสธก่อนถึงฐานข้อมูล และผลลัพธ์ถูกตรวจซ้ำก่อนเข้าโมเดล

  2. 2. Custom REST API Tier

    เรียก API ภายในด้วยสิทธิ์ของผู้ถาม แล้วตัดข้อมูล PII เช่น เลขประจำตัว เบอร์โทร และเงินเดือน ออกจาก payload หากบทบาทนั้นไม่มีสิทธิ์เห็นฟิลด์นั้น โมเดลจึงไม่ได้รับฟิลด์ที่ถูกตัด

  3. 3. Cloud Integration Tier

    เชื่อม Google Drive, OneDrive และ LINE OA โดยดึงเฉพาะไฟล์และห้องสนทนาที่บัญชีองค์กรอนุญาตให้ผู้ถามเห็น ไฟล์ที่ไม่ได้แชร์จะไม่ถูกใส่เข้าบริบท

  4. 4. Knowledge & Document Tier

    ค้นหาไฟล์ด้วย Metadata Filtering แยก company_id ของผู้เช่าแต่ละราย เป็น Permission-aware RAG เวกเตอร์ของบริษัทอื่นไม่ถูกนำมาคำนวณความคล้าย แม้คำค้นจะตรงกับชื่อไฟล์นั้น

ตารางสรุปมาตรการความปลอดภัย 3 ชั้น

สิทธิ์ถูกตัดก่อนโมเดลเห็นข้อมูล ผู้เช่าถูกแยกออกจากกัน และคำตอบถูกตรวจซ้ำเพื่อไม่ให้ระบบแต่งข้อมูลที่ไม่มีในหลักฐาน

Pre-LLM Payload Sanitization, Multi-Tenant Isolation และ 3-Layer Guardrails & Self-Reflection QA
มาตรการการทำงานผลต่อความปลอดภัย
Pre-LLM Payload Sanitizationตัดข้อความ ตาราง คอลัมน์ และเอกสารที่ไม่มีสิทธิ์ออกจาก payload บนเซิร์ฟเวอร์ ก่อนเรียก LLMโมเดลไม่เห็นข้อมูลข้ามสิทธิ์ จึงตอบได้เฉพาะส่วนที่เหลือหลังการกรอง
Multi-Tenant Isolationแยกดัชนี ไฟล์ และผลลัพธ์ API ด้วย company_id ของแต่ละองค์กร รวมถึงเนมสเปซของความรู้ที่ค้นได้ผู้เช่ารายหนึ่งเข้าถึงคลังหรือผลลัพธ์ของอีกรายไม่ได้ แม้จะอยู่บนแพลตฟอร์มเดียวกัน
3-Layer Guardrails & Self-Reflection QAตรวจคำตอบด้วยกฎ ai_must_do, ai_recommend และ ai_forbidden จากนั้นให้วงรอบ Semantic QA สะท้อนผลเทียบกับหลักฐานที่ผ่านการกรองป้องกันข้อมูลมั่วตามนโยบาย Zero Hallucination หากหลักฐานในสิทธิ์ไม่พอ ระบบจะบอกว่าไม่พบ แทนการแต่งคำตอบ

คำถามที่พบบ่อย

Pre-LLM Data Masking ต่างจาก System Prompt ทั่วไปอย่างไร

System Prompt เป็นคำสั่งที่เดินทางไปกับคำถาม และอยู่ในบริบทที่ผู้ใช้พยายาม Jailbreak ได้ Pre-LLM Data Masking ตัดข้อมูลที่ไม่มีสิทธิ์ทิ้งที่เซิร์ฟเวอร์ก่อนประกอบคำขอไปยัง LLM ข้อมูลนั้นไม่ได้อยู่ในพรอมป์ต์และไม่มีทางถูกเปิดเผยด้วยการหลอกโมเดล จึงปลอดภัยจากการ Jailbreak 100%

ความปลอดภัยเมื่อเชื่อมต่อกับระบบภายนอกเป็นอย่างไร

ปลอดภัยเท่าเทียมกันเมื่อเชื่อมกับ ERPNext หรือ Fixdy ผ่าน OrgAI ทั้งสองระบบไม่ได้ส่งข้อมูลทั้งก้อนเข้าโมเดล Gateway ใช้สิทธิ์ของผู้ถามเป็นตัวกรองที่เซิร์ฟเวอร์ แล้วส่งเฉพาะส่วนที่ผ่านสิทธิ์ ดังนั้นแหล่งข้อมูลที่ต่างกันยังอยู่ภายใต้หลัก Zero-Trust เดียวกัน

วางระบบรักษาความปลอดภัยข้อมูล

ให้ทีมตรวจช่องทางที่ AI จะเห็นข้อมูลองค์กร แล้ววางประตูกรองสิทธิ์ก่อนเปิดใช้งานจริง ปรึกษา Nextio Consult และตรวจสอบแพ็กเกจราคาได้จากปุ่มด้านล่าง

English

Zero-Trust Enterprise AI Gateway & Pre-LLM Data Masking Architecture

OrgAI enforces a Zero-Trust security posture: every prompt is untrusted until the server proves what that person is allowed to see. Server-side 4-Tier RBAC selects the eligible rows, API fields, cloud files, and knowledge chunks. Pre-LLM Data Masking then sanitizes the user prompt and strips everything outside that entitlement before LLM dispatch. The model cannot reveal data it never received.

Server-side 4-Tier breakdown

  1. 1. Database Tier

    Questions are compiled through Text-to-SQL into statements that can reference only the tables and columns granted to the caller's role. Queries outside that grant are rejected before they reach the database, and the result set is checked again before it is placed in the model context.

  2. 2. Custom REST API Tier

    Internal APIs are called with the caller's own authorization. Automated PII masking removes identifiers such as national IDs, phone numbers, and salary fields from the payload when the role cannot view them, so those values never leave the gateway.

  3. 3. Cloud Workspaces

    Google Drive, OneDrive, and LINE OA are searched only inside the files and conversations the enterprise account has shared with that user. Unshared objects are not retrieved and are not added to the prompt.

  4. 4. Knowledge File Tier

    Document retrieval uses Vector similarity with tenant-isolation. Chunks are filtered by company_id before similarity is scored, so another tenant's files cannot enter the context even when the query text matches.

Frequently asked questions

How does Strict Zero Hallucination enforcement work with 3-Layer Global Guardrails and Semantic QA?

After the gateway has sanitized the prompt, three global guardrail layers constrain the answer. A Semantic QA reflection loop then compares the draft with the evidence that survived Pre-LLM filtering. Unsupported claims are rewritten or rejected before the user sees them. The answer may be incomplete. It is not allowed to be invented.

  • ai_must_do — required behavior, including answering only from retrieved evidence inside the caller's permission scope and stating when that evidence is missing.
  • ai_recommend — preferred practice, such as naming the source system and the filter that was applied.
  • ai_forbidden — blocked behavior, including invented numbers, guessed executive data, and answers drawn from prior model knowledge when the gateway returned no rows.