ai
Semgrep SAST Infrastructure as Code —
Semgrep IaC Scanning

Semgrep SAST IaC Terraform Kubernetes Dockerfile CloudFormation Ansible Security Misconfiguration Rules CI/CD Open Source Production
เนื้อหาเกี่ยวข้อง — ดูเพิ่มเติมเรื่อง Swift Code กสิกรไทย ดูที่ไหน? คู่มือฉบับสมบูรณ์ 2026
| IaC Type | File | Common Findings | Severity |
|---|---|---|---|
| Terraform | .tf | Public S3 Open SG No Encryption | Critical-High |
| Kubernetes | .yaml | Run as Root No Limits Privileged | High-Medium |
| Dockerfile | Dockerfile | Root User latest Tag Secrets | Medium-High |
| CloudFormation | .yaml/.json | Open SG Public S3 Weak IAM | Critical-High |
| Ansible | .yml | Hardcoded Creds Unsafe Perms | Critical-Medium |

เคล็ดลับ
- Auto: ใช้ semgrep --config auto เริ่มต้นง่ายสุด
- IaC Rulesets: ใช้ p/terraform p/kubernetes p/dockerfile
- Pre-commit: ตั้ง Pre-commit Hook จับก่อน Push
- Policy: Block Critical/High ใน CI/CD ห้าม Merge
- Custom Rules: เขียน Custom Rules สำหรับ Organization Standards
Semgrep คืออะไร
Open Source SAST 30+ Languages IaC Terraform Kubernetes Dockerfile Pattern Matching 3000+ Rules OWASP CWE Fast No Build Free Team
แนะนำเพิ่มเติม — ระบบเทรดของ iCafeForex
เนื้อหาเกี่ยวข้อง — ดูเพิ่มเติมเรื่อง Embedding Model Compliance Automation
เนื้อหาเกี่ยวข้อง — อ่านต่อ: DuckDB Analytics Troubleshooting แก้ปัญหา




