I’m curious, how can a database be accessed without authorization? If authorization is enabled? Also how unauthorized access can be discovered? Say I use Mongodb and enabled authorization. Will I be fine then? How to discover unauthorized access?
In the worst case, if someone notifies you of a configuration problem or some software bug that allows anonymous access to your database or the ability to remove logs, you may have to assume the entire database was compromised since the existence of that configuration issue or software bug.