Executive SummaryRisk level: High
What happened

An attacker exploited a remote code execution (RCE) vulnerability in SGLang, an open-source inference engine, allowing unauthorized code execution on NEAR AI’s inference server.

Who is affected

The breach has impacted NEAR AI, leading to potential data exposure from around 18 agents and approximately 100 users.

Why it matters

This incident highlights significant vulnerabilities in widely-used AI inference technologies, emphasizing the need for robust security mechanisms in critical systems.

Immediate recommended actions

  • Conduct a full audit of all SGLang instances in use.
  • Implement security controls to mitigate RCE vulnerabilities.
  • Enhance monitoring of inference server activities.
  • Notify affected users and agents about potential data exposure.

Key Technical Findings

Vulnerability / Campaign Type

Remote Code Execution (RCE)

Affected Systems

SGLang inference engine, NEAR AI inference servers

Initial Access Vector

Exploitation of RCE vulnerability in SGLang

Execution Method

Remote code execution on inference server

Persistence

Not specified in the source material

Privilege Escalation

Not specified in the source material

Defense Evasion

Not specified in the source material

Credential Access

Not specified in the source material

Lateral Movement

Not specified in the source material

Data Exfiltration

Potential access to sensitive data from 18 agents and 100 users

Impact Level

High – potential data leak and service disruption

Technical Background

The incident involves a critical remote code execution (RCE) vulnerability within the SGLang inference engine, which serves as an open-source component widely utilized for AI model inference. Such vulnerabilities allow attackers to run arbitrary code on affected systems, potentially leading to severe security breaches. The exploitation of this vulnerability suggests inadequate input validation or insufficient sanitization mechanisms within the affected software.

The primary objective of exploiting this type of vulnerability is often to gain unauthorized access to sensitive data or to disrupt services. In this case, the attacker had the ability to view requests being processed on the compromised server, including those handled within a trusted execution environment (TEE), indicating that even sensitive operations may have been exposed.

Attack Chain Analysis

  1. Initial Access

    ActivityThe attacker exploited the RCE vulnerability in SGLang.

    EvidenceLogs from the affected server showing unauthorized code execution.

    TelemetryEDR logs indicating anomalies or unauthorized commands.

    Detection opportunityMonitor for unusual command executions via EDR solutions.

Deep Technical Behavior Analysis

The exploitation of the RCE flaw likely involved leveraging crafted inputs that bypassed existing validation checks, allowing code execution within the context of the server’s operational environment. Such vulnerabilities are common in software that processes untrusted input without adequate safeguards. Attackers typically employ techniques such as command injection or unsanitized input execution to exploit these weaknesses.

Once access is gained, the attacker may deploy additional payloads or scripts to maintain persistence or escalate privileges, although specific methods used in this incident remain unspecified. Defensive mechanisms should include comprehensive input validation and stringent logging to trace any anomalies promptly. Continuous monitoring is vital to detect potential lateral movement or data exfiltration attempts.

Indicators of Compromise

No indicators of compromise were provided in the source material.

Indicators of Behavior

Behavioral Indicator Description Data Source Confidence
Unusual Command Execution Execution of commands not typically observed in normal operation. EDR logs, Sysmon events Potential

Detection Engineering Guidance

Execution of Untrusted Code (RCE)
  • ObjectiveDetect unauthorized code execution attempts.
  • Suspicious patternUnusual patterns in command line arguments or execution context.
  • Data sourceEDR logs, Sysmon events.
  • False positivesLegitimate administrative tasks that require elevated permissions.
  • ResponseAlert security personnel and initiate incident response protocols.
index=edr process=sglang (command_line='*') | stats count by user, command_line
Abnormal Network Traffic Patterns
  • ObjectiveIdentify potential exfiltration attempts through unusual outbound connections.
  • Suspicious patternExcessive outbound connections initiated from the inference servers.
  • Data sourceNetwork logs, proxy logs.
  • False positivesIncreased legitimate usage during peak hours.
  • ResponseInvestigate suspicious connections and correlate with internal logs.
index=network src_ip=* | stats count by dest_ip, dest_port | where count > threshold