Skip to Content
SWARMIXDocs
Your settings

Data Shield

Choose what Swarmix masks on your computer before your messages and files reach an AI provider, and test your settings.

Data Shield replaces sensitive data with tokens on your computer before your messages and files reach an AI provider. The AI provider sees the tokens; in Studio you see the real values. Data Shield is on by default.

To open it, click Settings, then Data Shield. Your organization can lock each setting: it then shows Managed by your organization.

Choose what Data Shield masks

Under Detection categories, turn each kind of data on or off. A category that is off passes through unmasked.

GroupCategoriesAt first
IdentityEmail, Phone, Name, Username, Address, Date of birthOn
FinancialCredit Card, IBAN, Tax IDOn
TechnicalAPI Key, CustomOn
TechnicalIP Address, Web addressOff
SensitiveSpecial categories (GDPR): health, religion, ethnicity, politics, sexual orientation, union membership, criminal records, biometricsOff

Catch secrets

Under Heuristic detection:

  • Keyword context masks values next to words such as password, token, api_key or bearer. It is on at first.
  • High-entropy scan masks long random strings, hashes and encoded secrets. It is off at first. It can also catch harmless values, such as IDs. Entropy threshold and Minimum token length decide how random and how long a value must be.

Add AI detection

An AI model can find sensitive data that the rules miss. It runs on your computer: no input, result or model data goes to Swarmix or anyone else.

  1. Under AI-powered detection, click Download. The model is about 300 MB.
  2. Turn on AI detection.
  3. Optionally, raise the Confidence threshold to mask fewer uncertain finds.

If your organization requires the model and it is missing, the section says "Degraded protection". Download the model to restore full protection.

Keep values unmasked, or add your own patterns

  • Under Allow list, add values that Data Shield never masks. Wildcards work: *@yourcompany.com keeps your colleagues' addresses, test-* keeps test values.
  • Under Custom patterns, add a Name and a Regex pattern for data the built-in rules do not cover, such as your company's customer numbers.

Test your settings

Under Test your settings, type or paste a sample, for example "Send the contract to Ana Silva, [email protected]", and click Test. Studio shows the values Data Shield would mask, and the text as it would go out.

Where Data Shield works

  • In your chats with agents and the assistant: Data Shield masks your messages before they reach the AI provider.
  • In files an agent reads: Studio can ask whether to send a file unmasked. See Approving agent actions.
  • In tool calls: Hive masks what plugins and servers return to the agent. See How Hive checks agent actions.

Best practices

  • Test with a real-looking sample before you share sensitive documents.
  • Use the allow list for values that must reach the agent. Your own domain is a common one.
  • Add a custom pattern for each internal number format. The built-in rules do not know them.

FAQ

On this page