There are structures you could set-up which could shield you. For example, a LLC within a S-corp, where you are share holder of the s-corp (as person, trust, or with another LLC), but not owner of the first LLC. Then the LLC holds the IP, and you are now entitled to part or full ownership through shares. However, that does not shield you from lawsuits if anyone would find out.