In recent years, we have seen a trend of commercial spyware being sold to governments. This is a very controversial subject, not least because of the frequent use of this spyware against opposition targets. However, there is general agreement that the malware tends in most cases to be well written.

https://www.virusbulletin.com/blog/2018/10/wolf-sheeps-clothing-undressed/