Epic makes you agree to a legal agreement before getting access to the source so you could attempt to restrict the source via contract law. The issue is if it does escape to the public, contract law can't save you and copyright law allows for training on it.