1. A method comprising: comparing contents of the file in a cloud-based platform with a data loss prevention rules; determining that at least one of the data loss prevention rules is triggered based upon a portion of the contents; and performing a responsive action associated with the at least one of the data loss prevention rules.