← Back to Blog
Data SecurityZero TrustRuntime SecurityCompliance

Data Provenance vs Lineage vs Chain of Custody: What Runtime Security Actually Needs

Lattix branded cover for Data Provenance vs Lineage vs Chain of Custody. /12 section number, three overlapping evidence circles with cryptographic seals, IBM Plex Mono on dark grid background, surgical yellow accent.

Security teams, data architects, and compliance officers use provenance, lineage, and chain of custody interchangeably. The overlap is real, all three describe evidence about data's history, but the questions each answers are distinct. Treating them as synonyms means building controls that don't match the threat model.

This article defines each term using authoritative sources, shows where they overlap and where they diverge, and connects the distinctions to runtime security decisions, investigation, audit, and controlled exchange.


Quick Comparison

ConceptCore QuestionTypical EvidenceRuntime UtilityAudit Utility
ProvenanceWhere did this data originate, and under what context?Source identity, creation timestamp, authoring system, collection method, environmental contextMedium, origin checks for trust decisionsHigh, establishes authenticity of source claims
LineageHow was this data derived, transformed, or combined?Transformation graph, processing steps, dependency DAG, version historyHigh, enables policy on derivation pathHigh, reconstructs processing for forensics
Chain of CustodyWho possessed or handled this data, and under what controls?Transfer logs, access records, cryptographic seals, seal integrity verificationLow, possession is post-hoc evidenceVery high, legal/admissibility standard

1. Provenance: Origin, History, and Context

Provenance is evidence about the origin of data: who or what created it, when, under what conditions, and with what asserted properties.

Authoritative Definitions

  • W3C PROV-DM (Provenance Data Model): "Provenance is defined as a record that describes the people, institutions, entities, and activities involved in producing, influencing, or delivering a piece of data or a thing." [W3C PROV-DM]
  • NIST SP 800-160 v2: Provenance as "the chronology of the origin, development, and ownership of an item" with emphasis on supply chain integrity. [NIST SP 800-160 v2]
  • Open Provenance Model (OPM): Focuses on causality: provenance as a directed acyclic graph of entities, activities, and agents connected by used, wasGeneratedBy, wasControlledBy relations.

What Provenance Captures

DimensionExamples
Source identitySensor ID, API endpoint, user account, ML model version, document author
Creation contextTimestamp, timezone, firmware version, sensor calibration state, lab conditions
Asserted propertiesClassification level, data quality score, licensing terms, consent flags
Collection methodAPI call parameters, sensor sampling rate, survey methodology, extraction query

Runtime vs. After-the-Fact

Provenance is primarily after-the-fact for audit and trust establishment. At runtime, provenance checks typically reduce to: "Do I trust this source?" (a policy decision based on attested origin). The full provenance graph is rarely evaluated in-line; it's consulted when an anomaly triggers investigation.


2. Lineage: Derivation, Transformation, and Flow

Lineage is the relationship graph showing how data was derived, transformed, combined, or filtered from its ancestors. It answers: "What processing produced this output?"

Authoritative Definitions

  • ISO/IEC 19583 (Metamodel for Data Lineage): Defines lineage as "the life cycle of data, including its origins, movements, transformations, and dependencies."
  • Apache Atlas / DataHub / OpenLineage: Lineage as a directed acyclic graph (DAG) where nodes are datasets/processes and edges represent input-to-output relationships.
  • NIST SP 800-53 SC-16: Transmission confidentiality/integrity controls that implicitly require lineage tracking for data flow enforcement.

What Lineage Captures

DimensionExamples
Transformation stepsSQL query, ETL job, ML feature engineering, aggregation, join, filter
DependenciesUpstream tables, API responses, model artifacts, reference datasets
VersioningGit commit of transformation code, container image digest, schema version
Processing metadataExecution timestamp, runtime parameters, resource consumption, error handling

Runtime vs. After-the-Fact

Lineage has high runtime utility. Policy engines can evaluate: "Was this data derived from a PII-containing source?" or "Did this pass through the approved sanitization transform?" These are derivation-path questions answerable from the lineage graph at decision time. After the fact, lineage enables forensic reconstruction: "Show me every transform between the raw sensor reading and the dashboard metric."


3. Chain of Custody: Accountable Possession and Handling

Chain of custody is a legal and operational concept: documented, unbroken evidence of who possessed, accessed, transferred, or controlled data—and under what safeguards—at each step.

Authoritative Definitions

  • NIST SP 800-86 (Guide to Integrating Forensic Techniques): "Chain of custody is the documented and unbroken transfer of evidence... [establishing] that the evidence has not been altered, substituted, or contaminated."
  • ISO/IEC 27037 (Guidelines for Identification, Collection, Acquisition, and Preservation of Digital Evidence): Formalizes custody tracking as a requirement for admissibility.
  • DoD 5220.22-M / NISPOM: Classified handling requires continuous custody documentation with two-person integrity controls.

What Chain of Custody Captures

DimensionExamples
Transfer eventsTimestamp, sender identity, receiver identity, transfer mechanism (API, physical media, network)
Access eventsWho read/copied/exported, under what authorization, from what system
Integrity sealsCryptographic hashes (SHA-256, BLAKE3), digital signatures, tamper-evident logs, Merkle proofs
Control environmentEncryption state (at rest/in transit), HSM-backed keys, TEE attestation, air-gap verification

Runtime vs. After-the-Fact

Chain of custody is almost exclusively after-the-fact. It is the evidentiary standard for legal admissibility, regulatory audit, and incident attribution. At runtime, possession checks ("Is this data currently in an authorized enclave?") are access control decisions, not chain of custody. Custody logs are consulted when something goes wrong.


4. Where They Overlap (and Where They Don't)

Overlap AreaProvenanceLineageChain of Custody
Creation eventOrigin metadataRoot node in DAGFirst custody record
Transformation(not its focus)Core concernIf transform = handling
Transfer between systems(as data flow edge)Core concern
Access/read eventCore concern
Integrity verificationIndirect (via source attestation)Indirect (via deterministic transforms)Direct (seals, signatures)
Legal admissibilitySupporting evidenceSupporting evidencePrimary standard

Key distinction: Provenance and lineage describe data's journey. Chain of custody describes human/system accountability for that journey. A dataset can have perfect provenance and lineage but broken custody (unlogged admin access). Conversely, perfect custody without provenance/lineage means you know who held it but not what it is or how it was made.


5. End-to-End Example: Clinical Trial Data Sharing

Consider a pharmaceutical company sharing clinical trial results with a regulatory agency and a research partner.

[Source] → [Transform] → [Share] → [Policy Decision] → [Downstream Use/Audit]

Step-by-Step Evidence

StageProvenance EvidenceLineage EvidenceChain of Custody Evidence
Source (EDC system)Site ID, patient consent version, CRC signature, capture timestampRoot dataset node:
aw_visits_v3EDC export log: operator ID, export hash sha256:abc..., TLS 1.3 session
Transform (De-identification pipeline)Pipeline version 2.7.1, k-anonymity parameter k=5, SAE redaction rulesDAG:
aw_visits_v3 → deid_visits_v3 (SQL + custom UDFs)Pipeline run log: Airflow DAG run ID, executor identity, output hash sha256:def...
Share (To regulator)Bundle manifest: source study ID, IRB approval #, data use agreement refDerived dataset deid_visits_v3 packaged as submission_pkg_v1Transfer log: SFTP session ID, sender cert, receiver cert, MFT hash verification
Policy Decision (Regulator review)Reviewer checks: consent validity, SAE completenessReviewer traces: submission_pkg_v1 → deid_visits_v3 →
aw_visits_v3Access log: reviewer ID, timestamp, read-only portal session, watermark
Downstream Use (Research partner)Partner receives: provenance bundle + lineage graph + custody logPartner's analysis DAG: submission_pkg_v1 → cohort_analysis_v1Partner's custody: import hash verification, enclave attestation, export controls

What Each Evidence Model Enables

  • Provenance: Regulator verifies the data originated from an IRB-approved study with valid consent.
  • Lineage: Research partner confirms the cohort analysis used only the de-identified dataset, not raw PHI.
  • Chain of Custody: Legal team demonstrates unbroken, sealed transfer from EDC → pipeline → regulator → partner, admissible in court if challenged.

6. Comparison Table: Questions, Evidence, and Implementation

DimensionProvenanceLineageChain of Custody
Primary question answered"Where did this come from?""How was this made?""Who held this, and was it protected?"
Typical evidence artifactsSource attestations, creation metadata, collection recordsTransformation DAG, dependency manifests, version pinsTransfer logs, access logs, cryptographic seals, integrity proofs
Runtime utilityMedium (trust-origin policies)High (derivation-path policies)Low (possession is post-hoc)
Audit utilityHigh (source authenticity)High (processing reconstruction)Very high (legal admissibility)
Implementation patternAttestation at ingress; immutable origin recordsDAG capture at each transform; versioned code+dataTamper-evident logging at every handoff/access; seal verification
Key standardsW3C PROV, Open Provenance Model, NIST SP 800-160OpenLineage, ISO 19583, Apache AtlasNIST SP 800-86, ISO 27037, DoD NISPOM
Common failure modeMissing/weak source attestationIncomplete DAG (untracked transforms)Gaps in transfer/access logs; broken seals
Strengthens with cryptoContent-addressable IDs (CID), signed attestationsDeterministic builds, reproducible transforms, Merkle DAGsHash chains, digital signatures, TPM/TEE attestation, transparency logs

7. Cryptographic Strengthening: What It Proves (and What It Does Not)

Cryptographic mechanisms strengthen all three models but do not collapse their distinctions.

MechanismStrengthensWhat It ProvesWhat It Does NOT Prove
Content-addressable IDs (IPFS CID, BLAKE3)Provenance, Lineage"This exact byte sequence was produced"Semantic correctness; source honesty; transformation logic validity
Signed attestations (DSSE, in-toto, Sigstore)Provenance, Chain of Custody"Entity X asserts Y about this artifact at time T"Truth of assertion; absence of coercion; key compromise after signing
Merkle DAGs / Hash chainsLineage, Chain of Custody"This output derives from these inputs via this transform"That the transform code matches what was audited (needs reproducible builds)
TEE/TPM attestationChain of Custody, Provenance"Code ran in this measured environment with these inputs"Correctness of code logic; absence of side-channel leakage
Transparency logs (Rekor, Trillian)Chain of Custody, Provenance"This artifact was publicly logged at time T"That the artifact is safe/valid; only that it existed and wasn't secretly replaced

Critical principle: Cryptography establishes integrity of evidence and binding between claim and artifact. It does not establish semantic truth of the claim. A signed attestation that "this data is PII-free" proves the signer made that claim—not that the data is actually PII-free. Verification requires evaluating the basis for the claim (lineage analysis, scanning results), not just the signature.


8. Connecting to Data-Centric Security and Lattix

Lattix's data-centric security model treats evidence as a first-class primitive. The distinctions above map directly to policy enforcement points:

Enforcement PointEvidence ModelLattix Primitive
Ingress classificationProvenanceDataOrigin attestation, source trust score
Transformation governanceLineageDerivationPolicy on DAG paths (e.g., "no PII → analytics without Deidentify transform")
Controlled exchangeChain of CustodyTransferSeal, AccessLog, CustodyReceipt for cross-boundary shares
Runtime authorizationLineage + ProvenancePolicyDecisionRequest evaluates derivation path + origin trust in real time
Audit/forensicsAll threeUnified EvidenceBundle combining provenance graph, lineage DAG, custody log

Approved Lattix positioning (from internal terminology registry):

  • Lattix does not claim "chain of custody" for all data flows, only for controlled exchange scenarios where legal/admissibility requirements apply.
  • Lattix's runtime policy engine evaluates lineage-derived signals (derivation path, transform compliance) and provenance signals (source trust, classification at origin), not custody logs.
  • Custody evidence is generated and verified at exchange boundaries (partner shares, regulatory submissions, evidence preservation).

9. Summary: Which Model for Which Decision?

Decision ContextPrimary Evidence ModelSupporting Models
"Should I trust this incoming dataset?"ProvenanceLineage (if transformed upstream)
"Can this derived dataset enter the analytics zone?"LineageProvenance (origin classification)
"Is this transfer admissible as evidence?"Chain of CustodyProvenance + Lineage (what was transferred)
"Did this anomaly originate from a compromised source?"Provenance + LineageChain of Custody (insider access check)
"Can I prove this output wasn't tampered with after generation?"Chain of CustodyLineage (reproducibility), Provenance (origin integrity)

10. Further Reading


Terminology decisions in this article reflect current industry usage as of 2026. Where authoritative sources conflict, the source is cited. This article will be updated as standards evolve.