Skip to main content

Runtime security monitoring for AI agents. In-process. No data leaves your environment.

Project description

scandar-guard

Runtime security monitoring for AI agents. Drop-in wrapper for Anthropic, OpenAI, LangChain, CrewAI, and AutoGen.

Zero data leaves your environment. All inspection runs in-process.

Install

pip install scandar-guard

Quick Start

from anthropic import Anthropic
from scandar_guard import guard, GuardConfig

client = guard(Anthropic(), GuardConfig(
    agent_id="my-agent",
    asg_telemetry=True,
    asg_api_key="sk_your_key",
))

# Use as normal — Guard monitors every call
response = client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)

Context Manager (recommended)

from scandar_guard import guard_session, GuardConfig

with guard_session(Anthropic(), GuardConfig(
    agent_id="my-agent",
    asg_telemetry=True,
    asg_api_key="sk_your_key",
)) as client:
    response = client.messages.create(...)
    # session_end telemetry sent automatically on exit

CrewAI

from crewai import Crew
from scandar_guard.integrations.crewai import ScandarCrewAIMonitor

monitor = ScandarCrewAIMonitor(api_key="sk_xxx")

crew = Crew(
    agents=[...],
    tasks=[...],
    step_callback=monitor.step_callback,
    task_callback=monitor.task_callback,
)

AutoGen

from autogen import ConversableAgent
from scandar_guard.integrations.autogen import register_scandar_hooks

agent = ConversableAgent(name="my-agent", ...)
register_scandar_hooks(agent, api_key="sk_xxx")

What it detects

  • Prompt injection (direct, indirect, encoded, multi-turn)
  • Tool argument injection and data exfiltration sequences
  • Privilege escalation and anomalous tool call patterns
  • Behavioral profile deviations with per-agent baselines
  • 140+ detection rules mapped to OWASP LLM Top 10

Scandar Overwatch

When asg_telemetry=True and asg_api_key are set, Guard sends anonymized telemetry (tool names, finding categories, threat scores — never prompts or content) to the Scandar Overwatch for fleet-wide visibility.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scandar_guard-0.1.1.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scandar_guard-0.1.1-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file scandar_guard-0.1.1.tar.gz.

File metadata

  • Download URL: scandar_guard-0.1.1.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for scandar_guard-0.1.1.tar.gz
Algorithm Hash digest
SHA256 91942649eeb9ca3a29d08e0c5a40985aaa5b86d6e27808add5ee0e80d97cc1f7
MD5 d79e4c9113793bfa515e0c8915cc047d
BLAKE2b-256 fd033fa2669b16983051185cfcaa44e2a4206c8488335b4a667b0bc44d8be9ed

See more details on using hashes here.

File details

Details for the file scandar_guard-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scandar_guard-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for scandar_guard-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46a8698d8f2ad6e91f2a7c65bbfe5022f30265cf15cb58b61c77725f77f64170
MD5 263b7b603651b6e86c0e09099af983be
BLAKE2b-256 3243a3be0165be902e37d5332649d5d59a0fc9c4f91129835304892c738f536f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page