TL;DR
Goldman Sachs classified any access to a production database from a non-production host as a violation, and had no way to see when it happened. I built the detection for the Technical Risk team from nothing. It surfaced roughly one million such accesses, each one with enough detail attached that someone could actually go and fix it.
The problem
The rule was clear and the visibility was zero. Nobody could answer how often it happened, which processes were responsible, or where they ran. Without that, nobody could enforce the policy.
What I owned
I owned the detection end to end. I brought every access method into one log in place of several partial views nobody could reconcile, and built an automated report on top. For each access, the report told Technical Risk which process made it, where it ran, and when, which is what they needed to act. Acting on each finding was their call.
The hard part
Before writing any code, I enumerated every way a connection to these databases could be initiated, so that no access path sat outside the net. I started there because of a blind spot from the year before. After an internal audit finding, I had led the migration of 16,000 databases onto secure infrastructure and built logging to find out what accessed them. When we cut over, out of hours and with a revert path ready, one of the processes failed. It served the businesses in Japan, and it reached the databases through a path my logging didn’t cover. We reverted in minutes with no business impact. The lesson was that instrumentation you have not proven complete is evidence of nothing.
Outcome
Roughly one million accesses to production databases from non-production hosts surfaced, and each was either shut down or moved onto production infrastructure. From then on, the policy was enforceable.