ML in Production · 5 min read

Databricks and OpenShell propose sandboxed, auditable coding agents

Databricks and OpenShell publish a reference workflow pairing sandboxed coding agents with Unity Catalog governance and beta Lakewatch investigation. The detection-to-response loop has not yet run live for coding.

By Marcus Bennett913 words

Key takeaways

  1. Lakewatch is currently in Beta; access requires contacting a Databricks account team.
  2. The full automated detection-to-response loop ran only in the training demo; the coding workflow has not yet run it.
  3. Unity AI Gateway records every model prompt and response, providing the earliest evidence in an investigation.
  4. OpenShell emits native OCSF events covering every network connection attempt, policy decision, and initiating process.
  5. Response actions — stopping the agent, restricting access, revoking credentials, cancelling remote work — require separate permissions and confirmation.
Databricks and OpenShell propose sandboxed, auditable coding agents
Godfrey_atima / pixabay

Databricks has published a reference architecture that sandboxes locally running coding agents with OpenShell while routing their model calls, SQL access, and telemetry through Unity Catalog, Unity AI Gateway, and the beta Lakewatch investigation service. The design addresses a specific threat: prompt injection (malicious instructions embedded in text an agent reads) that attempts credential theft or unauthorized data access. The critical caveat sits in the vendors' own words: the coding workflow has not yet run the full detection-to-response loop. Only the training demonstration has.

The authors — Brad DesAulniers, Sridurga Krithivasan, Kristin Dahl, Dave Herrald, and Joel Caruse — describe a workflow where the code stays in a local repository while validation data lives in a Databricks Lakehouse. An agent reads repository files and issue descriptions, executes code locally, and calls remote services. Instructions embedded in those materials could redirect it toward exposing credentials, sending data to unexpected destinations, or accessing out-of-scope resources.

What does the architecture actually enforce?

Two separate enforcement points anchor the design. OpenShell, an open-source secure runtime, applies filesystem and network policies around the local agent. Databricks separately authenticates remote requests, and Unity Catalog (Databricks' governance layer for data permissions) evaluates each query against the permissions of the authenticated user or service principal.

A malicious issue description asking the agent to export credentials and query a restricted production table gets split into two denials. OpenShell blocks the outbound request that violates policy; Unity Catalog rejects the production query. Neither denial stops the attack by itself. Each one leaves a record.

The model path is the earliest evidence source. Every prompt and response flows through Unity AI Gateway, so injected instructions appear in the Gateway payload before the agent acts. OpenShell's native OCSF events (a standardized security-event schema) record every network connection attempted, the policy decision, and the initiating process. Databricks system tables contribute the Unity Catalog audit log, SQL query history, and table lineage.

Lakewatch, currently in Beta, correlates those streams. One denial alone might indicate a misconfigured policy. An agent trying to push to main, read a production table, drop a shared one, and open an external connection within minutes constitutes an attack path worth investigating.

What does the analyst see?

The Lakewatch alert names the agent, its sandbox, and its owner, and lists the signals in chronological order. Each signal links to the underlying event, so an analyst can read the issue text the agent sent to the model, see the reply, and confirm what OpenShell and Unity Catalog each refused. A runbook attached to the alert prescribes next steps. For open questions, Triage with Genie opens a natural-language session over the same data — the example given is "what else did this agent read today" — without writing SQL.

All collected data lives in Unity Catalog tables and feeds Databricks dashboards. A fleet-level dashboard lists each agent with its owner, the assigned task, and what it actually did; a response log records actions taken and when. Any response requires an authorized operator or a separately configured responder.

What is validated, and what is not?

In the training demo, the full loop ran live: Lakewatch tied the blocked actions and injected text into one incident, and the response fired autonomously — it stopped the agent and cancelled its job. The coding workflow has not run that loop. The authors explicitly instruct teams to begin with a human-approved response.

The earlier demonstration also loaded some telemetry manually and used a custom dashboard. A collector, dashboard, or responder built for the example should be documented separately from native Lakewatch functionality. Reusable dashboard and skill packaging remain in development.

Stopping the local OpenShell environment does not automatically terminate work already running in Databricks. Where remote work exists, check its status separately and confirm cancellation. OpenShell continues enforcing its runtime policies independently of Lakewatch detection and any subsequent action.

Stephen Orban, SVP of Product Partnerships and Ecosystem at Databricks, said: "AI agents are becoming part of how teams work with data and models. Bringing security signals and governed context together helps organizations investigate what those agents are doing and make informed decisions about the next action."

What should a data team do?

The authors recommend a specific sequence:

  • Verify collection and correlation for the coding workflow before relying on its alerts; configure a retention-appropriate collection path.
  • Prepare a local environment supported by OpenShell, a compatible coding agent, and a configured model inference endpoint. The model itself does not need to run locally.
  • Use synthetic or authorized test data; define the agent identity, permitted destinations, and response responsibilities upfront.
  • With the security owner's approval, exercise a controlled scenario involving an unauthorized destination or restricted data request, and compare attempted actions with actual outcomes.
  • After containment, rerun the authorized task and confirm controls still permit the intended workflow.

Ownership splits across four boundaries: execution (OpenShell sandbox versus remote SQL and services), access (sandbox policy versus Unity Catalog), identity (agent credentials versus user or service principal), and response (authorized local action versus authorized remote action).

The pattern extends beyond coding agents. Limits must live outside the agent, because instructions can arrive from anything the agent reads. The authors' closing advice: start with the reference workflow, validate containment with your security owner, and extend it one boundary at a time. Teams evaluating the stack should contact their Databricks account team for current Lakewatch availability, since the service is in Beta and access requirements are not yet public documentation.

nvidia.com (Original)

Price tags

Share this article:

More from Marcus Bennett

Marcus Bennett

Show full bio

News editor covering people, launches and day-to-day practice in Analytics Digest is a professional daily at Analytics Digest.

59 articles

Read also

« Previous articleNext article »