Skip to content

Policy Engine

The Policy Engine is BitDrip's decision core. Every piece of content — from the browser extension or the API gateway — passes through it before reaching an AI service.

Data Categories

BitDrip detects these categories out of the box:

CategoryExamples
PIIFull names, email addresses, phone numbers, postal addresses, national ID numbers
PHIMedical record numbers, health conditions, insurance IDs, treatment details
FinancialCredit card numbers (Luhn-validated), IBAN, bank account numbers
CredentialsAPI keys, passwords, private keys, bearer tokens, connection strings
ProprietarySource code patterns, internal document markers (configurable)

Compliance Profiles

Each profile is a curated set of detection rules and actions aligned to a regulatory framework. Enable profiles in the Admin Dashboard → Policies → Compliance Profiles.

ProfileBlocksWarnsLogs
GDPRPII, special-category dataContact infoAll events
HIPAAPHIPIIAll events
PCI DSSCard numbers, CVV, PINsFinancial dataAll events
SOC 2Credentials, secretsPIIAll events
ISO 27001CredentialsPII, proprietaryAll events
CCPAPII (California residents)All events

BitDrip is designed to support compliance with these frameworks. Achieving certification requires additional organisational controls beyond what software alone can provide.

Policy Actions

When the Policy Engine detects content matching a rule, it returns one of three actions:

  • block — content is prevented from being submitted; user sees the violation message
  • warn — user sees a warning but may proceed; event is logged
  • log — content is submitted silently; event is logged for audit

Custom Rules

  1. Dashboard → Policies → Custom Rules → New Rule
  2. Set a pattern (regex or keyword list)
  3. Set the action: block, warn, or log
  4. Assign to an organisation or user group
  5. Save — rules take effect immediately (no restart required)

Example rule:

json
{
  "name": "Internal project codes",
  "pattern": "PROJ-[0-9]{4,6}",
  "category": "proprietary",
  "action": "warn",
  "message": "This looks like an internal project code. Are you sure you want to share it?"
}

Audit Log

Every policy evaluation is immutably logged with:

  • Timestamp (UTC)
  • User identifier (hashed)
  • Data category detected
  • Action taken
  • AI service targeted

Audit logs are accessible in Admin Dashboard → Audit and exportable as CSV or JSON.

Performance

Policy evaluation is designed for real-time use:

  • Typical response time: < 100ms
  • Redis caching for compiled rule sets
  • No content is stored — only metadata about violations

Released under the BitDrip Commercial License.