Can a company tell when someone bulk-queries customer data through a business screen?
· DataMint · 7 min read
Read the incident reports of customer data leaks and a similar sentence keeps appearing. "The data was queried over several months, with an account that had normal permissions, through a normal business screen." No hacker broke through a firewall. Someone ran the usual query on the usual screen, far more than usual.
To answer the question in the title: most companies do not find out right away. Records are kept somewhere, but those records do not say "a lot was queried." This post covers why it is not visible, and what you have to look at to see it.
The position existing controls do not cover
Companies that handle personal data usually have database access control and database encryption. Both are necessary and do their jobs. But they cover different positions.
| Path | Example | Guarded by |
|---|---|---|
| A person connects to the database directly with a tool | A DBA queries with an SQL tool | Database access control |
| The stored data itself | Disks, backup files | Database encryption |
| Business screen → WAS → database | An agent searches on the customer lookup screen | Often left empty |
Here is why the third row is empty. When someone queries from a business screen, it is not the person who connects to the database but the web application server (WAS). The WAS connects to the database with one shared account created in advance. From the database side, the queries of three hundred agents are all queries by the single account APP_USER. The database does not know who did it.
Encryption does not stop it on this path either. The screen has to show customer data, so the application receives decrypted values. It is, after all, a normal request from an authorized user.
There are access logs, so why does no one know?
Systems that process personal data keep access logs. This part is about Korea. Article 8 of the Standards for Measures to Ensure the Safety of Personal Information (in Korean), a notice of the Personal Information Protection Commission (PIPC), says to keep the access logs of personal information processing systems for at least 1 year, and at least 2 years for systems that process the data of 50,000 or more people or that process unique identification information or sensitive information. Financial companies have to control the viewing and printing of user information under Article 13 of Korea's Electronic Financial Supervision Regulations (in Korean).
Companies that handle credit information have a more specific standard. Appendix 3 of Korea's Regulations on Supervision of Credit Information Business (in Korean) says to review periodically whether personal credit information query records are appropriate. It says to have controls for employees who attempt queries beyond their permissions more than a set number of times, and to pick out and review departments and employees whose query counts have jumped compared with usual. In effect the regulation already requires you to look at "how much was queried."
So the records exist. The problem is the shape of the records.
2026-11-11 15:51:32 teller12 /ibank/branch/customer/list view
2026-11-11 15:51:40 teller12 /ibank/branch/customer/list view
2026-11-11 15:52:03 teller12 /ibank/branch/customer/detail viewWho opened which screen and when is there. How many people's data the query returned is not. A query that showed one customer and a query that showed sixteen hundred at once are the same single line. It is hard for a person to find the odd one in the millions of lines of a month's records, and even if they do, it is a month later.
You could change the application to record the count. But in a system with hundreds of lookup screens, changing the code screen by screen becomes a project of several years, and every new screen gets missed.
What to use as a signal
A bulk leak shows up in three shapes.
A lot at once
This is when a single query returns far more personal data rows than usual. An agent screen normally shows one person to a few dozen. If a thousand came out at once, either the search was run with empty conditions or the screen was called in a way it was not meant to be.
A little at a time
Fifty rows at a time, a hundred queries in ten minutes. Looked at one by one, every query is normal. You see it only when you add up what the same user accumulated in a short time. This is the shape you get when an automated tool scrapes a screen.
A query never seen before
The shapes of the SQL an application runs are fixed. Even with hundreds of screens, the kinds of SQL are finite. If one day SQL of a shape never seen before reads a personal data column, it is worth a look. It may be a new feature release, or it may be SQL injection.
What you run into in operation
- There is legitimate bulk work. Night batches, month-end reports, submissions to supervisory authorities. Make these paths and accounts exceptions, but put an expiry date on each exception. An exception that stays forever once added becomes the hole.
- You cannot know the threshold from the start. How many rows at once counts as "a lot" differs by task. The safe order is to record without blocking first, look at the actual distribution, then set the threshold.
- It must not stop the business. If a fault in the detection device makes the customer lookup screen slow or throw errors, the device gets turned off right away. It has to be designed to give up detection and keep the business running when something goes wrong.
- Alerts have to go out right away. Finding it in a review a month later and knowing five minutes later mean different amounts of damage.
DataMint Scope watches from the WAS
Our DataMint Scope attaches an agent to the WAS and watches this path. The WAS is the only place that knows both who the requesting user is and what SQL is being run. Application code is not changed. You add one line to the WAS startup options.

- It detects the three signals above, a lot at once, accumulation over a short time, and never-seen SQL, records them on the admin console and notifies the person in charge. It also sends to webhooks, syslog and email.
- It does not read or store the values of query results. It keeps only the user, the client IP, the path, the SQL shape with values removed, and the row count.
- Personal data columns, limits and exceptions are set in the admin console and apply to every WAS within 1 minute.
- Who viewed detection events and who changed policies and exceptions is recorded too.

What it does today and what it does not
To be clear: what Scope provides today is detection and alerting. It does not block queries or change results. A response feature that replaces the personal data in queries that cross the threshold with test data before returning them is in preparation, and we plan to proceed with customers who have confirmed their thresholds well enough from detection records.
If Scope has a problem, the service comes first. It does not make requests wait or throw errors. It skips its checks. That also means nothing is detected during that time. The environments we have verified are Tomcat 9 and WildFly 26. JEUS and WebLogic are verified together with the customer in the customer's environment.
It is not a product that replaces database access control and encryption. Keep both as they are. Scope complements them on the business screen path that those two do not cover.
Wrapping up
Most companies can answer "who queried." Many cannot answer "how much was queried." Bulk leaks show up in the second question. Start by checking whether your access logs record a count, and whether you can count how many customers one person viewed in ten minutes.
The path by which production data moves into development and test environments is covered in Why you should not test with production data.
- #bulk query detection
- #customer data access control
- #insider data leak
- #access log review
- #application server security
- #personal data monitoring