Files with onion file extension can be found as files encrypted and affected by a ransomware labeled as Dharma.
ONION file extension - Dharma ransomware affected data
What is onion file? How to open onion files?
File type specification:
File extension onion is used by a variant of ransomware called Dharma which much like other similar threats encrypts users files and demands bitcoins as ransom.
It is distributed via .zip files downloaded from internet links provided in a spam email.