Community Blog Qoder × AgentLoop: As Agent Adoption Scales, How Can Sensitive Data Protection Keep Pace?

Qoder × AgentLoop: As Agent Adoption Scales, How Can Sensitive Data Protection Keep Pace?

This article explains how AgentLoop secures sensitive data and prevents credential leaks in enterprise AI coding agents.

By Xu Kejia (Yemo)

As Qoder expands to more teams across the enterprise, the number of development tasks it participates in also grows. To complete these tasks, Qoder may need to read project configurations, analyze runtime logs, or invoke internal tools, encountering sensitive data such as access credentials and customer information in the process. When these operations are distributed across different members, projects, and environments, security teams need continuous visibility into which tasks accessed sensitive data, what operations used that data, and whether the usage complied with enterprise security requirements.

Making these determinations requires correlating the task purpose, tool calls, and returned results to verify whether sensitive content was used beyond the permitted scope. If an issue involves configurations or tools shared by multiple projects, other tasks that use them must also be examined to determine whether similar situations exist. These reviews must be based on Agent audit logs that can be correlated with specific tasks and calls.

AgentLoop continuously analyzes collected Qoder audit logs and correlates identified risk indicators with specific sessions, tool calls, members, and environments. This helps security teams review task execution, identify areas requiring remediation, and verify remediation outcomes. To address the risk of credential leakage during tasks, enterprises can also enable local credential protection in supported Qoder clients to intercept content that matches configured rules.

Sensitive Data Risks Hidden in Everyday Development

Public investigations and cases from 2026 documented security issues in development environments, credential exposure in publicly accessible configurations, and the use of Coding Agents to transfer enterprise data:

  • Security issues in development environments: In June 2026, Snyk published research based on anonymized telemetry from nearly 10,000 development environments. Among the sampled developers with MCP services installed, approximately one in seven had at least one security issue detected in their configuration, and approximately one in twelve had a high-severity or critical issue. The security findings were not limited to credentials, and the detection rate does not equal the actual leakage rate.
  • Publicly exposed credentials that remained valid: A report published by GitGuardian in March 2026 identified 24,008 distinct secrets and other sensitive items in MCP-related configuration files on public GitHub repositories. Of these, 2,117 credentials were still valid when verified.
  • Large-scale data transfer during execution: According to a case disclosed by Noma in September 2026, an enterprise employee instructed a Coding Agent to collect and package company data, including private source code, and upload it to external cloud storage. Subsequent instructions explicitly stated that authentication keys should not be excluded. The activity spanned two days and ultimately transferred tens of gigabytes of data. The case was disclosed by a vendor, with neither the customer name nor original logs made public, so the full incident cannot be independently verified from publicly available materials alone.

Credential leakage risks do not arise only from malicious behavior. Even when a task is legitimate, an Agent may inadvertently carry credentials into subsequent interactions while troubleshooting. Consider a developer using Qoder to add a file upload API that reuses the project's existing file storage service. During integration testing, the storage service returns AccessDenied. To verify the connection parameters, Qoder reads config/storage.local.json, causing the AccessKey to appear in the tool result together with the file contents. If a subsequent model request includes that tool result, the credential will also enter the model context.

The risk may also extend to subsequent outbound requests. To further investigate the cause, the developer asks Qoder to submit an error summary to the external diagnostic service https://diagnostics.example.com/report (example address). Qoder then invokes a tool to send an HTTP POST request to that address. If the request parameters contain not only the error summary but also the recently read configuration containing the credential, the credential may be sent to the service with the request. Even if the enterprise permits the service to be used for troubleshooting, submitting access credentials to it may exceed the permitted scope.

1
Figure 1: Potential paths for credential transmission in model interactions and outbound requests.

Assessing this type of risk requires correlating enterprise data usage requirements with Agent audit logs to verify the credential source, request content, and execution result. Merely detecting an AccessKey does not prove that the credential was successfully transmitted externally. The return content of the corresponding tool call in the audit logs must also be examined to verify, based on the actual response, whether the request was successfully sent.

Similar file reads, log analyses, and tool queries may also access business materials, personal information, and source code:

Data Category Common Sources How It Enters a Task
Access Credentials Cloud account AccessKeys, API Keys, access tokens, private keys, and password-bearing database connection strings Pasted configurations, credential file reads, diagnostic output, and tool parameters
Business and Personal Information Customer records, sample orders, logs containing personal information, and incident tickets Log analysis, test data reads, and business system queries through tools
R&D and Internal Materials Private source code, architecture documents, unpublished plans, and internal service configurations Code searches, file reads, document retrieval, and task attachments

The following sections use AccessKey as an example to explain how to audit, investigate, and remediate credential indicators originating from configuration reads, and how local protection can reduce the risk of credentials being transmitted further.

Preserving Execution Evidence for Sensitive Data Audits

Auditing the use of sensitive data in development tasks requires examining its source, how it was used, and where it went. Qoder provides a Hook extension mechanism that allows custom logic to run at stages such as user submission and before or after tool calls, providing an integration foundation for audit log collection and security checks. However, if an enterprise builds auditing directly on Hooks, it must still develop and maintain its own processes for log collection, format normalization, session-to-call correlation, redaction, and reporting.

AgentLoop handles these tasks through the open-source collection component LoongSuite Pilot (hereinafter referred to as Pilot). Pilot runs on the endpoint or host where Qoder is deployed and continuously collects and organizes user requests, tool parameters, and returned results to produce Agent audit logs. These logs preserve session and call identifiers and execution order, while associating them with users, hosts, and workspaces. After processing, the logs are ingested into AgentLoop, allowing investigators to trace the source and location of credentials and subsequent related operations within the same task, and to identify the members and environments involved. This reduces the effort enterprises must spend building and maintaining collection and processing pipelines, allowing them to focus on risk investigation and response.

Agent audit logs may themselves contain sensitive content such as credentials. Based on enabled redaction rules, Pilot can replace matched sensitive values with type markers within the enterprise's local environment before reporting the processed audit logs. Built-in redaction rules cover credentials such as cloud AccessKeys in specific formats, API Keys, and SSH private keys, as well as certain personal information; enterprises can enable the relevant rules as needed. After processing, investigators can still examine tasks using the retained type markers, locations, sessions, and call relationships, preserving investigative leads while reducing the retention of original sensitive values. Enterprise security teams can also review Pilot's source code and deployment configuration to verify that the collection scope, redaction rules, and reporting process meet enterprise security requirements.

Reported audit logs are stored in SLS under the customer's account, with access controlled through RAM permissions. Enterprises can define auditors' access scope and log retention periods to manage data retention and use.

2
Figure 2: Collection, processing, and reporting of Qoder audit logs.

Investigating Risks and Driving Remediation with AgentLoop

AgentLoop continuously analyzes collected Agent audit logs and identifies risks through rule-based detection and model-based semantic assessment. Rule-based detection matches sensitive characteristics and behavioral conditions to identify known risks. Indicators requiring contextual judgment are further assessed by reviewing session evidence and comparing task requirements with actual operations. Once the criteria are met, AgentLoop creates a risk event and retains the basis for the determination, evidence locations, and related sessions for security teams to investigate and review.

3
Figure 3: AgentLoop's rule-based detection and semantic assessment workflow.

Locating and Verifying the Risk of Outbound Credential Transmission

Using the diagnostic request above as an example, if the request parameters sent to the external diagnostic service contain access credentials, this creates a risk indicator that an “Alibaba Cloud credential appears in an outbound transmission intent.” In the Risk Explorer, security teams can filter events by application, time, risk type, and severity to locate diagnostic requests requiring investigation.

4
Figure 4: Locating outbound credential transmission indicators in the Risk Explorer.

Investigators can enter the related session from the risk event, examine the tool call that initiated a request to diagnostics.example.com, compare it with the configuration read result and subsequent model interactions, verify whether the credential came from config/storage.local.json, and trace how it entered the diagnostic request parameters.

5
Figure 5: Credential indicators in an outbound request and the related session.

On this basis, investigators must consider the diagnostic purpose, task requirements, and enterprise data usage policies to determine whether the credential carried in the request was permitted content, and use the service response in the tool-call record to verify whether the request was successfully sent. For credentials confirmed to have been transmitted externally, cloud account access records can also be reviewed to examine access origins and operations and determine whether unauthorized use occurred.

Identifying Similar Risks Through Entity Investigation

The same credential may be used by multiple tasks, so an investigation into a single event can extend to those related tasks. AgentLoop supports entity investigations that start with a credential: the Secret entity overview summarizes risks and sessions associated with the credential, while entity relationships show related members, hosts, applications, tools, and external domains, providing leads for defining the scope of investigation.

6
Figure 6: Overview of risks and sessions associated with a credential.

7
Figure 7: Relationships between a credential and entities such as members, hosts, and tools.

For the credential identified in this case, investigators can use related objects such as qoder:read, qoder:exec, and diagnostics.example.com to review file reads and outbound requests in the corresponding sessions, and check whether the diagnostic requests also contained the credential. This helps determine whether similar outbound credential transmission issues exist in related tasks.

Analyzing Risk Composition by User

The investigation can also extend from the credential to associated users to examine the distribution of risks across their development tasks. AgentLoop's user risk details summarize the risks and sessions associated with a user within the current query scope and provide information about hosts, applications, tools, and external domains. By correlating risk type, severity, and occurrence time, security teams can determine whether credential exposure recurs and whether risks such as unexpected code execution and file deletion are concentrated in specific tasks or environments, thereby identifying sessions that should be investigated first.

8
Figure 8: User risk composition, occurrence environments, and related entities.

Implementing Remediation and Conducting Ongoing Reviews

For credential transmission issues confirmed by investigation, R&D teams can adjust configuration access permissions and how diagnostic content is generated to prevent credentials from being written into outbound requests. Credential owners can assess whether credentials should be rotated or permissions adjusted based on the exposure scope and cloud account access records. If multiple issues are confirmed to originate from shared configurations or diagnostic tools, all affected projects should be corrected in parallel; issues with different root causes should be handled separately.

Data usage requirements established during remediation can also be converted into audit conditions for subsequent tasks. Built-in rules detect common risks such as outbound credential transmission, while custom rules can supplement restrictions specific to the enterprise's file scopes and upload destinations. For example, when organizing customer data or generating reports, an enterprise may require files in the data/customer-export/ and data/finance/ directories to be submitted only to the approved files.corp.example service. If Qoder invokes a tool to upload files from these directories to an unapproved service such as convert.example.com, a rule can identify the noncompliant upload request based on the file path and destination address in the upload parameters. This type of detection does not depend on the logs containing the full file contents or on matching known credential characteristics.

Auditors can describe restricted directories, approved services, and determination criteria in natural language, have an Agent assistant generate the rule, and prepare positive and negative examples for validation. For example, uploading the same file to an unapproved service should trigger the rule, while uploading it to an approved service should not. Once the rule has been validated, manually reviewed, and enabled, it can continuously inspect relevant audit logs from subsequent Qoder tasks, while allowing auditors to review the sessions and tool calls corresponding to matched records.

9
Figure 9: Custom audit rule for restricted file uploads.

After remediation, subsequent tasks must still be reviewed to determine whether diagnostic requests continue to contain credentials that should not be submitted and whether file uploads comply with enterprise requirements. If the issue recurs, investigators should return to the corresponding session and examine what further adjustments are needed in the relevant configurations and tools.

Intercepting Credential Transmission During Qoder Execution

Agent audit logs enable security teams to identify risks, investigate causes, and drive remediation. By the time a risk is detected, however, the relevant operation may already have been executed, and the credential may already have entered the model context or been sent to an external service. Therefore, in addition to post-event investigations, enterprises need to intervene during task execution to inspect and intercept credentials before they are transmitted.

Credential interception relies on the locally running LoongSuite-Pilot service. Pilot identifies credentials using local rules, and Qoder blocks them based on the check results. The detection stage neither sends original content off the local machine nor relies on model inference, eliminating the network round trip and inference wait associated with remote detection and incurring no additional model-call costs. This makes it suitable for continuous use in everyday development.

10
Figure 10: Local credential checks, client-side interception, and audit reporting.

Locally Detecting and Intercepting Content Containing Credentials

In supported Qoder clients, including Qoder CLI, enterprises can enable local credential protection to reduce the risk of credentials entering model context or being transmitted externally with requests. Pilot performs checks at the following three stages, and Qoder intercepts content based on the results:

  • On user submission: The user input is inspected. If the submitted content contains a credential that matches a rule, Qoder rejects the submission.
  • Before a tool call: The tool parameters awaiting execution are inspected. For example, if a diagnostic request to diagnostics.example.com contains a credential that matches a rule, Qoder rejects the call and prevents the request from being executed.
  • When a tool returns: The returned content from a file read or script execution is inspected. For example, if the result of reading config/storage.local.json contains an AccessKey that matches a rule, Qoder replaces the entire tool result with an interception notice before passing it to the model.

11
Figure 11: Qoder intercepts tool output containing credentials.

Verifying Interception Effectiveness in AgentLoop

Pilot reports local credential-check records and related Agent audit logs to AgentLoop, with sensitive fields in the logs processed according to enabled redaction rules. Security teams can view processing decisions in “Interception Records” and correlate them with session records and client feedback to verify whether Qoder actually rejected or replaced the content.

12
Figure 12: Viewing interception records and related sessions.

Currently, local protection mainly covers credential transmission risks that can be identified by rules, including cloud AccessKeys in specific formats, certain API Keys, private keys, and password-bearing database connection strings. A fail-open policy is used when the Pilot service is unavailable or a check times out. Therefore, reviews of protection effectiveness must also verify that the local service is functioning properly and that the relevant rules are enabled.

Future plans include support for custom interception rules based on risks identified through auditing. Security teams will then be able to configure interception conditions based on risks confirmed during audit investigations and enterprise security requirements, blocking operations in subsequent tasks that meet those conditions.

Centrally Deploying Auditing and Credential Protection Through Qoder Enterprise Management

To extend audit collection and local credential protection to more teams, Pilot must be deployed to the development endpoints of the relevant members. Enterprises can centrally distribute the Pilot installation plugin through Qoder's enterprise marketplace and deliver administrator-prepared initial configurations with the plugin, reducing the need for members to install and configure it individually.

13
Figure 13: Distributing the Pilot installation plugin through Qoder's enterprise marketplace.

Administrators can distribute the plugin to all members or specified groups and, according to enterprise management requirements, configure policies such as client-configurable, mandatory enablement, or silent enablement to define the deployment scope and client activation method.

14
Figure 14: Configuring the plugin distribution scope and enablement policy.

After the plugin is distributed and enabled, it checks local status when a member starts a new session, installs or updates Pilot as needed, and applies the corresponding collection and credential protection configuration.

After integration, security teams can view the relevant members' audit logs and credential-check records in AgentLoop, verify whether development tasks are connected, and examine local protection outcomes together with the related sessions. As Qoder is adopted by more teams, enterprises can both organize deployment centrally and continuously review sensitive data risks in actual development tasks.

For supported integration methods, see the Audit Integration Guide. You can also visit the AgentLoop demo environment to explore risk queries, session views, and entity investigations.

0 0 0
Share on

Alibaba Cloud Native Community

844 posts | 61 followers

Comments