personally identifiable information
Any information that can identify a person, directly or combined with other data, such as a name, email address, location or account number.
Leaking it harms real people and can breach privacy law.
In more detail
PII stands for personally identifiable information. It appears in requests, responses, databases, caches, backups and logs, and must be protected in every copy. Collect only what a purpose needs and document sensitive fields in the contract.
Example
Logs are copied to places with weaker access rules than the database, so a card number in a log line is an incident on its own.Related terms
- data minimisation — Collecting, keeping and exposing only the personal data a stated purpose actually needs.
- redaction — Removing or hiding sensitive values, such as tokens or personal data, before data is logged, displayed or shared.
- data retention — Rules for how long each kind of data is kept and what happens to it when its purpose ends.
- GDPR — The General Data Protection Regulation, the European Union law that governs how organisations collect and handle personal data.
- telemetry — The data a running system sends out about itself, such as logs, metrics and traces.
- information disclosure — Letting someone read data they should not see, such as another customer's order, internal error details or a secret printed into a log.
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
- structured logging — Writing each log entry as named fields, such as status, duration and request identifier, instead of a free-text sentence.
- span attribute — A typed key and value recorded on a span, such as http.route="/checkout", that explains what the work did.
Taught in
- Threat-Model An LLM App — AI Engineering: LLM Apps, RAG & Agents
- Excessive Agency — AI Engineering: LLM Apps, RAG & Agents
- Guardrails, Privacy And Governance — AI Engineering: LLM Apps, RAG & Agents
- Tracing And Monitoring — AI Engineering: LLM Apps, RAG & Agents
- Images, Audio And Speech — AI Engineering: LLM Apps, RAG & Agents
- API Gateways And Proxies — Modern API Architecture: REST, GraphQL & gRPC
- Observability: Logs, Metrics, Traces — Modern API Architecture: REST, GraphQL & gRPC
- Handling PII And Data Privacy — Modern API Architecture: REST, GraphQL & gRPC
- Twelve Alerts, Ten Services — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Which Zone, Which Journey? — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- OpenTelemetry, Container Publishing and Trimming — Modern .NET Core, C# & Enterprise Microservices
- Structured Logging And Why Text Fails — Full-Stack Observability: Metrics, Tracing & Logging
- Instrumenting A Service With Client Libraries — Full-Stack Observability: Metrics, Tracing & Logging
References
- NIST SP 800-122: Guide to Protecting the Confidentiality of PII
- European Commission: EU data protection legal framework (GDPR)
- NIST glossary: personally identifiable information
- ICO: what is personal data?
- OWASP Logging Cheat Sheet