PlatformAI Action FirewallPolicy EngineReal-Time DashboardGitOps PoliciesIntegrations
SolutionsAI Agent SecurityMCP SecurityLLM SecurityCompliance & Audit
ResourcesDocumentationResearchIntelligenceCase StudiesAI Security GlossaryPricing
CompanyAboutCareersContactSecurityEngineering
Case Study 02 · Enterprise Software · 2026Dify

How Dify Established Runtime Control Over Its MCP Ecosystem

Customer profile — Dify / LangGenius (public disclosures)

Scale: 158K+ GitHub stars (top-100 open-source project globally) · open-source platform for production-ready agentic workflows · cloud and self-hosted deployments worldwide.

Origin: Founded 2023, source published May 2023 · HQ Suzhou, China (LangGenius, Inc.) · $30M Series Pre-A at $180M valuation led by HSG (March 2026).

Regulatory context: PIPL · TC260 Basic Safety Requirements for Generative AI · Interim Measures for Generative AI Services · MLPS 2.0.

A fictional enterprise software company brings hundreds of MCP-connected capabilities under centralized runtime policy enforcement, reducing the risk of unauthorized agent actions across engineering and internal operations.

Illustrative case study — fictional scenario. Customer profile, metrics, and incidents are hypothetical and published to demonstrate the SAILLENT control model. They will be replaced with verified data as real engagements are published.

Enterprise SaaSMCP SecurityRuntime EnforcementIllustrative deployment
12 weeks
Inventory, policy design, rollout
240
Agents across engineering & ops
186
MCP servers in pilot scope
23
Servers requiring remediation
41
High-risk tool permissions restricted
27 / 27
Simulated prohibited ops denied

The problem

The company had adopted AI-assisted development faster than its security team could standardize how agents accessed internal systems. Engineering teams had connected agents to GitHub, Jira, internal documentation, cloud management APIs, and database tools. Individual teams maintained their own configurations, permissions, and deployment practices.

The result was not a single catastrophic vulnerability. It was a growing governance gap. Security could identify many of the underlying services, but answering these questions required investigation across multiple teams:

  • Which agents could invoke each tool?
  • Which MCP servers could access sensitive systems?
  • Could a read-oriented agent invoke a write-capable tool?
  • What happened when a tool's behavior or description changed?
  • Could the company prove that a prohibited action had been denied before execution?

Existing identity and network controls remained important. The missing capability was consistent enforcement of agent actions across the connected tool estate.

The architectural gap

The existing pattern was:

Legacy MCP path
Agent → MCP client → MCP server → underlying system

# Authorization depended on server configuration, application
# permissions, credentials, and per-team implementation choices.

That created inconsistent enforcement across teams. The company needed a common policy decision point that could evaluate covered tool calls independently of the model's interpretation of a tool description.

The attack scenario

During a controlled red-team exercise, the security team introduced a simulated compromised MCP server into an isolated test environment. The server exposed a tool that appeared to retrieve deployment documentation. Its tool description also contained adversarial instructions intended to persuade an engineering agent to invoke a privileged repository operation.

The agent retrieved the tool description, incorporated the instructions into its planning, and attempted to invoke a write-capable tool against a protected repository. The requested operation was syntactically valid. The agent's identity was valid. The underlying repository integration had access to the target.

The issue was not whether the model could recognize the malicious description. It was whether the resulting action was permitted.

What SAILLENT saw

The following is an illustrative enforcement event, not a real production log.

Runtime decision record · illustrative
DECISION
DENIED

AGENT
engineering-agent-prod

SERVER
mcp-repository-tools

TOOL
repository.update_branch_protection

TARGET
payments-service / production branch

POLICY
engineering-repository-controls-v8

REASON
Agent role not authorized to modify branch protection

EXECUTION
NOT PERFORMED   # protected operation not forwarded

The request was denied at the configured enforcement boundary. The underlying repository operation was not invoked through this request path.

Dify agentic workflow platform routing to OpenAI, Anthropic, and open-weight models under SAILLENT enforcement
Dify's model-agnostic routing — OpenAI, Anthropic, and open-weight endpoints — evaluated at the SAILLENT tool-action boundary.

The control model

The company established policies around agent identity, MCP server, tool identifier, action, target, and risk. Examples included:

  • Documentation agents could read approved repositories.
  • Coding agents could create branches and pull requests.
  • Only designated deployment identities could modify production deployment settings.
  • Agents could not change branch protection or grant themselves additional privileges.

The policy did not treat every MCP server as malicious. It treated tool metadata and tool responses as untrusted input, while enforcing explicit authorization rules on covered operations.

What changed

Before / After
BEFORE
Team-specific configurations, inconsistent tool restrictions,
fragmented evidence.

AFTER
Defined inventory, centralized policy for covered actions,
auditable ALLOW / DENY decisions.

Illustrative results

MeasureIllustrative result
MCP servers in pilot scope186
Servers reviewed for approval186
Servers requiring remediation23
High-risk tool permissions restricted41
Simulated prohibited operations denied27 / 27
Policy decisions with audit records100%

The 27 denied operations represent a defined test set, not proof that every possible MCP attack was prevented.

The operational outcome

The company moved from treating MCP security primarily as a collection of individual integration decisions to treating agent-to-tool interaction as a governed security boundary. The outcome was not universal visibility into every AI system in the enterprise. It was consistent enforcement and evidence for the MCP interactions included in the deployment scope.

MCP expands what agents can do. Independent authorization determines what they may do.

Govern your MCP estate

See how SAILLENT enforces authorization at the tool-action boundary.

Request a technical briefing
AI-Optimized

Ask AI about SAILLENT

We've optimized our data for AI assistants. Copy this prompt to get instant insights about enterprise AI security.

"Why does SAILLENT believe the next security perimeter is the action, not the model?"
Optimized for:
ChatGPTClaudeGeminiCopilotPerplexityMeta AICohereMistralGrokHugging Face
TRUST & COMPLIANCE

Built for the frameworks your auditors care about

SAILLENT produces the cryptographic, exportable evidence regulated teams need — across the US, Canada, and Europe. Explore compliance tooling →

SOC 2 Type II United States
DESIGNED FOR
Trust Services Criteria controls
ISO 27001:2022 European Union
DESIGNED FOR
Information security controls
GDPR European Union
CAPABILITIES FOR
EU data protection requirements
HIPAA United States
CAPABILITIES FOR
Healthcare privacy controls
NIST AI RMF United States
ALIGNED WITH
AI risk management framework
ISO/IEC 42001 European Union
ALIGNED WITH
AI management systems
OSFI E-23 Canada
RELEVANT TO
Financial AI oversight requirements
SR 11-7 United States
RELEVANT TO
Model risk management requirements
Saudi PDPL Saudi Arabia
CAPABILITIES FOR
Kingdom personal data protection law
SDAIA AI Governance Saudi Arabia
ALIGNED WITH
National data & AI authority guidance
SAMA Fintech Oversight Saudi Arabia
RELEVANT TO
Saudi Central Bank fintech supervision
UAE PDPL United Arab Emirates
CAPABILITIES FOR
Federal Decree-Law 45/2021 data protection
CBUAE AI Guidance United Arab Emirates
RELEVANT TO
UAE Central Bank AI governance for finance
ADGM FSRA United Arab Emirates
RELEVANT TO
Abu Dhabi Global Market financial regulation
China PIPL China
CAPABILITIES FOR
Personal Information Protection Law
MLPS 2.0 China
RELEVANT TO
Multi-Level Protection Scheme cybersecurity

Capability claims only — formal certifications & attestations in progress · Technical evidence available under NDA

Request a Technical Briefing →