ScamShield AI Week 2: Hardening Docker Firewalls and Fail-Closed Sandbox Design
A developer building ScamShield AI, a threat-intelligence platform for analyzing Indian scam messages, documented security hardening of an isolated Docker sandbox used to safely open suspicious links. The sandbox pairs headless Chromium via Playwright with a Mitmproxy network guard. The author found that iptables rule ordering created a bypass, since a stateful ESTABLISHED,RELATED accept rule preceded the drops for private and cloud-metadata addresses, risking SSRF. The firewall was restructured into six phases so prohibited destinations are dropped before any connection-state acceptance. The startup script was also changed from fail-open, which merely warned when iptables was missing, to fail-closed, which aborts the container if rules cannot be applied or verified.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in