#7789·crewAI

[FEATURE] Zero-Trust in-memory data sanitization tool (IETF draft-02)

Author: moxnoCreated Sep 27, 2026Updated Sep 27, 2026

Feature Area

Integration with external tools

Is your feature request related to a an existing bug? Please link it here.

NA

Describe the solution you'd like

Add ZTDSSanitizerTool to crewai_tools conforming to IETF Standards Track draft-sibiryakov-ztds-protocol-02 (https://datatracker.ietf.org/doc/draft-sibiryakov-ztds-protocol/).

Multi-agent pipelines regularly ingest and delegate tasks containing customer PII, database credentials, API tokens, and corporate secrets across crews and to external LLM providers. External proxy-based sanitizers add cloud latency and third-party subprocessor risk (GDPR Art. 28 / HIPAA).

ZTDSSanitizerTool provides:

  1. 100% local in-memory regex masking of sensitive entities into deterministic bracketed surrogates (e.g. [EMAIL_TOKEN_1], [API_SECRET_TOKEN_1]) with zero external network egress.
  2. In-memory restoration of original cleartext entities via restore() in length-descending order to prevent token collision.
  3. Theorem 2 volatile RAM zeroization via zeroize() to guarantee ephemeral session cleanup.

Describe alternatives you've considered

  • External SaaS DLP proxies (adds WAN latency, cost, and subprocessor compliance liabilities).
  • Ad-hoc regex scrubbing in task definitions (breaks bidirectional reasoning and leaves tokens un-restorable).

Additional context

Willingness to Contribute

Yes, I'd be happy to submit a pull request