Industrial security for smart factories