DatabricksBrad DesAulniers, Sridurga Krithivasan, Kristin Dahl, Dave Herrald, Joel CarusoExplainer
Securing Coding Agents with OpenShell and Databricks Lakewatch
Summary
A coding agent working on a repository task and running SQL queries against a Databricks Lakehouse crosses multiple security boundaries. OpenShell is an open-source secure runtime that applies filesystem and network policies around a locally running agent. Databricks Unity Catalog enforces data permissions for the authenticated identity, and Unity AI Gateway records every model prompt and response. Databricks Lakewatch collects OpenShell events, Gateway payloads, and Databricks audit and query records into a single investigation. The workflow connects what the developer asked the agent to do with what it attempted, what each system permitted, and what response is appropriate.
Context
Coding agents that read repository files, issue descriptions, and execute code locally can be redirected by malicious instructions embedded in those materials to expose credentials, send data to unexpected destinations, or access resources outside their assigned task. The workflow crosses multiple security boundaries: the agent reads local files, executes code, and calls remote services. Each action has a separate enforcement point, and each denial produces evidence that can be investigated.
Approach / What changed
A reference workflow that combines OpenShell (a secure runtime for sandboxed AI agents with policy-controlled filesystem and network access), Databricks Unity Catalog (for data permissions), Unity AI Gateway (for recording model prompts and responses), and Databricks Lakewatch (for security detection and investigation). The agent runs locally in an OpenShell sandbox, calls a model inference endpoint through Unity AI Gateway, and executes SQL queries against governed development data in Databricks. OpenShell enforces local sandbox policies, Unity Catalog applies identity-based permissions to data requests, and Lakewatch collects OpenShell events, Gateway payloads, and Databricks audit/query records into a single investigation.
Takeaways
OpenShell applies filesystem and network policies around a local coding agent, while Databricks separately enforces access to its remote resources through Unity Catalog permissions.
Unity AI Gateway records every prompt and response sent to the model, providing the earliest evidence in an investigation when malicious instructions appear in the payload.
Lakewatch collects OpenShell events, Gateway payloads, and Databricks audit/query records into one investigation, enabling an analyst to trace an attack path from a single alert.
FAQ
What does OpenShell control in this architecture?
OpenShell applies configured controls around the local coding agent, including filesystem and network policies. Databricks separately enforces access to its remote resources.
What does Unity Catalog contribute?
Unity Catalog governs access to configured data and supported assets in Databricks. Requests from the coding workflow are evaluated using the permissions of the authenticated user or service principal.
Is Lakewatch generally available?
Lakewatch is currently in Beta. Contact your Databricks account team for current availability and access requirements.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.