Latest
Databricks Outlines Way to Contain and Investigate Rogue Coding Agents
Image: Databricks

Databricks Outlines Way to Contain and Investigate Rogue Coding Agents

Databricks has published a reference workflow for securing AI coding agents that combines the open-source OpenShell sandbox runtime, Unity Catalog data permissions and its Lakewatch security investigation tool. The aim is to link what a developer asked an agent to do with what the agent actually attempted, and what each system allowed or blocked.

Databricks said the scenario starts with an ordinary task: a developer asks a coding agent to update a data pipeline, run tests and prepare a pull request. The code sits in a local repository, while the validation data lives in a Databricks Lakehouse. That crosses several security boundaries, and instructions hidden in repository files or issue descriptions could try to push the agent toward leaking credentials, sending data to an unexpected destination or touching resources outside its task.

Databricks Lakewatch incident view showing blocked actions by an AI coding agent
Image: Databricks

Separate controls at each boundary

OpenShell, described as an open-source secure runtime, runs the agent in a sandbox with policy-controlled access to files, credentials and networks. Databricks said an outbound request that breaks policy can be denied by OpenShell, while a data request beyond the authenticated identity’s permissions can be refused by Unity Catalog, which applies the rights of the user or service principal making the call.

The agent’s model calls pass through Unity AI Gateway, which records every prompt and response. Databricks said that record is the earliest evidence in an investigation, since injected instructions show up in the Gateway payload once the agent sends the malicious text to the model.

How Lakewatch connects the signals

In Databricks’ example, the developer sees only that the agent could not push and that a query was refused. Behind the scenes, OpenShell logged the blocked push and outbound connection, and Unity Catalog logged a rejected production query and a rejected DROP statement.

Databricks Lakewatch incident view showing blocked actions by an AI coding agent
Image: Databricks

Lakewatch ingests both streams and runs detection rules. Databricks said a single denial might be a misconfigured policy, but the same agent attempting to push to main, read a production table, drop a shared one and contact an outside host within minutes is an attack path worth investigating.

Lakewatch uses OpenShell’s native OCSF events, which record each attempted network connection, the policy decision and the initiating process. It also draws on Unity Catalog audit logs, SQL query history and table lineage from Databricks system tables.

An alert names the agent, its sandbox and its owner, and lists signals in order, each linked to the underlying event. Analysts can use Triage with Genie to ask natural-language questions such as what else the agent read that day. Because Lakewatch data sits in Unity Catalog tables, Databricks said it can also feed AI/BI dashboards showing each agent’s owner, assigned task, observed behaviour and response times.

What has and hasn’t been validated

Databricks was explicit about the limits. In a separate training demo, the full loop ran live, with Lakewatch tying the blocked actions and injected text into one incident and an automated response stopping the agent and cancelling its job. The coding workflow described here has not run that loop yet, so the company recommends starting with a human-approved response.

It also noted that stopping the local OpenShell environment does not automatically end work already running in Databricks, so remote jobs need to be checked and cancelled separately. The earlier demo loaded some telemetry manually and used a custom dashboard, and reusable dashboard and skill packaging remain in development.

Availability

Lakewatch is currently in Beta, according to Databricks, and interested customers should contact their account team about access and the coding agent reference workflow.

Stephen Orban, Databricks’ SVP of product partnerships and ecosystem, said bringing security signals and governed context together helps organisations investigate what agents are doing. Databricks argues the pattern extends beyond coding agents to any agent acting on enterprise data.

Source: Databricks Blog