Automatically Enforcing 3rd Party Software Policies