The only wholly secure course of action would be to use unmodified apps from official sources exclusively or to download the official modded versions of any apps that exist (as is the case with some games, for instance, especially when they have been made available as open source).