There are a couple of items here. One is that when you have collaborative projects that are funded in part by a foreign company, as you mentioned, the terms should be very clear and transparent about who owns the intellectual property. There should be no ambiguity.
In terms of diversion, when you have researchers.... You provided examples about some arrests in the U.S. These are people who would be involved in different research and would not declare their other affiliations to state entities or military organizations. They would take some of the knowledge and some of the data that is being created through these projects and bring it back to their countries in a way that would likely be a threat to Canada in the future, especially when we look at high-end technology that may have dual-use purposes for both civilian and military applications.