CrewAI Penetration Testing
Last updated:
A CrewAI agent picks which tools to call and can hand work to other agents, so its credentials set the real limits. We test what a crew can reach. EJN Labs is a CREST-accredited UK company providing CrewAI penetration testing, from £6,070 for a 5-day single-application scope, quoted within 24 hours.
- Unlimited retesting
- Unlimited pre-retesting
- No hidden fees
“I would highly recommend EJN Labs to any organisation seeking reliable, detailed, and well-managed penetration testing services, particularly for government or enterprise-level projects.”
“There wasn’t another company we could find that could deliver what we needed in the timeframe we needed. The client loved it, and we got instant ROI from the engagement.”
In a CrewAI crew, the tools an agent holds, the agents it can delegate to and the scope of its memory decide what an attacker’s text can make it do.
How CrewAI decides what an agent can do
CrewAI describes tools as callable functions that let agents take action, and its tool library includes file readers, directory readers, database search tools and a Python code interpreter. The agent decides when to call them, so a tool is only as safe as the credential, directory or interpreter behind it. The agent reference also lists allow_delegation, which lets an agent hand work to other agents and defaults to False, and allow_code_execution, which defaults to False and runs in Docker unless code_execution_mode is set to unsafe. We start by finding which of those switches your crew has turned on.
Memory is where a crew keeps state between runs. CrewAI’s memory system stores records in a tree of scopes such as /agent/researcher or /customer/acme-corp, and it uses an LLM to infer the scope when content is saved. Agents share the crew’s memory unless one is given a narrower view. Isolation between customers is therefore a design choice in your code, so we test whether one customer’s input can be recalled in another’s run. The same documentation says memory stores under ./.crewai/memory by default, which we check against where your deployment actually writes.
External tool servers add a third path. CrewAI’s own MCP security guidance says to connect only to servers you fully trust, warns that a server’s tool names and descriptions can carry prompt injection, and notes that stdio servers can execute code on the machine running the agent. The same agent-permission questions run through our wider AI penetration testing, and most crews are Python services, so our Python penetration testing approach applies to the code around them.
SCOPE
What we test in a CrewAI penetration test
Tool Permissions and Credentials
CrewAI tools are callable functions the agent chooses to run, and its library includes file, directory, database and code tools. We list every tool each agent holds, test what its credential or path can actually reach, and try to make the agent call a tool with arguments the task never needed.
Code Execution Mode
An agent with allow_code_execution set to True runs code in Docker by default, or directly on the host when code_execution_mode is unsafe. We check which mode each agent uses, what the container can reach on your network and what environment variables or mounted files it can see.
Delegation Between Agents
With allow_delegation on, an agent can hand a task to another agent. We map which agents can delegate to which, and test whether text injected into a low-privilege agent can cause a higher-privilege agent to act on it.
Iteration Limits and Cost Abuse
Agents carry a max_iter limit that defaults to 20, plus optional max_rpm and max_execution_time settings. We check which are set, and test whether a crafted request can drive a crew into long loops, repeated tool calls or heavy model spend.
MCP Servers and Tool Metadata
CrewAI warns that tool descriptions from an MCP server can inject instructions into the agent, and that stdio servers can run commands on the host. We review which MCP servers your crew connects to, whether each is trusted, which transport it uses and what its tools can reach.
Memory Scopes and Customer Separation
CrewAI memory is a scope tree, and agents can be given a private scope or a read-only slice. We test whether a customer, user or agent identifier can be changed so that one account’s remembered facts surface in another account’s run.
Memory Storage and Embedder Settings
By default memory is held in LanceDB under ./.crewai/memory and embedded with OpenAI’s text-embedding-3-large, unless you configure otherwise. We check where that directory sits, who can read it, and whether stored customer data is sent to an embedding provider you did not intend.
Knowledge Sources and Retrieved Content
CrewAI knowledge sources feed documents, files and web content into an agent’s context. We test whether text planted in a source your crew reads can steer the agent, and whether retrieval returns content a given user should not see.
Task Inputs, Guardrails and Output Handling
Kickoff inputs are interpolated into task text, task guardrails validate output with a retry limit that defaults to 3, and a task can write to an output_file. We test injection through inputs, whether guardrails can be talked past, and whether the file path or rendered output can be abused downstream.
Checkpoints, Tracing and Telemetry
A CrewAI checkpoint saves agent memory, kickoff inputs and the event history, and traces can contain prompts, inputs and outputs. Telemetry collects tool names and agent roles by default, and share_crew adds task descriptions and backstories. We check where each of these ends up and who can read them.
OUR PROCESS
CrewAI Penetration Testing: From Scope to Attestation
Scope and Access
We agree which crew, flows and tools are in scope, how the application is called, and get accounts for each user type that can send input to the crew.
Agent and Tool Mapping
We map every agent, tool, delegation path, MCP server, memory scope and knowledge source, and what credential sits behind each.
Manual Testing
A CREST-certified tester tests injection, tool abuse, memory separation and output handling by hand, chaining findings where they compound.
Attestation and Retest
You get a technical report with CVSS scores and reproduction steps, a walkthrough call, a free retest once fixes are deployed, and an attestation letter for auditors.
CREDENTIALS
Verified Accreditations Auditors Accept
Every credential below is independently verifiable. UK procurement teams, FCA supervisors, ISO 27001 / SOC 2 auditors, and cyber insurance underwriters all recognise these standards.
GET YOUR QUOTE
Get a CREST CrewAI pen test quote in 24 hours
A fixed-price quote back in one business day, from a named CREST assessor. No sales pipeline, no chasing.
- CREST and IASME accredited. Testing your auditors and clients already recognise.
- Fast-track testing within 24 hours where required. Free retest of every fix included.
- Live findings via your client portal, not a four-week PDF.
- Fixed price from £3,500 for a single-role, single-app scope, agreed up front. Most engagements run £5,000 and up. No day-rate surprises.
Under NDA Further named references available on a scoping call.
- We reply within one business day with a fixed-price quote from a named CREST assessor.
- You approve the scope and we book a start date, usually within 24 hours.
- Live findings land in your client portal as we test, with a free retest of every fix.
Get your fixed pen test quote in 24 hours
Quote request received
We will reply within one business day with your fixed-price quote from a named CREST assessor.
Your data stays with us. No newsletter signup.
or book a 20-min scoping call first
We reply within one business day. Your data stays with us. No newsletter signup.
COMPLIANCE READY
Reports Mapped to Every Framework
Findings are written so your team can reference the report against each framework without translation work.
ISO 27001:2022
Annex A.8.8 management of technical vulnerabilities plus A.5.15-5.18 and A.8.2-8.5 access control validation.
SOC 2 Type I & II
CC6 logical access, CC7 system operations, CC8 change management evidence.
PCI DSS
Requirement 11.4 application penetration testing across cardholder data environments, including ecommerce penetration testing for online retail platforms.
FCA SYSC
SYSC 4.1.1R, 6.1.1R, 13 mapped to each finding for FCA-regulated firms.
UK GDPR
Article 32 effectiveness testing, customer-data security controls, ICO-acceptable evidence.
Cyber Essentials Plus
Direct certification through our IASME body status, single-vendor delivery.
PRICING
Transparent CrewAI Penetration Testing Pricing
EJN Labs CrewAI Penetration Testing prices start at £6,070. Pricing depends on the number of roles, integrations and environments in scope. See our pricing page for how we quote.
Depends on AI system complexity
Single LLM-powered chatbot, basic RAG (≤100 documents), no agent tools. Around 5 to 7 working days from kickoff to report.
Get a fixed quoteDepends on AI system complexity
Multi-tool agent system, complex RAG pipeline, fine-tuned model, multi-tenant. Around 8 to 12 working days from kickoff to report.
Get a fixed quoteDepends on AI system complexity
Production AI platform, multi-agent orchestration, regulated AI use case (FCA, NHS), custom-trained models. Around 12 to 18 working days from kickoff to report.
Get a fixed quoteSECTORS
Sectors We Test CrewAI For
Sector-specific scoping for regulated UK organisations.
Fintech & FCA-Regulated
FCA SYSC, Open Banking FAPI 1.0, PSD2 SCA, payment-flow scrutiny, KYC/AML testing.
Fintech sector pageSaaS Companies
SOC 2 Type I & II evidence, multi-tenant boundaries, role escalation, customer-tenant isolation.
SaaS sector pageLaw Firms
SRA Cyber Standard, privileged data, conveyancing fraud defence, partner-tier procurement.
Law firm sector pageHealthcare
NHS DTAC, DSP Toolkit v6, UK GDPR Article 32, EHR systems, telehealth platforms.
Healthcare sector pageInsurance
FCA / PRA Operational Resilience, cyber underwriting, claims data, broker portals.
Insurance sector pagePublic Sector
CCS / G-Cloud framework, NCSC-aligned, citizen-facing services, PSN-compliance scrutiny.
Public sector pageWHY EJN LABS
What You Get From CrewAI Penetration Testing
Six concrete differentiators competitors don’t all match.
CREST-Certified Testers, Verifiable
Every test by a CREST-certified pen tester (CRT, CCT APP, CCT INF where applicable). Verify our company status at crest-approved.org.
24-Hour Startup, Where Required
From signed scope to active testing in a single business day for incident response, audit deadlines, or regulator-driven timelines.
Live Findings, Not 4-Week PDFs
Critical issues reported during testing through your client portal. Your team remediates while testing continues.
Audit-Ready Reports
Executive summary plus full technical report with CVSS scores and explicit framework mappings (ISO 27001, SOC 2, PCI DSS, FCA SYSC).
Free Retests, Standard
Verify remediation of every finding before close-out. Letter of attestation for audit submission included. Most competitors charge £1,500-£3,000 per retest.
UK-Based CREST Testers
Every engagement performed by vetted, UK-based CREST-certified testers, matched to your needs, security clearance, and compliance scope.
FAQ
Frequently Asked
What access do you need to test our CrewAI application?
We need whatever your users have: accounts for each role that can send input to the crew, and the API or interface that calls it. A grey-box option adds read access to the agent, task and tool definitions, which lets us test each tool’s permissions directly.
Will testing touch live data or run real tools?
That is agreed before testing starts. Where tools send email, write files or change records, we can test against a staging crew or against stubbed tools. We do not run destructive tests or export real customer data without written agreement.
How long does a CrewAI penetration test take?
A single crew behind one application sits in our 5-day single-application scope, with the report typically landing around 5 to 7 working days after kickoff. Several crews, many tools or separate flows move into a larger scope with more testing days.
Do you test the model itself?
No. We test your application: the tools, delegation, memory, knowledge sources and output handling around the model. The model provider’s own platform is out of scope.
Does it matter whether we use CrewAI open source or a hosted platform?
It changes where we look. For the open-source library we test your code, your memory storage and your deployment. If you also use CrewAI’s hosted tracing, we check what your traces contain, because CrewAI states traces may contain prompts, inputs and outputs.
What is out of scope?
CrewAI’s own platform and infrastructure, and your model provider’s systems. Separate services your crew calls, such as an MCP server run by a third party, are scoped and quoted separately.
Does CrewAI place rules on customer penetration testing?
We did not find a published CrewAI penetration-testing policy for customers. We confirm the current terms with you during scoping and test to them exactly, limiting testing to your own application at a volume agreed in advance.
Is EJN Labs CREST accredited?
Yes. EJN Labs is a CREST-accredited company, and every CrewAI engagement is carried out by UK-based, CREST-certified testers. Your report and attestation letter are recognised by auditors and insurers accordingly.
20+ CREST-accredited testing services in one place
Web, mobile, API, cloud, AI, infrastructure, red team. Pick the test that fits your environment.
Get a fixed price for your CrewAI application
A CrewAI agent picks which tools to call and can hand work to other agents, so its credentials set the real limits. We test what a crew can reach. EJN Labs is a CREST-accredited UK company providing CrewAI penetration testing, from £6,070 for a 5-day single-application scope, quoted within 24 hours.



