5.5 — Understand Security Testing
🧠 ภาพจำก่อนอ่าน: 👤 Identity → 🔑 Access → 🛡️ Controls
🎨 Visual Guide ของวิชานี้ — ภาพช่วยจำ ไม่แทนคำสั่งและเนื้อหาจริง
Purpose
หัวข้อที่มีชื่อว่า “Purpose”security testing ตรวจว่า controls/defenses ทำงานจริงหรือมี weakness ก่อน attacker ใช้
testing ต้องมี authorization และ scope
Blue, Red and Purple teams
หัวข้อที่มีชื่อว่า “Blue, Red and Purple teams”Blue team
หัวข้อที่มีชื่อว่า “Blue team”defend, monitor, detect, investigate และ respond
Red team
หัวข้อที่มีชื่อว่า “Red team”authorized adversary simulation เพื่อทดสอบ people/process/technology ตาม scope
Purple team
หัวข้อที่มีชื่อว่า “Purple team”red + blue collaboration เพื่อเรียนรู้และปรับ detection/defense เร็วขึ้น
Purple team ไม่จำเป็นต้องเป็นทีมถาวร แก่นคือ collaboration
Vulnerability scanning
หัวข้อที่มีชื่อว่า “Vulnerability scanning”automated identification of known/suspected weaknesses เช่น outdated software, exposed services หรือ misconfiguration
scan result ต้อง validate/contextualize
scanner finding ≠ confirmed exploitability เสมอ
Static analysis (SAST)
หัวข้อที่มีชื่อว่า “Static analysis (SAST)”วิเคราะห์ source/code/binary โดยไม่รัน application
เหมาะกับ finding classes ที่เห็นจาก code structure
Dynamic analysis (DAST)
หัวข้อที่มีชื่อว่า “Dynamic analysis (DAST)”ทดสอบ running application จากภายนอกเหมือน interaction จริง
เห็น runtime behavior แต่ visibility ภายใน code ต่ำกว่า SAST
Threat modeling
หัวข้อที่มีชื่อว่า “Threat modeling”คิดล่วงหน้าว่า:
- assets คืออะไร
- trust boundaries อยู่ไหน
- attacker ทำอะไรได้
- abuse cases คืออะไร
- mitigations อะไรจำเป็น
ทำได้ตั้งแต่ design stage จึงช่วยป้องกันก่อน deploy
Physical penetration testing
หัวข้อที่มีชื่อว่า “Physical penetration testing”current objective ยกตัวอย่าง:
Phishing
หัวข้อที่มีชื่อว่า “Phishing”ทดสอบว่าคนเปิดเผย credential/click/execute หรือ report อย่างถูกต้องหรือไม่
Tailgating
หัวข้อที่มีชื่อว่า “Tailgating”พยายามตามผู้มีสิทธิ์เข้า restricted area
Impersonation
หัวข้อที่มีชื่อว่า “Impersonation”ปลอมเป็น staff/vendor/authority เพื่อ bypass process
ทุก test ต้อง authorized และมี safety boundary
Testing vs production damage
หัวข้อที่มีชื่อว่า “Testing vs production damage”security test ไม่ควรกลายเป็น incident เพราะไม่มี scope
ก่อน test ต้องรู้:
- authorization
- target
- time window
- prohibited actions
- stop condition
- communication/escalation
AI and security testing
หัวข้อที่มีชื่อว่า “AI and security testing”AI-integrated application ยังต้อง vulnerability testing, threat modeling และ readiness testing
AI อาจเพิ่ม abuse cases เช่น prompt injection, sensitive-data exposure หรือ excessive agent permissions แต่ fundamentals ของ scope/evidence/authorization ยังเหมือนเดิม
Scenario
หัวข้อที่มีชื่อว่า “Scenario”scanner พบ critical CVE บน Internet-facing server
ขั้นต่อไปไม่ใช่ assume compromise แต่ validate asset/version/exposure, prioritize และ remediate ตาม risk
Common traps
หัวข้อที่มีชื่อว่า “Common traps”| Trap | Correct mental model |
|---|---|
| Red team = vulnerability scanner | red team simulates adversary objectives |
| Purple = third opposing team | collaboration of offensive/defensive learning |
| SAST = running app test | SAST analyzes code without execution |
| DAST = source review | DAST tests running app |
| Scan finding = incident | finding needs validation/context |
| Pen test without written scope | unauthorized activity risk |
Knowledge check
หัวข้อที่มีชื่อว่า “Knowledge check”- Blue/Red/Purple ต่างกันอย่างไร?
- scanning ต่างจาก penetration testing อย่างไร?
- SAST/DAST ต่างกันอย่างไร?
- threat modeling ควรเริ่มเมื่อไร?
- physical penetration testing มีตัวอย่างอะไรบ้าง?
🔬 อ่านเจาะลึกและฝึกเพิ่ม (ไม่บังคับ)
หัวข้อที่มีชื่อว่า “🔬 อ่านเจาะลึกและฝึกเพิ่ม (ไม่บังคับ)”เรียนบทหลักตามลำดับ ส่วนลิงก์ด้านล่างเป็นเนื้อหาเสริมหรือแบบฝึก ไม่จำเป็นต้องทำทั้งหมดก่อนบทถัดไป หากต้องการเจาะลึกหรือลงมือทำ ให้เลือกเปิดเฉพาะสิ่งที่เกี่ยวข้องกับเป้าหมาย
📝 Practice — โจทย์วิเคราะห์สถานการณ์
🎯 คำถามที่ตรงกับบทนี้: Domain 5 · Scenario 21–25
🧠 Review — ทบทวนเฉพาะหัวข้อที่ตอบผิด
เมื่ออ่านและฝึกทบทวนจบแล้ว ทำเครื่องหมายเพื่อบันทึกใน Browser นี้