What does the financial compensation need to be for an engineer to actually do this? I'm gonna assume that if you work at Apple and are being recruited by OpenAI, you are not a dummy. Then you probably know that doing something like this runs the risk of you getting sued by a trillion dollar company.
If I had a potential employer ask me to do this, I would reply "oh hell fucking no", withdraw my application, and notify my companies security, legal and HR teams.
But then again it's easy to have the moral high ground when you're not staring down an offer that will completely change your and your families lives. I'm sure most employees probably thought what I'm thinking until they are looking at a 7 figure offer.