Privacy and preparation
Dataset audit log requirements for a data licensing transaction
By SourceX Editorial · Reviewed by Noah Loul ·
9 sections
Short answer
A data licensing transaction should retain one ordered, tamper-evident log of every decision and handoff: scope approval, the frozen manifest hash, release authorization, access granted and its expiry, transfer, key release, the recipient's matching receipt hash, access closure, corrections, and proof of deletion or return. Each entry names a person, references the agreement and dataset version, and points to checkable evidence.
Checklist
Dataset audit log
Key takeaways
- The transaction log sits above system logs and ties every approval and handoff to one agreement and one dataset version.
- Ten event codes, from scope approval to deletion proof, cover the points where control of data, keys or permission changes hands.
- Both parties verify the package by comparing the sender's manifest hash with the recipient's independently computed hash.
- Hash-chained entries, write-once storage and separate custody make the log itself credible.
- Keep the log for the license term plus audit window plus claims period, as counsel sets, and no longer.
What audit trail should a data licensing transaction retain?
A data licensing transaction should retain one ordered record of every decision and handoff: who approved which dataset version, what access was granted and when it expires, the hash of the exact package released, how the key and the files moved, what the recipient confirmed receiving, when access was revoked, and how deletion or return was proven. Each entry should point to its evidence, not just describe it.
System logs alone do not do this. Cloud access logs, ticket histories and email threads each hold a fragment, kept by different teams under different retention settings, and none of them names the license or the dataset version. The transaction log is the thin layer on top that ties those fragments to one agreement and one release, so that someone reading it years later can reconstruct what left the company, under which terms, and what happened to it.
This page gives that layer as a specification: the events to record, the fields every entry needs, how the two parties reconcile their records, how to make the log itself hard to alter, how long to keep each part, and a worked example. It complements, rather than replaces, the release authorization form, the buyer's access logs and the destruction certificate.
Which events should the specification require?
Record an event at every point where control of the data, the key or the permission changes hands, plus the decisions that authorize those changes. If an event cannot be tied to evidence someone else can check, it is a note, not a log entry.
The table below is the event catalogue. The recorder is the party that creates the entry; the other party should hold a copy or a matching entry of its own.
Recurring deliveries repeat E02 through E08 for each version, under the same E01 approval, so a monthly feed produces a short block of entries every month rather than one long, ambiguous record. A new E01 is needed only when scope, licensee or permitted use changes. Keep the codes fixed across versions so a reviewer can scan for the one block where, say, E07 is missing or E08 never happened.
| Event | Trigger | Minimum evidence | Recorded by |
|---|---|---|---|
| E01 Scope approved | Signed agreement and approved dataset scope | Agreement reference, scope document version, approver name and role | Data owner |
| E02 Version frozen | Final package built for release | Manifest file with per-file hashes and the hash of the manifest itself | Data owner |
| E03 Release authorized | Named person approves this version for this licensee | Signed release authorization referencing E01 and the E02 manifest hash | Data owner |
| E04 Access granted | Bucket grant, signed link, SFTP account or drive dispatched | Principal or account ID, permissions, start time, expiry time | Party that controls the storage |
| E05 Transfer completed | Last file copied or drive delivered | Transfer job ID or carrier tracking reference, bytes moved, tool verification result | Sender |
| E06 Key released | Decryption key or grant made available | Channel used, recipient identity check performed, time, key identifier (never the key) | Key custodian |
| E07 Receipt confirmed | Recipient verifies the package | Recipient-computed manifest hash, file count, mismatch list (empty or not) | Recipient |
| E08 Access closed | Grant expired or revoked after receipt | Revocation time, proof the grant no longer works or expiry setting | Party that controls the storage |
| E09 Change or correction | Deletion request, correction or re-delivery | Request reference, affected records or files, new manifest hash if re-released | Either party |
| E10 Deletion or return proven | End of term, termination or drive return | Destruction or sanitization certificate, method, date, who performed and verified | Party holding the copy |
What fields does every log entry need?
Every entry needs the same envelope so entries from both parties can be sorted, matched and checked: when, where, who and what, plus the transaction identifiers that ordinary system logs lack. The OWASP Logging Cheat Sheet frames application logging the same way, listing when, where, who and what as the attributes each event must carry and recommending an interaction identifier that links all events belonging to one interaction.
At a glance
What fields does every log entry need
Use the list below as the field set. Keep values factual and short; the evidence itself lives in a referenced file, not inside the log.
- entry_id: sequential number within this transaction, never reused.
- transaction_id: one identifier for the agreement and release, the equivalent of OWASP's interaction identifier.
- event_code: one of E01 to E10 from the catalogue, so entries can be checked for gaps.
- event_time and logged_time: when it happened and when it was written down, in UTC with offset, since the two can differ.
- actor: named person or service identity, with organization and role; never a shared account.
- dataset_version: the manifest hash from E02, so every later entry is tied to one exact package.
- agreement_ref: agreement and amendment identifiers that authorize the event.
- result: success, failure or deferred, with a short reason for anything other than success.
- evidence_ref: file name and hash of the attached evidence, such as a transfer report or certificate.
- previous_entry_hash: hash of the prior entry, which turns the log into a chain where a deleted or edited entry shows up.
- recorded_by: who wrote the entry, when it differs from the actor.
How do the sender and recipient logs prove the same package changed hands?
Both parties verify by comparing independent records of the same facts, not by trusting one side's log. The sender records the manifest hash at release (E02); the recipient computes the hash of what arrived and records it at receipt (E07). If the two values match, both sides can show the same package changed hands. If they differ, the mismatch list says which files to re-send, and the transfer is not complete until a new E07 matches.
Access limits are verified the same way. The grant record (E04) states what the recipient may do and until when; the storage provider's own access record shows what was actually done. At E08 the controlling party checks that the grant has expired or been revoked and records the proof, for example a failed test request or the expiry setting itself.
Do the reconciliation at three moments: right after receipt, right after access closes, and at the end of the license term. At each one, walk the event codes in order and confirm there is no gap, such as a key release with no receipt confirmation or an access grant that was never closed.
- Package: E02 manifest hash equals E07 recipient hash, and file counts match.
- Timing: E06 key release is later than E05 transfer completion and earlier than or equal to E07 receipt.
- Access: E04 expiry is set, and E08 shows it took effect.
- Scope: every event references the same agreement_ref, or a recorded amendment.
- Closure: E10 exists for every copy the agreement says must be deleted or returned.
How do you keep the log itself trustworthy?
Make the log hard to change without detection, and keep it away from the people whose actions it records. A log that the delivery team can edit proves little to the other party or to an auditor.
Three controls do most of the work. First, chain the entries: each entry carries the hash of the previous one, so removing or rewriting an entry breaks every hash after it. AWS uses the same idea for CloudTrail log file integrity validation, where each hourly digest file lists the log files delivered in the previous hour with their hash values and the signature of the previous digest file.
Second, store the log and its evidence in write-once storage. In Amazon S3 Object Lock compliance mode, a protected object version cannot be overwritten or deleted by any user, including the account's root user, during the retention period. Azure Blob Storage offers immutable storage with time-based retention and legal hold policies that keep data in a write once, read many state. Either fits a transaction log that must outlive the delivery team's involvement.
Third, separate custody. Keep the log in an account or system that the people moving data cannot administer, and give read access to the people who answer audits. OWASP's guidance is consistent with this: it says logging mechanisms and collected event data must be protected from tampering in transit and from unauthorized access, modification and deletion once stored, and recommends built-in tamper detection.
Finally, settle the clock. Entries from two companies only line up if both record time the same way, so agree on UTC with an explicit offset and synchronized system clocks before the first delivery. When a timestamp is disputed, the order of the hash chain and the provider's own records, such as transfer job reports, settle the sequence.
How long should each part be kept?
Keep the transaction log at least as long as the longest of three periods: the license term, any audit window the agreement grants after the term, and the period during which a claim about the data could still be raised, as counsel defines it. Keeping it longer than needed is also a risk, because the log names people and may reference personal data.
OWASP states the rule in both directions: log data must not be destroyed before the required retention period and must not be kept beyond it. NIST's original log management guide, SP 800-92, covers retention as part of log management planning; NIST's page notes a draft revision is in progress, so check current status before citing it in a policy.
| Record | Clock starts | Keep at least until | Note |
|---|---|---|---|
| Transaction log entries E01 to E10 | Agreement signature | End of term plus audit window plus claims period | Write-once storage, separate custody |
| Manifest and receipt hashes | E02 and E07 | Same as the transaction log | Small files; never delete before the log |
| Raw transfer and access logs | E04 | End of the audit window, or summarized into the log first | Large; summarize what proves scope |
| Key release records | E06 | Same as the transaction log | Never store the key itself in the log |
| Sanitization or destruction certificates | E10 | Same as the transaction log | Proves the end state of each copy |
Worked example: one dataset version delivered by bucket and one by drive
Illustrative example, invented to show structure. A field services company licenses three years of de-identified work order history. Version 1 goes to the licensee through a dedicated cloud bucket; a large attachment archive goes on an encrypted drive.
For the bucket path, the log reads in order: E01 scope approved by the operations director; E02 manifest of 214 files with its hash; E03 release authorized by the same director against that hash; E04 read-only grant to one licensee role, expiring in 14 days; E05 the licensee's copy job completes; E06 the key custodian releases the decryption key by a separate channel after checking the recipient against the contact named in the agreement; E07 the licensee's engineer records a matching manifest hash and 214 files; E08 the grant expires and a test request fails.
For the drive path, the exception is that custody passes through a carrier, so E05 becomes a series of handoff entries, each with the seal number and tracking reference. Where a cloud provider's device service is used instead of your own drive, attach the provider's records rather than recreating them. Microsoft's Azure Data Box documentation, for example, lists a manifest or bill of materials file with names, sizes and checksums at prepare-to-ship, a copy log during upload, and chain of custody logs after data erasure that include audit logs and order history.
At term end, E10 records the licensee's destruction certificate for its copy and the drive's sanitization record. NIST's SP 800-88 Revision 2 FAQ refers to documentation and evidence requirements, describing them as certificates of sanitization, so ask for the method, date and who performed and verified the work.
Which gaps should hold a release until the log is fixed?
Stop the release when the log cannot be completed honestly. A missing entry before release is cheap to fix; a missing entry discovered in an audit is not.
At a glance
Which gaps should hold a release until the log is fixed
- Stop if E03 cannot reference a frozen E02 manifest hash. Releasing an unfrozen package means nobody can later prove what left.
- Stop if the only available recipient identity is a shared account or an unnamed address. Ask for a named person and role.
- Narrow the scope if part of the dataset has an unresolved rights or privacy question. Release the clean part under its own manifest and log the rest as withheld.
- Ask a security engineer to review the design when the log will be held by a third party, when keys are managed in a cloud key service by someone outside the company, or when the delivery spans several clouds.
- Ask counsel to set retention periods and to confirm what the agreement requires on audit, deletion and return; this page is general information, not legal advice.
- Ask privacy review when log entries would contain personal data, for example the names of data subjects in a deletion request; reference request IDs instead.
Event codes E01 to E03 on a SourceX deal
Licensing through SourceX runs qualification, rights review, contracting, preparation, delivery and payment as one sequence, and two catalogue events are fixed at its start: the company approves the scope and terms and signs, E01 and E03 in this specification, before anything is delivered to SourceX.
The delivery date is fixed in each deal's signed Dataset Deal Confirmation, and de-identification is done by SourceX through approved processing routes, so the version frozen at E02 is what that step receives. Keep your own copy of the log with the manifest hash and approvals whichever route you use; checking eligibility takes a brief company assessment with no upload.
Frequently asked questions
What is the difference between an audit log and an access log for a dataset?
An access log is a system record of reads and writes on storage, kept by whoever runs that storage. A transaction audit log is a higher-level record that ties approvals, transfers, key releases, receipt and deletion to one agreement and one dataset version. The access log is evidence that the audit log references.
Should the decryption key be written in the audit log?
No. Record the key identifier, the channel used, the recipient check performed and the time of release. Writing the key into the log would put the key and the record of the data side by side, which defeats the point of keeping them apart.
Who should own the transaction log, the supplier or the buyer?
Each party should keep its own copy, and the agreement can name one as the record of reference. The supplier usually creates the approval and release entries and the buyer creates the receipt and deletion entries. Reconciling the two copies is what makes the record credible.
How do you prove the log was not edited later?
Chain each entry to the previous one with a hash, store the log in write-once storage with a retention period, and keep it in an account the delivery team cannot administer. A changed or missing entry then breaks the chain, and the storage setting shows nobody could overwrite it.
Do small, one-off deliveries need the full event catalogue?
Keep all ten event codes, but the evidence can be light: a short manifest, an email confirmation of the receipt hash and a signed deletion statement. What matters is that every handoff has an entry and every entry points to something checkable.
Sources
- The OWASP Logging Cheat Sheet says logs must record when, where, who and what for each event, recommends an interaction identifier, calls for tamper protection and says logs must be kept no shorter and no longer than the retention period. Source
- AWS CloudTrail digest files list the log files delivered in the previous hour, their hash values and the signature of the previous digest file. Source
- In Amazon S3 Object Lock compliance mode, a protected object version cannot be overwritten or deleted by any user, including the root user. Source
- Azure immutable storage for Blob Storage keeps data in a write once, read many state using time-based retention and legal hold policies. Source
- Azure Data Box import orders produce a manifest with file names, sizes and checksums, copy logs during upload and chain of custody logs after data erasure. Source
- NIST's SP 800-88 Rev. 2 FAQ refers to documentation and evidence requirements for media sanitization, i.e. certificates of sanitization. Source
- NIST SP 800-92 is NIST's Guide to Computer Security Log Management; NIST notes a draft revision is in progress. Source
See if your company qualifies
A short company assessment. No data uploads are needed.