AETERNAE AI RESEARCH LLC INDEPENDENT RESEARCH
ÆAETERNAERESEARCH
Sign inRequest access
← Malware catalog

Attributed metadata history

REPORTPUBLIC METADATA

Redact before you prompt: a fail-closed pre-processor for call transcripts in Python

This article was created with the help of AI and the code was run and tested before publishing (Python 3.13, standard library only). Sending call transcripts to an LLM for QA scoring, summaries or theme analysis is now routine. The transcript is also where everything the customer said ends up: email addresses, callback numbers, and on payment calls, card numbers and security codes read out loud. Two pieces of official guidance frame the problem: The PCI Security Standards Council's FAQ 1210 says storing card security codes in an audio recording after authorization violates PCI DSS Requirement 3.3.1 "even if the data is encrypted", and that suppression or redaction during data entry should be enabled where it exists. A transcript or prompt log containing the code is, at minimum, something you want to avoid creating; check the details with your assessor. Canada's privacy regulator (OPC guidance, updated Oct 8, 2026) notes recordings collect "incidental personal information offered by the caller not relevant to the call", and asks for narrow purposes and limited retention. Managed redaction exists (for example Amazon Transcribe and the open-source Presidio), but both are explicit that it's not perfect. Amazon's docs: it "may not identify and remove all instances of sensitive data." Presidio: "no guarantee that Presidio will find all sensitive information… additional systems and protections should be employed." So this tutorial builds a small, deterministic pre-processor that sits between your transcript store and your model, designed around one rule: if it isn't sure, it doesn't send. It complements a real PII detector rather than replacing one. Design Normalise spoken digits. "Four one one one" becomes 4111, so number rules can see it. Excise payment segments. When a turn mentions a card number, security code or expiry, drop that turn and the following ones until the payment is confirmed (capped at 6 turns). Removing whole turns is more robust than blanking digits. Redact remaining identifiers with typed placeholders: email, Luhn-valid card numbers, phone numbers, other long numbers. Allowlist metadata by purpose. qa_scoring keeps call ID, date, queue, agent and duration. Caller number, name and account number never leave. Residual scan, fail closed. If any turn still contains 7+ digits, the call is marked QUARANTINE_FOR_REVIEW and should not be sent. Retention tag. Attach a delete_after date based on a per-purpose policy, and an audit record with counts only, never raw values. The code redact_for_ai.py (standard library only): """Minimise and redact a call transcript before it is sent to an AI model. Illustrative tutorial code, not a compliance tool. Pattern-based redaction misses things; treat the residual check and human review as part of the design. Pipeline: 1. normalise spoken digits ("four one one one" -> "4111") so they can be detected 2. excise payment segments entirely (prefer removing over spot-redacting) 3. redact remaining identifiers with typed placeholders 4. keep only the metadata fields the stated purpose needs 5. residual scan: if anything still looks like a long number, quarantine 6. attach a delete_after date from a per-purpose retention policy """ from __future__ import annotations import json import re import sys from collections import Counter from datetime import date, timedelta DIGIT_WORDS = {"zero": "0", "oh": "0", "one": "1", "two": "2", "three": "3", "four": "4", "five": "5", "six": "6", "seven": "7", "eight": "8", "nine": "9"} _TOKEN = r"(?:\d+|" + "|".join(DIGIT_WORDS) + r")" # three or more digit-ish tokens in a row, separated by spaces/commas/dashes/dots SPOKEN_RUN = re.compile(rf"\b{_TOKEN}(?:[\s,.\-]+{_TOKEN}){{2,}}\b", re.IGNORECASE) PAYMENT_OPEN = re.compile(r"card number|security code|\bcvv\b|\bcvc\b|expir|" r"back of the card|long number on", re.IGNORECASE) PAYMENT_CLOSE =

Reference details

Source category
research-report
First reported
Dec 03, 2026 18:20 UTC
Last reported
Dec 03, 2026 18:20 UTC
Catalog updated
Dec 03, 2026 18:26 UTC
Record ID
5fcd6ae25f09b8915278cdb2cc0c40aa2f21964dcdf9d3210a997ee3d876b762

Published indicators

Network indicators are visibly defanged. This page does not make them clickable or send them to another service.

No validated file hashes or network indicators are stored for this record.

Source observations

intelligence_src_6dc544294b7f21f98a

Source-provided label
Publisher RSS metadata
Evidence class
mentioned in report
Confidence
Not reported
Observed
Dec 03, 2026 18:20 UTC
Retrieved
Dec 03, 2026 18:26 UTC

This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.

Feed collection status

Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.

1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.

Review source update dates and status
  • intelligence_src_6dc544294b7f21f98aRecent successful batchLast successful batch: Last attempt:

Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.