As a countermeasure, we would have a second-channel kill switch and self-destruct mechanism. If you try to hijack it back to an unfriendly location, we blow it up when you approach it with resulting casualties. If you try to use it as an offensive weapon we use the kill switch and/or self-destruct in an area of our choosing.
To overcome the possibility of an external self destruct signal reaching the drone when you hijack it, you'll probably come up with tricks like bathing it in strong spread-spectrum interference or dropping it into a Faraday cage. Either can be detected and trigger the self destruct internally.
Perhaps you can disable the drone by hitting it with an EMP weapon but still recover it. Good luck.