You are correct in your guess!
At the time of masking Delphix will generate a new connection string that is created specifically for the VDB. (And again, you are correct. This includes substituting the SID and host for Oracle. For other data platforms other things are substituted).