🛡️ ScamShield AI: Week 2 Build Log
Hardening Container Boundaries: iptables, SSRF Mitigations & Fail-Closed Sandboxes
🚨 The Journey So Far
If you caught Week 1, you know I'm building ScamShield AI — an evidence-grounded threat intelligence platform designed to safely analyze Indian scam SMS messages and WhatsApp forwards (fake KYC alerts, electricity cut-off threats, UPI traps).
To safely "click" a scammer's link without letting them compromise our backend infrastructure, we are building an isolated Docker sandbox using Playwright (Headless Chromium) and Mitmproxy (The Network Guard) .
This week was entirely about hardening Stage 1: The Proxy Container .
I learned the hard way that building a Docker container is trivial, but securing it against a determined attacker probing from the inside is a completely different engineering challenge.
Here are my biggest technical takeaways, bugs, and architectural wins from Week 2.
🧠 Lesson 1: iptables Rule Ordering is a Strict Security Boundary
In iptables…