Verb go against, as of rules and laws

Google's Street View cars accidentally collected wi-fi data from Canadian homes, contravening privacy laws in the process.