The document describes a framework called RDB that can make databases intrusion-resilient by tracking transaction dependencies and enabling selective transaction rollback. RDB inserts a proxy driver between the database and clients to intercept SQL statements and track reads and writes. It stores dependency information and transaction metadata to enable analyzing the log and visualizing dependencies after an intrusion to generate compensating transactions for repairing the database. The overhead of the framework is between 6-13% according to benchmarks.