[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:
- 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. - In-memory restoration of original cleartext entities via
restore()in length-descending order to prevent token collision. - 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
- IETF Internet-Draft: https://datatracker.ietf.org/doc/draft-sibiryakov-ztds-protocol/
- Standard Specification: https://ztds.ai/standard/
- Academic Foundation: https://zenodo.org/records/22058770
- Complete tool implementation with unit tests ready to submit.
Willingness to Contribute
Yes, I'd be happy to submit a pull request
Source: crewAIInc/crewAI