Threat reportThreat IntelligenceTL-2026-3643
AI Agents Create an Unseen Credential Surface Exposing API Keys and Cloud Secrets
Trellix research (published 2026-10-14) describes an 'unseen credential surface' in which AI agents handling OAuth tokens, configuration files and cloud secrets cause those values to migrate from protected storage into command histories, logs, transcripts and model contexts. The exposure arises from normal agent behavior and does not require malware.
Key facts
| Identifiers | TL-2026-3643 |
|---|---|
| Also known as | Unseen credential surface |
| Severity | MEDIUM |
| First disclosed | |
| Affected products | Various AI agent frameworks and agent-enabled workstations/containers handling OAuth tokens, API keys and cloud secrets |
| Weaknesses (CWE) | CWE-522, CWE-532 |
| Tools | AI agent transcripts and logs |
| MITRE ATT&CK techniques | T1005 Data from Local System, T1059.004 Command and Scripting Interpreter: Unix Shell, T1098.004 Account Manipulation: SSH Authorized Keys, T1546.004 Event Triggered Execution: Unix Shell Configuration Modification, T1552 Unsecured Credentials, T1552.001 Unsecured Credentials: Credentials In Files, T1552.003 Shell History, T1552.004 Unsecured Credentials: Private Keys, T1555 Credentials from Password Stores, T1555.006 Credentials from Password Stores: Cloud Secrets Management Stores |
| Motivation | UNKNOWN |
| Target sectors | technology, software-development, cloud-services, enterprise |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 9 cited sources |
Detection coverage
As of 2026-10-15, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3643 across Splunk SPL, Microsoft KQL and Sigma, covering 7 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: AI Agent Credential Exposure - Secrets or Disabled TLS Verification in curl/wget/git Arguments (Splunk)
Flags curl, wget or git launched with bearer tokens, API keys, passwords or URL-embedded credentials on the command line, or with TLS certificate verification disabled. These are the command-line credential and weakened-certificate-check behavior classes in the Trellix 'unseen credential surface' research (TL-2026-3643, T1552). Secrets in process arguments are visible to process monitoring and persist in shell history and agent transcripts. The command is redacted in the output so the alert does not re-leak the secret. No malware, CVE or network IOC is involved, so the rule is behavior-first.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1552, T1059.004
- Data sources: sysmon_for_linux, linux_process_creation, DeviceProcessEvents
- Severity: high
- Confidence: high
Splunk SPL
index=linux sourcetype="sysmon:linux" EventCode=1 earliest=-24h@h (Image="*/curl" OR Image="*/wget" OR Image="*/git")
```Secrets or disabled TLS verification in curl/wget/git arguments (TL-2026-3643, T1552)```
| eval proc_ctx=coalesce(ParentImage,"")." ".coalesce(ParentCommandLine,"")
| eval agent_ctx=if(match(proc_ctx,"(?i)(claude|gemini|codex|aider|cursor|copilot|opencode|cline|goose|openclaw|mcp-server|langchain|autogen|crewai)"),1,0)
| eval secret_in_args=if(match(CommandLine,"(?i)authorization: *bearer +[A-Za-z0-9._~+/=-]{20,}") OR match(CommandLine,"(?i)--(password|token|oauth2-bearer)[= ]+[^ ]{8,}") OR match(CommandLine," -u +[^ :]+:[^ ]{6,}") OR match(CommandLine,"(AKIA[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{36}|github_pat_[A-Za-z0-9_]{50,}|npm_[A-Za-z0-9]{36}|sk-[A-Za-z0-9_-]{20,})") OR match(CommandLine,"https?://[^/ :@]+:[^/ @]+@"),1,0)
| eval tls_verify_disabled=if(match(CommandLine,"(?i)(^| )-k( |$)|--insecure|--no-check-certificate|sslVerify=false|GIT_SSL_NO_VERIFY|NODE_TLS_REJECT_UNAUTHORIZED=0"),1,0)
| where secret_in_args=1 OR tls_verify_disabled=1
| eval cmd_redacted=replace(replace(CommandLine,"(?i)(bearer +|password[= ]+|token[= ]+)[^ ]+","\1[REDACTED]"),"://[^/ :@]+:[^/ @]+@","://[REDACTED]@")
| stats count min(_time) as first_seen max(_time) as last_seen values(cmd_redacted) as commands max(agent_ctx) as agent_ctx max(secret_in_args) as secret_in_args max(tls_verify_disabled) as tls_verify_disabled by host User Image ParentImage
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
let AgentRe = @"(?i)(claude|gemini|codex|aider|cursor|copilot|opencode|cline|goose|openclaw|mcp-server|langchain|autogen|crewai)";
let SecretRe = @"(?i)(authorization: *bearer +[A-Za-z0-9._~+/=-]{20,}|--(password|token|oauth2-bearer)[= ]+[^ ]{8,}| -u +[^ :]+:[^ ]{6,}|AKIA[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{36}|github_pat_[A-Za-z0-9_]{50,}|npm_[A-Za-z0-9]{36}|sk-[A-Za-z0-9_-]{20,}|https?://[^/ :@]+:[^/ @]+@)";
let TlsOffRe = @"(?i)((^| )-k( |$)|--insecure|--no-check-certificate|sslVerify=false|GIT_SSL_NO_VERIFY|NODE_TLS_REJECT_UNAUTHORIZED=0)";
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ("curl", "wget", "git")
| extend SecretInArgs = ProcessCommandLine matches regex SecretRe, TlsVerifyDisabled = ProcessCommandLine matches regex TlsOffRe
| where SecretInArgs or TlsVerifyDisabled
| extend AgentContext = strcat(InitiatingProcessFileName, " ", InitiatingProcessCommandLine, " ", InitiatingProcessParentFileName) matches regex AgentRe
| extend CmdRedacted = replace_regex(replace_regex(ProcessCommandLine, @"(?i)(bearer +|password[= ]+|token[= ]+)[^ ]+", @"\1[REDACTED]"), @"://[^/ :@]+:[^/ @]+@", @"://[REDACTED]@")
| summarize Events = count(), FirstSeen = min(Timestamp), LastSeen = max(Timestamp), Commands = make_set(CmdRedacted, 10) by DeviceName, AccountName, FileName, InitiatingProcessFileName, SecretInArgs, TlsVerifyDisabled, AgentContext
| order by LastSeen descSigma
title: AI Agent Credential Exposure - Secrets or Disabled TLS Checks in curl/wget/git Arguments
id: 7c1e5a30-4b2d-4f6a-9e81-3d5a0b7c2e11
status: experimental
description: Detects curl, wget or git run with bearer tokens, API keys, passwords or URL-embedded credentials on the command line, or with TLS certificate verification disabled. Covers the command-line credential and weakened certificate check behavior classes of the Trellix unseen credential surface research (TL-2026-3643).
references:
- https://www.trellix.com/blogs/research/unseen-credential-surface-ai-agents-expose-secrets/
- https://cybersecuritynews.com/ai-agents-4/
- https://attack.mitre.org/techniques/T1552/
author: Threadlinqs Team
date: 2026-10-15
tags:
- attack.credential_access
- attack.t1552
- attack.execution
- attack.t1059.004
logsource:
category: process_creation
product: linux
detection:
selection_img:
Image|endswith:
- '/curl'
- '/wget'
- '/git'
selection_secret:
CommandLine|re:
- '(?i)authorization: *bearer +[A-Za-z0-9._~+/=-]{20,}'
- '(?i)--(password|token|oauth2-bearer)[= ]+[^ ]{8,}'
- ' -u +[^ :]+:[^ ]{6,}'
- '(AKIA[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{36}|github_pat_[A-Za-z0-9_]{50,}|npm_[A-Za-z0-9]{36}|sk-[A-Za-z0-9_-]{20,})'
- 'https?://[^/ :@]+:[^/ @]+@'
selection_tls:
CommandLine|contains:
- ' -k '
- '--insecure'
- '--no-check-certificate'
- 'sslVerify=false'
- 'GIT_SSL_NO_VERIFY'
- 'NODE_TLS_REJECT_UNAUTHORIZED=0'
condition: selection_img and (selection_secret or selection_tls)
falsepositives:
- Developers or CI jobs passing tokens inline in scripted curl calls
- Legitimate use of -k against internal test endpoints with self-signed certificates
level: highKnown false positives:
- Developers or CI jobs passing tokens inline in scripted curl/git calls
- Legitimate use of -k / --insecure against internal test endpoints with self-signed certificates
Tuning notes: Adjust index/sourcetype to your Sysmon for Linux or auditd ingestion. Alert only when agent_ctx=1 on noisy fleets, and keep full alerting for secret_in_args=1 on servers and agent-enabled workstations. Allowlist known CI runner accounts and test hosts. The agent-name regex only inspects the direct parent, so enrich with process ancestry where available.
- AI Agent Credential Exposure - Secrets or Disabled TLS Verification in curl/wget/git Arguments (Sentinel KQL) · unlock with TL Creds
- AI Agent Credential Harvesting - Credential File Reads, Cloud Secret Retrieval and Environment Dumps (Sentinel KQL) · unlock with TL Creds
- AI Agent Persistence Side Effects - SSH Key Creation, Shell Startup Modification and Hidden Command Execution (Sentinel KQL) · unlock with TL Creds
- AI Agent Credential Exposure - Secrets or Disabled TLS Verification in curl/wget/git Arguments (Sigma) · unlock with TL Creds
- AI Agent Credential Harvesting - Credential File Reads, Cloud Secret Retrieval and Environment Dumps (Sigma) · unlock with TL Creds
- AI Agent Persistence Side Effects - SSH Key Creation, Shell Startup Modification and Hidden Command Execution (Sigma) · unlock with TL Creds
- AI Agent Credential Harvesting - Credential File Reads, Cloud Secret Retrieval and Environment Dumps (Splunk) · unlock with TL Creds
- AI Agent Persistence Side Effects - SSH Key Creation, Shell Startup Modification and Hidden Command Execution (Splunk) · unlock with TL Creds
Indicators of compromise
As of 2026-10-15, Threadlinqs Intelligence tracks 7 indicators of compromise for TL-2026-3643.
Technical analysis
Trellix researchers identified what they call an unseen credential surface: the path that secrets travel from protected storage (vaults, credential files, cloud secret stores) into exposed locations during ordinary AI agent operation. According to the reporting by Cyber Security News, secrets end up in command-line arguments visible to process-monitoring tools and shell history, in command and agent transcripts, in environment variables, in .env and cloud configuration files, and in model context that is sent to external model providers.
The research groups the risky agent behaviors into ten classes. Those named in the coverage include: credentials passed on the command line; reads of credential files; cloud secret retrieval; weakened certificate checks; hidden command execution; modification of startup files; OAuth tokens placed in command arguments; SSH key creation to bypass interactive prompts; and environment variable exposure. Tools involved in these patterns include curl, git, cat, cloud CLI tools, configuration editors, build tools and SSH key utilities.
The key finding is that the risk does not require malware; it can arise from normal agent behavior and the way credentials are handled. Once a secret is copied into a transcript, log, shell history or model context, it is outside the controls that protected the original store and may be readable by other local users or processes, log pipelines, or the model provider, and could be harvested by an attacker with access to those artifacts or via untrusted instructions given to the agent.
Recommended mitigations from the coverage: avoid passing secrets via command-line arguments; use provider SDKs or stdin/restricted file descriptors; block unsafe command patterns in agent frameworks; automatically redact credential-like values; limit agent exposure to untrusted instructions; grant each agent minimal permissions; use short-lived, narrowly scoped credentials; restrict network access; and treat agent-enabled workstations and containers as sensitive systems. No CVE, CVSS score, threat actor, malware family or network IOC is stated in the sources; severity is an analyst assessment. The Trellix primary article returned HTTP 403 and could not be fetched directly, so details derive from the secondary report.
MITRE ATT&CK techniques by tactic:
Collection
Execution
T1059.004 Command and Scripting Interpreter: Unix Shell
Persistence
T1098.004 Account Manipulation: SSH Authorized Keys; T1546.004 Event Triggered Execution: Unix Shell Configuration Modification
Credential Access
T1552 Unsecured Credentials; T1552.001 Unsecured Credentials: Credentials In Files; T1552.003 Shell History; T1552.004 Unsecured Credentials: Private Keys; T1555 Credentials from Password Stores; T1555.006 Credentials from Password Stores: Cloud Secrets Management Stores
Remediation
Immediate actions
- Audit agent-enabled workstations and containers for secrets in shell history, transcripts, logs, .env files and process command lines
- Rotate any credential that was passed on a command line or appeared in an agent transcript or model context
- Block unsafe command patterns (secrets in arguments, disabled certificate verification, unprompted SSH key creation) in agent frameworks
Workarounds
- Limit agent access to untrusted instructions
- Restrict agent network access
Longer-term hardening
- Use provider SDKs, stdin or restricted file descriptors instead of command-line arguments for secrets
- Automatically redact credential-like values from agent logs, transcripts and model context
- Issue short-lived, narrowly scoped credentials and grant each agent minimal permissions
- Treat agent-enabled workstations and containers as sensitive systems
Affected and fixed versions
- Various — AI agent frameworks and agent-enabled workstations/containers handling OAuth tokens, API keys and cloud secrets
Vulnerable versions: Not version-specific; behavioral risk
Timeline
- Precedent: the s1ngularity attack (described by Okta as mid-September 2025) abused locally installed AI CLIs (Claude, Gemini, AWS Q) via a malicious npm post-install script (locked-ioc-2) to hunt .env/.config files for GitHub, npm, cloud and SSH credentials
- MITRE ATLAS 2026.07 documents AML.T0083 Credentials from AI Agent Configuration (Credential Access), formalizing agent configuration files as a credential source
- Industry commentary on inventorying AI agent credentials published (Help Net Security), reflecting growing concern over agent credential handling
- Trellix groups risky agent behaviors into ten classes, including command-line credentials, credential-file reads, cloud secret retrieval, weakened certificate checks, hidden command execution and startup file modification
- Trellix publishes research describing the unseen credential surface created by AI agents handling OAuth tokens, config files and cloud secrets
- Threat tracked on Threadlinqs platform as a research-based, monitoring-status item; no exploitation, CVE or threat actor confirmed
- Cyber Security News reports on the Trellix research and lists mitigations such as stdin/SDK secret passing, redaction and short-lived scoped credentials
Sources cited
- MITRE ATT&CK T1552 Unsecured Credentials MITRE · Advisory
- Trellix: Unseen Credential Surface - AI Agents Expose Secrets trellix.com · Research · 2026-10-14
- Okta: The s1ngularity attack - when attackers prompt your AI agents to do their bidding okta.com · Research · 2025-09-15
- MITRE ATLAS AML.T0083 Credentials from AI Agent Configuration startupdefense.io · Research
- FINOS AI Governance Framework: Agent-mediated credential discovery and harvesting (RI-29) air-governance-framework.finos.org · Research
- Obsidian Security: AI Agent Credential Exposure obsidiansecurity.com · Blog
- WorkOS: AI Agent Secrets Management workos.com · Blog
- Gravitee: Credential Leakage Scans gravitee.io · Blog
- AI Agents Create an Unseen Credential Surface That Exposes API Keys and Cloud Secrets cybersecuritynews.com · News · 2026-10-15
Previous and next in threat intel
Drafted by the Threadlinqs research pipeline from 9 sources; published ; last updated —.