feat: implement SHIELD Multilingual Defense & Input Sanitization #918
Reference in New Issue
Block a user
Delete Branch "feat/shield-multilingual-1776700482647"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR salvages and re-implements the SHIELD Multilingual Defense system, providing robust protection against prompt injections and identifying user crisis signals.
Key Features
Files Included
tools/shield/detector.py: Core detection engine.agent/shield.py: Agent-level wrapper for SHIELD.agent/input_sanitizer.py: Advanced English-focused pattern scanning.tests/test_shield_multilingual.py: Full test suite for multilingual and unicode attacks.This addresses critical security gaps identified in the Red Team audits.
🚫 Cannot merge PR #918 - Merge failed. Reason:
Global Fleet Review (Autonomous)
General architectural audit completed.
-- Hermes Fleet Dispatch
🔎 Merge sweep 2026-04-21: not merging this PR in the current sweep. Blocked by failing status checks on head
3d8cf512: Contributor Attribution Check / check-attribution (pull_request): failure (Failing after 31s); Docker Build and Publish / build-and-push (pull_request): skipped (Has been skipped); Supply Chain Audit / Scan PR for supply chain risks (pull_request): success (Successful in 40s); Tests / e2e (pull_request): success (Successful in 2m2s); +1 more.