Anthropic
Wardstone

Anthropic Claude + Wardstone

Defense-in-Depth for Claude

Add defense-in-depth to your Claude applications. Wardstone Guard catches prompt attacks and data leakage that slip past Claude's built-in safety training.

11 Supported Models· all protected with sub-30ms latency
Claude Opus 4.5Claude Sonnet 4.5Claude Haiku 4.5Claude 3.5 SonnetClaude 3.5 HaikuClaude 3 Opus+5 more

Why Secure Anthropic?

Long-Context Injection

High Risk

The 200K context window can hide malicious instructions deep in documents that bypass safety measures.

XML Tag Manipulation

Medium Risk

Claude's reliance on XML-style formatting can be exploited to inject system-level instructions.

Artifact Code Execution

Medium Risk

Claude's Artifacts feature can be manipulated to generate and run harmful code.

Security Considerations

  • 1

    Claude's Constitutional AI provides baseline safety but isn't designed for adversarial inputs

  • 2

    200K context window increases attack surface for indirect prompt injection

  • 3

    No built-in PII detection or data leakage prevention

  • 4

    Wardstone complements rather than replaces Claude's safety training

How to Integrate

  1. Install both SDKs

    Add Wardstone alongside the Anthropic SDK in your project.

  2. Pre-screen all messages

    Validate user inputs and any document content before sending to Claude.

  3. Screen Claude's responses

    Check outputs for PII leakage, harmful content, or policy violations.

  4. Implement conversation monitoring

    For multi-turn conversations, validate each exchange for escalating attacks.

Pricing Note

Claude's pricing varies by model tier. Wardstone's flat per-call pricing provides predictable security costs regardless of context length.

Secure Anthropic Claude with Wardstone

# Step 1: Check user input with Wardstone
curl -X POST "https://api.wardstone.ai/v1/detect" \
-H "Authorization: Bearer YOUR_WARDSTONE_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "User message here"}'
 
# Response: { "prompt_attack": { "detected": false, ... } }
 
# Step 2: If safe, send to Anthropic
curl -X POST "https://api.anthropic.com/v1/messages" \
-H "x-api-key: YOUR_ANTHROPIC_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-5-20251101",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "User message here"}]
}'
 
# Step 3: Check Claude response with Wardstone before returning to user

Common Use Cases

Long-context document analysis
Code review and generation
Research assistance
Enterprise chatbots
Content summarization

All Supported Anthropic Models

Wardstone Guard protects all Anthropic Claude models with the same comprehensive security coverage. Whether you're using the latest releases or legacy models still in production, every API call is protected.

Claude Opus 4.5
Claude Sonnet 4.5
Claude Haiku 4.5
Claude 3.5 Sonnet
Claude 3.5 Haiku
Claude 3 Opus
Claude 3 Sonnet
Claude 3 Haiku
Claude 2.1
Claude 2.0
Claude Instant

Ready to secure your Anthropic application?

Try Wardstone Guard in the playground to see detection in action.