PII: Data That Identifies a Real Person
PII is any data that can identify a real person. Email addresses, IP addresses, and device IDs all count, so analytics systems must mask or hash them before storage. A leaked salt can still expose a hashed email, so do not assume hashing removes PII.
WHY IT EXISTS: Analytics and engineering teams collect massive amounts of user data to improve products. Without a clear boundary between anonymous metrics and personal data, companies risk exposing real people's identities in breaches or violating privacy laws. PII exists as a legal and technical category precisely because seemingly harmless fragments can be combined to single out an individual, causing harm or enabling surveillance.
THE MENTAL MODEL: Think of PII as the connective tissue between a database row and a real human being. If a piece of data lets you walk from a log entry to a specific person at a specific address, it is PII. The threshold is not sensitivity but identifiability. A credit card number is obviously PII, but so is a persistent device ID or a rare combination of demographic fields.
HOW IT WORKS: In practice, identifying PII means auditing every field in a schema against two questions. First, can this value alone identify someone? Direct identifiers like email, phone number, and government ID fall here. Second, can this value identify someone when combined with other data? Indirect or quasi-identifiers like zip code, birth date, gender, or IP address fall here. Data protection laws generally regulate both categories, so engineering teams must map schemas, classify fields, and apply controls like encryption at rest, tokenization in transit, or differential privacy in query results.
WHEN TO USE IT: You should flag and protect PII whenever you store, process, or transmit user data. This includes event streams, data lakes, logs, and third-party integrations. Use it as the trigger for access controls, retention policies, and consent checks. If a dashboard or ML training set contains fields that could re-identify a user, treat the whole pipeline as PII-bound.
WHEN NOT TO USE IT: Do not treat aggregated or properly anonymized data as PII. If you have stripped direct identifiers and applied techniques like k-anonymity so that no individual can be distinguished from at least k-1 others, the dataset may fall outside PII scope. Also, do not expand the label to cover harmless internal identifiers like auto-incrementing primary keys that have no mapping to real-world identity.
ONE CANONICAL EXAMPLE: A product team builds a recommendation engine and exports a user table with name removed but keeps email_hash, birth_date, zip_code, and gender. They believe the data is now anonymous. An analyst realizes the hash is unsalted and reversible, and that zip plus birth date plus gender uniquely identifies most individuals in the United States. The team has to reclassify the entire export as a PII breach, scrub the data, and re-architect with salted hashing and generalization of geographic and demographic fields.
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.