Security and resilience for collaborative manufacturing environments