Safe security scanning of a production state automation system