I'm going to suggest that it's on the universities to find a way around that problem. It's a real problem, but everything being publicly available online is how the world is now. Just varying assignments every year should be enough. If reasonable variations don't make the assignments challenging enough? Well the students are always going to be able to find some reasonable variation online. Starting from absolute scratch is just not a thing anymore in most fields.