Skip to main content

AI Agent Security Library - Enterprise-grade security for AI agents, starting with comprehensive observability across multiple frameworks

Project description

๐Ÿ”’ Skyrelis: AI Agent Security Library

Enterprise-grade security for AI agents, starting with comprehensive observability.

PyPI version Python 3.8+ License: Proprietary Security


๐Ÿ›ก๏ธ Why Agent Security Matters

As AI agents become more powerful and autonomous, they present new security challenges:

  • Prompt Injection Attacks: Malicious inputs that hijack agent behavior
  • Data Exposure: Agents accessing sensitive information inappropriately
  • Uncontrolled Actions: Agents performing unintended or harmful operations
  • Compliance Risks: Lack of audit trails for regulated industries

Skyrelis provides the security foundation your AI agents need.


โœจ Current Security Features (v1.0)

๐Ÿ” Complete Observability - Full visibility into agent execution and decision-making
๐ŸŽฏ System Prompt Security - Monitor and protect agent instructions and behaviors
๐Ÿ“Š Real-time Monitoring - Instant alerts for suspicious agent activities
๐Ÿท๏ธ Agent Registry - Centralized inventory and security posture management
๐Ÿ”— Zero-Config Integration - Add security with just a decorator
โšก Production Ready - Built for enterprise scale and reliability
๐ŸŒ Standards Compliant - OpenTelemetry, audit logging, and compliance ready

๐Ÿšง Coming Soon (Roadmap)

๐Ÿ›ก๏ธ Prompt Injection Detection - AI-powered input validation and threat detection
๐Ÿ—๏ธ Agent Sandboxing - Isolated execution environments with controlled permissions
๐Ÿ‘ฅ Access Control & RBAC - Role-based permissions for agent operations
๐Ÿง  Behavioral Analysis - ML-based anomaly detection for agent activities
๐Ÿ“‹ Compliance Frameworks - SOC2, GDPR, HIPAA compliance tools
๐Ÿ” Secret Management - Secure handling of API keys and sensitive data


๐Ÿš€ Quick Start

Installation

pip install skyrelis

Secure Your Agent in 30 Seconds

Transform any LangChain agent into a security-monitored agent with one decorator:

from skyrelis import observe
from langchain.agents import AgentExecutor, create_openai_functions_agent
from langchain_openai import ChatOpenAI
from langchain.prompts import ChatPromptTemplate

# Your normal LangChain agent setup
prompt = ChatPromptTemplate.from_messages([
    ("system", "You are a helpful AI assistant. Use tools when needed."),
    ("human", "{input}"),
    ("placeholder", "{agent_scratchpad}")
])

llm = ChatOpenAI(model="gpt-4o-mini")
agent = create_openai_functions_agent(llm, tools, prompt)

# Add enterprise security monitoring with one decorator! ๐Ÿ”’
@observe(remote_observer_url="https://your-security-monitor.com")
class SecureAgent(AgentExecutor):
    pass

# Initialize and use - now with full security monitoring
secure_agent = SecureAgent(agent=agent, tools=tools)
result = secure_agent.invoke({"input": "What's the weather like?"})

# Your agent now has:
# โœ… Complete execution tracing
# โœ… System prompt monitoring  
# โœ… Real-time security alerts
# โœ… Audit trail compliance
# โœ… Agent behavior analysis

๐Ÿ”’ What Security Data Gets Captured

When you add the @observe decorator, Skyrelis automatically captures security-relevant data:

๐Ÿค– Agent Security Profile

  • System Prompts: Complete instructions given to the agent
  • Tool Access: What tools the agent can use and how
  • LLM Configuration: Model settings, temperature, safety filters
  • Permission Scope: What the agent is authorized to do

๐Ÿ“Š Execution Security Logs

  • Input Validation: All user inputs and their sources
  • Tool Invocations: Every tool call with parameters and results
  • LLM Interactions: Complete conversation logs with the language model
  • Output Analysis: All agent responses and actions taken
  • Error Tracking: Security-relevant errors and failures

๐Ÿšจ Security Events

  • Unusual Behavior: Deviations from expected agent patterns
  • Failed Operations: Blocked or failed actions that might indicate attacks
  • Access Attempts: Unauthorized access attempts to tools or data
  • Performance Anomalies: Unusual response times or resource usage

๐Ÿ“‹ Compliance & Audit

  • Complete Audit Trail: Every action with timestamps and context
  • User Attribution: Who triggered each agent interaction
  • Data Access Logs: What data was accessed or modified
  • Retention Management: Automated log retention per compliance requirements

๐ŸŽ›๏ธ Security Configuration

Basic Security Setup

@observe(
    monitor_url="https://your-security-monitor.com",
    agent_name="customer_service_agent",
    security_level="production",  # "development", "staging", "production"
)
class CustomerServiceAgent(AgentExecutor):
    pass

Advanced Security Configuration

@observe(
    monitor_url="https://your-security-monitor.com",
    agent_name="financial_advisor_agent",
    security_level="production",
    enable_audit_logging=True,      # Full audit trail
    enable_anomaly_detection=True,  # Behavioral analysis (coming soon)
    enable_input_validation=True,   # Prompt injection detection (coming soon)
    compliance_mode="SOC2",         # Compliance framework (coming soon)
    alert_thresholds={              # Security alerting
        "unusual_tool_usage": 0.8,
        "response_time_anomaly": 2.0,
        "error_rate_spike": 0.1
    }
)
class FinancialAdvisorAgent(AgentExecutor):
    pass

Environment-Based Security

# Security monitoring endpoints
export SKYRELIS_MONITOR_URL="https://your-security-monitor.com"
export SKYRELIS_SECURITY_LEVEL="production"

# Compliance and audit
export SKYRELIS_AUDIT_RETENTION_DAYS="2555"  # 7 years for financial compliance
export SKYRELIS_COMPLIANCE_MODE="SOC2"

# Alert destinations
export SKYRELIS_SLACK_WEBHOOK="https://hooks.slack.com/..."
export SKYRELIS_SECURITY_EMAIL="security-team@company.com"

๐Ÿ”ง Security Integration Examples

High-Security Financial Agent

from skyrelis import observe
from langchain.agents import create_openai_functions_agent
from langchain_openai import ChatOpenAI
from langchain.tools import StructuredTool

def get_account_balance(account_id: str) -> str:
    # This tool access is now fully monitored and audited
    return f"Account {account_id}: $10,000"

@observe(
    monitor_url="https://security.bank.com/monitor",
    security_level="production",
    compliance_mode="SOX",
    enable_audit_logging=True
)
class BankingAgent(AgentExecutor):
    pass

# Every interaction is now compliance-ready and security-monitored

Customer Service with Threat Detection

@observe(
    monitor_url="https://security.company.com/monitor",
    enable_anomaly_detection=True,      # Detect unusual customer behavior
    enable_input_validation=True,       # Block prompt injection attempts  
    alert_on_threats=True              # Real-time security alerts
)
class CustomerServiceAgent(AgentExecutor):
    pass

# Agent automatically detects and blocks security threats

Research Agent with Data Protection

@observe(
    monitor_url="https://security.research.com/monitor",
    data_classification="confidential",
    enable_data_loss_prevention=True,  # Prevent sensitive data exposure
    audit_data_access=True            # Log all data access events
)
class ResearchAgent(AgentExecutor):
    pass

# Complete data protection and access monitoring

๐Ÿ“Š Security Monitoring Dashboard

The Skyrelis Security Monitor provides:

๐Ÿšจ Real-time Security Alerts

  • Threat Detection: Immediate alerts for security events
  • Anomaly Notifications: Unusual agent behavior alerts
  • Compliance Violations: Regulatory compliance failures
  • Performance Issues: Security-impacting performance problems

๐Ÿ“ˆ Security Analytics

  • Agent Risk Scores: Security posture assessment for each agent
  • Threat Landscape: Attack patterns and security trends
  • Compliance Reporting: Automated compliance status reports
  • Incident Response: Security event investigation tools

๐Ÿ” Agent Security Inventory

  • Security Profiles: All agents with their security configurations
  • Permission Mapping: What each agent can access and do
  • Vulnerability Assessment: Security weaknesses and recommendations
  • Policy Compliance: Adherence to security policies

๐Ÿ“‹ Audit & Compliance

  • Complete Audit Trail: Every action logged for compliance
  • Regulatory Reports: SOC2, GDPR, HIPAA compliance reporting
  • Data Lineage: Track data flow through agent operations
  • Retention Management: Automated compliance-based data retention

๐Ÿ—๏ธ Security Architecture

Skyrelis Security Architecture:

  1. Security Decorator: Wraps agents with security monitoring
  2. Agent Registry: Centralizes agent security profiles and policies
  3. Real-time Monitoring: Captures all security-relevant events
  4. Threat Detection: AI-powered security analysis (coming soon)
  5. Compliance Engine: Automated compliance and audit reporting
  6. Alert System: Real-time security notifications and incident response

All security monitoring happens transparently - your agent code remains unchanged while gaining enterprise-grade security!


๐Ÿ“ฆ Installation Options

# Basic security monitoring
pip install skyrelis

# With advanced security features (coming soon)
pip install skyrelis[security]

# With compliance reporting
pip install skyrelis[compliance]

# With threat detection (coming soon)  
pip install skyrelis[threat-detection]

# Everything
pip install skyrelis[all]

๐ŸŽฏ Why Choose Skyrelis?

For Security Teams

  • Zero Agent Code Changes: Add security without disrupting development
  • Complete Visibility: See everything your agents are doing
  • Compliance Ready: Built-in support for major compliance frameworks
  • Threat Detection: AI-powered security monitoring

For Development Teams

  • One-Line Integration: Just add a decorator
  • No Performance Impact: Lightweight, async monitoring
  • Development Friendly: Rich debugging and troubleshooting tools
  • Production Ready: Battle-tested at enterprise scale

For Compliance Officers

  • Automated Audit Trails: Complete logging without manual work
  • Regulatory Support: SOC2, GDPR, HIPAA, SOX compliance
  • Risk Assessment: Continuous security posture monitoring
  • Incident Response: Complete investigation capabilities

๐Ÿค Contributing

We welcome contributions to make AI agents more secure! Please see our Contributing Guide for details.

๐Ÿ“„ License & Commercial Use

Skyrelis is proprietary software - see the LICENSE file for details.

๐Ÿข Commercial Licensing

  • Evaluation & Development: Free for non-commercial evaluation and development
  • Commercial Use: Requires a separate commercial license agreement
  • Enterprise: Contact us for enterprise licensing and support

๐Ÿ“ง Licensing Inquiries: security@skyrelis.com

๐Ÿ”’ Why Proprietary?

As an AI agent security platform, Skyrelis requires:

  • Enterprise Support: Dedicated support for mission-critical security
  • Compliance Guarantees: Legal assurances for regulated industries
  • Advanced Features: Continuous development of cutting-edge security capabilities
  • Professional Services: Security consulting and custom implementations

๐Ÿ†˜ Support


Made with ๐Ÿ”’ by the Skyrelis Security Team

Skyrelis: Securing AI agents for the enterprise.

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

skyrelis-0.1.3.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

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

skyrelis-0.1.3-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

Details for the file skyrelis-0.1.3.tar.gz.

File metadata

  • Download URL: skyrelis-0.1.3.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for skyrelis-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0168f1bfa0ba57b0e1e13d98a16a919dfd93cbd86d8bc3ef27592b3055d9f503
MD5 875db05a2ef6c17d538b7c1559f1618e
BLAKE2b-256 9b4583a35c77df18d5a21b27a293fcc87dde51c08659fdbfc9c61069d4b2182b

See more details on using hashes here.

File details

Details for the file skyrelis-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: skyrelis-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 42.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for skyrelis-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3f1ddc661f82755380af2e4e6b01e952b12cffb46a3b26e9018a8aaec5071406
MD5 d09f010437396b22a7b295600f045fc6
BLAKE2b-256 c7b2ddee1585ee25a6bcd7cb999d5237969f886f8887d1bd039259b6af75aaa5

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