Malware extensions in firefox extensions is much more common than you think. And they use really sophisticated methods to evade detection and to get the extension published on the extension store. Article deep dives into one of these, and explains how it works by referencing code examples.