Finding personal data across files

I built a Python scanner using regular expressions and SQL to look for possible personal data exposure in more than 1,000 TXT logs, PDF reports and XLSX spreadsheets. The scanner helped bring the audit timeline from weeks to days.

What I automated

Opening files one by one made it slow to apply the same checks across the population. The script flagged text that fit patterns and gave reviewers a shorter list to inspect. That shifted time from searching files to deciding what a match meant.

What a match tells me

An identifier-shaped value may be a report reference. An email address may belong in a contact export and still need a check on who can access it or how long it is retained. I’d keep the match type and source location with the reviewer’s rationale. If the match is confirmed, I’d record whether the data is necessary and which handling requirement applies.

Where screening stops

I’d reconcile the manifest with the processing log, including corrupt or password-protected files. A PDF made of scanned images needs a separate review path if the scanner only reads text. A file with zero extracted text and a file read without a match are different outcomes. I’d record both so a clean report can’t hide a gap in coverage.

I’d keep the minimum evidence necessary to support the conclusion and use masked references in working copies. The original files and workpapers are private.

The scanner helped the review team focus on likely exposures. The coverage check mattered as much as the matches because unreadable files still needed a review.