Skip to main content

agentsentinel-crewai

Security scanner for CrewAI multi-agent workflows.
Powered by AgentSentinel on SingularityNET mainnet.

Detects 8 attack categories before your agents run:

  • Agent Impersonation & Identity Spoofing
  • Tool Call Hijacking (shell, exec, eval tools)
  • Memory Poisoning
  • Orchestrator Manipulation
  • Privilege Escalation via Agent Chaining
  • Goal Hijacking / Objective Corruption
  • Inter-Agent Communication Injection
  • Infinite Loop / Resource Exhaustion

Install

pip install agentsentinel-crewai

Quick Start

from crewai import Agent, Task, Crew
from agentsentinel_crewai import scan_crew, SecurityAudit, secure_crew

# Build your crew as normal
researcher = Agent(
    role="Researcher",
    goal="Research topics",
    backstory="Expert researcher",
    allow_delegation=True,
    tools=["web_search", "read_file"]
)

crew = Crew(agents=[researcher], tasks=[...])

# Option 1 — scan and print report
report = scan_crew(crew)
report.print()

# Option 2 — raise SecurityError on CRITICAL findings
SecurityAudit(crew, block_on="CRITICAL").scan()

# Option 3 — decorator on your crew factory
@secure_crew(block_on="CRITICAL")
def build_research_crew():
    return Crew(agents=[...], tasks=[...])

crew = build_research_crew()  # raises SecurityError if CRITICAL issues found

Configuration

# Custom AgentSentinel endpoint (default: localhost:7009)
report = scan_crew(crew, endpoint="your-server:7009")

# Or via environment variable
import os
os.environ["AGENTSENTINEL_ENDPOINT"] = "your-server:7009"

Using the SingularityNET hosted service:
Pay per scan in ASI tokens at 0.005 ASI/scan via the marketplace.
→ AgentSentinel on SingularityNET


Report Output

AgentSentinel Security Report — CrewAI
============================================================
  Risk Level : CRITICAL
  Risk Score : 75/100
  Findings   : 4
  Duration   : 12ms
  Framework  : crewai

  Findings:
  [CRITICAL] AGT02 — Shell execution tool detected
             Agent: AdminAgent
             Fix: Whitelist allowed tool calls. Never allow shell/exec tools without human approval.
  [HIGH    ] AGT05 — Unrestricted delegation enabled
             Fix: Implement least-privilege per agent role.
  [HIGH    ] AGT08 — No iteration limit — infinite loop risk
             Fix: Set explicit timeouts and iteration limits.
  [MEDIUM  ] AGT01 — Verbose mode exposes agent internals
             Fix: Disable verbose in production.
============================================================

CI/CD Integration

# GitHub Actions example
- name: Security scan CrewAI workflow
  run: |
    pip install agentsentinel-crewai
    python -c "
    from agentsentinel_crewai import scan_crew
    from your_module import build_crew
    report = scan_crew(build_crew())
    if report.risk_level == 'CRITICAL':
        exit(1)
    "

Links


MIT License — © 2026 NeuralSentinel

Metadata

Release files for agentsentinel-crewai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentsentinel-crewai 0.1.0
File Size Uploaded Provenance Actions
agentsentinel_crewai-0.1.0.tar.gz 7.9 kB Without provenance Details for agentsentinel_crewai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentsentinel-crewai 0.1.0
File Interpreter ABI Platform Actions
agentsentinel_crewai-0.1.0-py3-none-any.whl Python 3 none any Details for agentsentinel_crewai-0.1.0-py3-none-any.whl

Total release size: 15.6 kB

Release files / agentsentinel_crewai-0.1.0.tar.gz

Download URL agentsentinel_crewai-0.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
99fda7a23ae49d04f0b25cb20536bbc92a661da8cfddc91d77cf151c2650da3e
BLAKE2b-256 checksum
How to use checksums
3b088fb19be4b25eb1d85a853029f1e6c80daf18b4b39dd837418bf748fa4dd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / agentsentinel_crewai-0.1.0-py3-none-any.whl

Download URL agentsentinel_crewai-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f20783d805eabe1c7295a8a7ddaa14aca0c67e18d36a442daa522fae776044a7
BLAKE2b-256 checksum
How to use checksums
c61560308751a3ee84eab5b0189a0a9a4402b44122c15b94e6b6b45ebd7e60b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for agentsentinel-crewai 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page