AI AgentsAI Agent Security

DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning

Yanlin Wang et al. · 2026 · arXiv:2601.20615

Abstract

From the arXiv abstract, may be trimmed

Large language models (LLMs) have demonstrated impressive capabilities in code generation by leveraging retrieval-augmented generation (RAG) methods. However, the computational costs associated with LLM inference, particularly in terms of latency and energy consumption, have received limited attention in the security context.

Ask the paper

Answers come from the paper summary and abstract.

Ask anything about “DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning”, or start with one of these:

Closest matches across the feed and every collection, by shared words in titles, topics and abstracts.