Safeguarding Gigafactories with Advanced Detection