What’s the difference between “malware” and “software”?
In my opinion, it’s the human who labels the code that. Code is merely a mechanism to modify data. It has no emotions, intent, “inherent evil-ness”, etc. Do hammers enjoy being used to hammer nails?
A gun is an inert piece of metal. So is a screwdriver, or a hammer. You can use them to hunt for food and build a house, or to hurt other people. Are they “safe”? When are they not “safe”?