Skip to content

Redaction Action Modes

CyberArmor.AI supports redaction as an enforcement action, not just a logging cleanup step. Redaction modes are optional policy responses that rewrite supported sensitive values before AI-bound content, editor content, clipboard data, or runtime payloads leave the protected surface.

Modes

Mode Scope
monitor Observe and preserve evidence without interrupting the workflow.
warn Show a user-facing warning and preserve evidence.
block Prevent the action when policy requires it.
redact Redact supported secrets, credentials, PII, PCI, NACHA/bank data, NPI, and non-public indicators.
redact-secrets Redact credentials, API keys, tokens, passwords, connection strings, JWTs, and private keys.
redact-pii Redact personal identifiers such as SSNs, email addresses, phone numbers, and dates of birth.
redact-pci Redact payment card data.
redact-nacha Redact bank account, routing, and related payment-routing data.
redact-npi Redact healthcare provider identifiers.

redact-nachi is treated as an alias for redact-nacha for compatibility with older demo notes.

Surface behavior

Surface Redaction behavior
Browser extensions Rewrites AI prompt input fields before submit when the action mode is a redaction mode.
VS Code, Cursor, and Kiro Adds a Redact Findings command and supports redaction-before-save when the IDE enforcement mode starts with redact. Findings use placeholders instead of raw secret previews.
Office add-in Adds a task pane Redact Findings action and safe placeholder-only DLP findings. Word and Excel can rewrite document/worksheet content; PowerPoint rewrites the current selection.
Endpoint agent Supports clipboard/paste redaction with evidence that includes counts, labels, categories, and hashes, not raw sensitive values.
RASP Rewrites provider-bound request bodies in redaction modes and redacts supported sensitive values in text or JSON response bodies where the runtime can safely mutate the response.
Node SDK Applies ALLOW_WITH_REDACTION policy decisions to outbound OpenAI-compatible chat requests when the policy service returns a redacted prompt.

Files that cannot be redacted

An image, a PDF or an Office document cannot be rewritten as redacted text without corrupting it. When a redact policy matches a data class it removes inside such a file, the tenant setting unredactable_file_action decides what happens (Customer portal > Proxy, or PUT /customer/proxy/unredactable-file-action with {"unredactable_file_action": "warn"} or "block"; tenant admins only):

Setting Browser extension Endpoint proxy
warn (default) The user sees the policy and the data class (for example: This file (PDF) contains an email address that "Redact PII to AI" redacts; this file format can't be redacted.) with Upload anyway and Don't upload. Upload anyway sends the original file and records upload_unredactable_allowed_by_user (policy id, data classes, file kind; never content or file names). Don't upload, closing the banner, or no answer within 30 seconds blocks the upload. Other files in the same upload that can be redacted still are. Cannot ask. Sends the file (redacting any text parts that can be redacted), records upload_unredactable_allowed_unconfirmed and shows the agent's desktop notification.
block The upload is refused and the user is told which policy and which data class. Refused.

Any value other than warn or block, and a setting that cannot be read (including an older control plane that does not send it), is treated as block. A file that does not contain any class the policy redacts uploads with no question asked. The server-side proxy container (services/proxy) has no unredactable-file branch (its redact step rewrites the extracted request text) and does not read this setting.

Evidence model

Redaction evidence should identify what control ran without storing the raw sensitive value. A good evidence event contains:

  • action mode
  • finding labels and categories
  • count of replacements
  • original and redacted lengths
  • content hashes when useful for traceability
  • policy decision, reason code, and request or surface identifier

This supports pre-breach protection for credential leakage into generative AI while preserving enough evidence for security, legal, compliance, and executive review.