Weaponizing AI Features in MSSQL Server 2025
Score: 8/10

Weaponizing AI Features in MSSQL Server 2025

Security researchers have demonstrated how new native AI features in Microsoft SQL Server 2025 can be weaponized for covert data exfiltration, NTLM coercion, and Command and Control (C2) transport.

Executive Summary

Microsoft SQL Server 2025 introduces several native AI-focused features designed for Retrieval-Augmented Generation (RAG) pipelines, including stored procedures for external REST API calls and embedding generation. Research from SpecterOps demonstrates that these features, specifically `sp_invoke_external_rest_endpoint`, can be abused by privileged users to exfiltrate database and system file contents via native HTTPS requests, bypassing traditional monitoring that flags command-line web tools.

Technical analysis reveals that the `CREATE EXTERNAL MODEL` function can also be leveraged for NTLM coercion via SMB by specifying attacker-controlled UNC paths. Furthermore, these features can be combined with .NET CLR assemblies to create a 'SqlC2Agent' that emulates legitimate AI embedding traffic, providing a persistent and stealthy C2 channel directly from the database engine. This shift toward normalized HTTPS egress from databases presents a significant challenge for SOC teams accustomed to treating database web traffic as inherently suspicious.

Key Details

Threat Name

MSSQL 2025 AI Feature Abuse

Affects

—

Adversary

—

MITRE Techniques

Malware/Tools

SqlC2Agent

Report Score

8out of 10
Quality Score
Good
IOC Quality4
TTP Details9
Detection Guidance9
Enterprise Relevance10
Clarity & Structure8
Technical Depth9

Sources