This sounds interesting but it definitely add more unpredictability to the game. However, if someone sees you have the trojan, maybe it would be quite obvious what actions you're taking.
I suppose we need some more details: Do you need to bring the Trojan with you or is it passive? Does it simply allow you to cancel a gift? What if someone attempts to receive the gift first by sending a driller at it, could it ruin your plans of ungifting?
Could be interesting. I'd probably say that the devs are less likely to add unpredictable specialists to the game instead of specialists with more predictable abilities. But this isn't completely unpredictable, it's similar to promoting to king. Just needs some more details.