Back to News
ProductAI Understanding briefing

Databricks unveils OpenShell-Lakewatch workflow to secure coding agents

Databricks announced a reference workflow that combines the OpenShell sandbox with Lakewatch monitoring to enforce policy-controlled execution of AI coding agents against Lakehouse data.

4 min readRead the primary source
Source-provided image accompanying Databricks unveils OpenShell-Lakewatch workflow to secure coding agents
Primary-source documentSource recorded
Publisher
databricks.com
Source type
Primary document — an official announcement, paper, filing, or first-party page we read directly.
ContextUnderstand this in 60 seconds

Key terms

Large Language Model (LLM)
A language model trained on massive text corpora to generate and analyze text.
Inference Endpoint
A deployed API interface that receives model requests and returns predictions in production.
Inference
The runtime phase where a trained model generates predictions or outputs.
Test yourselfAI Agents Quiz

What happened

Databricks released a detailed reference design that integrates OpenShell, an open-source sandbox runtime, with its Lakewatch security service and Unity Catalog governance to protect AI-driven coding agents. The workflow shows how a developer-prompted coding agent can run locally inside OpenShell, call a remote model , and interact with Databricks Lakehouse data while all actions are logged and policy-enforced. OpenShell blocks unauthorized filesystem or network calls, Unity Catalog enforces data-access permissions, and Lakewatch aggregates OCSF events, audit logs, and query histories into a single alert that security analysts can investigate and respond to. The blog includes a demo where malicious issue text attempts to exfiltrate credentials and query production tables; OpenShell denies the push, Unity Catalog rejects the query, and Lakewatch correlates the events into an incident that can trigger an automated response.

Databricks published a blog post outlining a reference workflow that secures AI coding agents using three core components: OpenShell, Unity Catalog, and Lakewatch. OpenShell runs the agent in a sandbox with configurable filesystem and network policies, preventing unauthorized actions such as pushing to protected repositories or contacting external hosts.

When the agent needs to query data, it sends SQL requests to a Databricks Lakehouse. These requests are authenticated via Unity Catalog, which enforces the permissions of the user or service principal. Any attempt to access a restricted production table or execute a DROP statement is denied and logged.

All interactions—OpenShell OCSF events, Unity Catalog audit entries, and model prompts passing through Unity AI Gateway—are ingested by Lakewatch. Lakewatch applies detection rules to correlate denied actions and generates a single security alert that includes the agent identity, the malicious issue text, the blocked push, and the rejected queries.

The alert provides links to the underlying logs and a runbook for response. Analysts can use Databricks Genie to ask natural-language questions about the agent’s activity without writing SQL. The blog demonstrates a controlled test where malicious instructions are injected; OpenShell blocks the push, Unity Catalog blocks the query, and Lakewatch ties the events together, allowing a human-approved response to stop the agent.

Databricks notes that Lakewatch is currently in beta and that organizations should verify collection paths, retention policies, and permission configurations before relying on the alerts for production security.

Source details: databricks.com

Why it matters

Securing AI coding agents is a growing concern as enterprises adopt generative models for software development. By combining runtime sandboxing (OpenShell) with unified data governance (Unity Catalog) and centralized security telemetry (Lakewatch), Databricks offers a concrete, end-to-end control plane that can detect and stop malicious behavior originating from agent-generated code. This approach addresses a key risk: agents can inadvertently or deliberately execute harmful actions when they ingest untrusted instructions from issue descriptions or other sources. The integrated alerting and response workflow gives security teams visibility into the full attack chain—from the model prompt to the blocked filesystem operation—enabling faster triage and remediation. Because the solution leverages existing Databricks services, organizations can adopt it without building separate security pipelines, potentially lowering the barrier to safe AI agent deployment at scale.

The integration tackles a specific security gap: AI agents can act autonomously on code and data, making traditional perimeter defenses insufficient. By sandboxing the agent locally and enforcing data-access policies centrally, the solution creates multiple, independent enforcement points that reduce the chance of a single failure compromising the system.

Lakewatch’s ability to aggregate telemetry from both the sandbox runtime and the data lake provides a unified view of agent behavior, which is essential for compliance and audit trails. This visibility is especially valuable for regulated industries where data-access logs must be retained and examined.

Because the components are built on Databricks’ existing platform (Unity Catalog, AI Gateway), the workflow can be adopted by customers already using Databricks for their data pipelines, lowering integration overhead compared to third-party security tools.

The approach also demonstrates a practical method for incident response: the alert includes actionable steps and links to the exact payloads that triggered the denial, enabling rapid containment without extensive forensic investigation.

Interactive Mechanism

Interactive Mechanism: How It Actually Works

Explore the underlying technology behind this development interactively.

Agent Lifecycle Stage:
1
User Intent & Planning: "Audit customer refund request #4092 and settle payment."
2
Tool Calling: Emits structured JSON call crm_get_transaction(id='4092').
3
Guardrail & Verification:Paused: High-value action requires human operator sign-off.
4
Final Settlement: Refund recorded, email receipt dispatched, and audit log stored.
Core takeaway: An AI agent is not just a language model—it is a closed loop of planning, tool invocation, and environment feedback. Production systems require self-healing retries and strict human approval guardrails.
Interactive Concept Check+10 Points
AI Agents Quiz

An agent must create a draft calendar event for Tuesday at 2 p.m. Which evidence would establish the requested result?

What to watch next

Future updates will reveal whether Lakewatch moves out of beta, how pricing and licensing are structured, and if Databricks adds automated response capabilities beyond manual analyst triage. Adoption metrics, such as the number of enterprises enabling the OpenShell-Lakewatch stack, will indicate market traction. Watch for compatibility extensions to other agent frameworks and for any reported bypass attempts that could test the limits of the sandbox and governance policies.

Lakewatch availability: Databricks has indicated Lakewatch is in beta. Monitoring when it becomes generally available, along with any associated pricing, will be critical for enterprises budgeting security tooling.

Automation of response: The current demo relies on a human-approved response to stop the agent. Future releases may add automated remediation (e.g., revoking credentials or terminating the sandbox) which would increase the solution’s efficacy.

Support for additional agent frameworks: The reference design mentions a "compatible coding agent" but does not list specific platforms. Expansion to popular agents such as GitHub Copilot, Cursor, or custom -driven bots would broaden applicability.

Adoption metrics and case studies: Databricks may publish early adopter results that reveal real-world effectiveness, false-positive rates, and performance impact of the sandbox policies.

Related guides & quizzes

Found this useful?