By the time recording began, a staff member from the show would meet the guest with a costume, and only one dedicated director knew who the guest was. They would also escort the costume for the fitting and makeup session.
Beforehand, a voice changer was installed in the mask. Once the dedicated director entered with the guest, the person who later emerged would already be wearing the mask and costume.
No one else would know who was under the mask, not even their gender. The guest's sole assistant would be left at the hotel, unable to participate in the show's recording.
All of these precautions were spelled out in the agreement, and the production team would bear full responsibility if any issues arose. For this reason, they had even hired a top security company to escort the participants throughout the process.
Of course, the cost was significant, and the penalty for an artist breaking the contract was equally substantial.