
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
PDPA compliance scanner for vibe-coded apps (Firebase/Supabase region, security rules, PII fields, cross-border subprocessors). Run with npx before you deploy.
สแกนโปรเจกต์ vibe-coded (Firebase / Supabase / vanilla JS) หา risk ตาม พ.ร.บ. คุ้มครองข้อมูลส่วนบุคคล (PDPA) ก่อนกด deploy — ไม่ต้อง install ถาวร รันผ่าน npx ได้เลย
ทำมาเพราะ AI coding assistant (รวมถึง Claude) จะ focus ที่ "ทำให้โค้ดรันได้" เป็นหลัก และมักข้ามเรื่อง region, security rules, PII field ไปโดยไม่ตั้งใจ — เครื่องมือนี้คือ safety net ชั้นสุดท้ายก่อน production
npx pdpa-guard .
จะได้ไฟล์ pdpa-report.md สรุปปัญหาทั้งหมด แยกตามความรุนแรง
npx pdpa-guard <path> # สแกนโฟลเดอร์ที่ระบุ (default: โฟลเดอร์ปัจจุบัน)
npx pdpa-guard . -o report.md # เปลี่ยนชื่อไฟล์ output
npx pdpa-guard . --fail-on high # exit code 1 ถ้าเจอ severity >= high (ใช้กับ CI/pre-commit hook)
npx pdpa-guard . --json # output เป็น JSON แทน markdown
เพิ่มใน package.json:
{
"scripts": {
"predeploy": "npx pdpa-guard . --fail-on critical"
}
}
จะบล็อค deploy อัตโนมัติถ้าเจอ security rule เปิดกว้างแบบ allow read, write: if true;
| หมวด | เช็คอะไร | อ้างอิงกฎหมาย |
|---|---|---|
| Cloud Region | Firebase Realtime DB URL, Firestore locationId, Cloud Functions region — เตือนถ้าไม่ใช่ region เอเชีย | PDPA มาตรา 28-29 (โอนข้อมูลข้ามพรมแดน) |
| Security Rules | firestore.rules, storage.rules, database.rules.json ที่เปิดกว้างแบบ if true หรือไม่มี auth check | ความเสี่ยงข้อมูลรั่วไหล — ปรับสูงสุด 5 ล้านบาท |
| PII Fields | grep หา field name ที่เข้าข่ายข้อมูลส่วนบุคคล (ทั่วไป/อ่อนไหว/พิกัด/การเงิน/เด็ก) ทั้งไทยและอังกฤษ | PDPA มาตรา 6, 20, 24, 26 |
| Subprocessors | third-party SDK ที่ส่งข้อมูลออกนอกประเทศ (Sentry, Gemini, OpenAI, Analytics ฯลฯ) | ต้องระบุใน Privacy Policy |
rules/pii-keywords.json ตามโดเมนของแอปตัวเองเพิ่ม/ลบ keyword ได้ที่ rules/pii-keywords.json — แบ่งเป็น 5 หมวด: general, sensitive, location, financial, child แต่ละหมวดมี severity ต่างกัน
ดูรายชื่อทั้งหมดที่ lib/scanners/subprocessor-check.js — ครอบคลุม Firebase, Supabase, AWS, Clerk, Auth0, MongoDB Atlas, LINE API, Google Sheets, Omise/2C2P และอื่นๆ เพิ่มรายการใหม่ได้โดยแก้ array KNOWN_SUBPROCESSORS ในไฟล์นั้น
Copy .github/workflows/pdpa-check.yml ไปไว้ใน repo ของตัวเอง จะรันสแกนอัตโนมัติทุก PR/push และบล็อคถ้าเจอปัญหาระดับ critical พร้อม upload รายงานเป็น artifact ให้ดูย้อนหลังได้
npm test
ใช้ Node.js built-in test runner (node --test) ไม่มี dependency ภายนอก มี fixture โปรเจกต์จำลอง (มีปัญหา / ไม่มีปัญหา) อยู่ใน test/fixtures/
ดูขั้นตอนเต็มที่ PUBLISHING.md
MIT — เอาไปแจกต่อ แก้ไข ปรับใช้ได้อิสระ ดู LICENSE
FAQs
PDPA compliance scanner for vibe-coded apps (Firebase/Supabase region, security rules, PII fields, cross-border subprocessors). Run with npx before you deploy.
We found that pdpa-guard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.