TL;DR: Google Threat Intelligence Group says it has documented the first known uses of Gemini in live malware attacks, alongside multiple AI-enabled malware families that can generate scripts, alter obfuscation, and support phishing, reconnaissance, and ransomware workflows during an attack, according to Swarmnetics. Static, rules-based defence is now competing with adversarial tooling that can adapt mid-execution.
Editorial analysis by NHI Mgmt Group, based on content published by Swarmnetics: “AI Cyber Threats Enter New Phase as Google Team Discovers “Just in Time” LLM-Powered Malware”.
Key questions
Q: What breaks when malware can adapt its commands in real time?
A: Static signatures, predictable kill-chain assumptions, and scripted response playbooks all become less reliable.
Q: Why does LLM-guided malware increase detection risk after compromise?
A: Because the model gives the attacker a way to vary execution while keeping the same goal.
Q: How do security teams know whether static detection is working well enough?
A: Look at what kinds of threats are caught before execution and what kinds only appear later in runtime telemetry.
Practitioner guidance
- Harden behaviour-based detection Prioritise telemetry that captures process chaining, abnormal script generation, and evolving obfuscation rather than relying mainly on fixed signatures.
- Restrict AI access paths Limit which AI assistants, plugins, and model endpoints can be invoked from operational environments, and review whether they can influence code or security workflows.
- Add abuse monitoring for AI outputs Inspect prompts, completions, and downstream usage for signs that a model is being used to support phishing, reconnaissance, or malware generation.
Bottom line: LLM-assisted malware shifts the defender’s problem from recognising known malware to constraining behaviour that can change during execution.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Adaptive malware changes the defender’s unit of analysis. Security teams cannot rely on a static sample view when the payload can generate new content or alter its own execution path mid-attack. The more relevant control boundary becomes behaviour under pressure, not the original malware artefact. Practitioners should expect detection engineering to move toward runtime telemetry, not just IOC matching.
A few things that frame the scale:
- AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers, according to the State of Secrets Sprawl 2026.
A question worth separating out:
Q: Should AI governance and malware defence be managed together?
A: Yes. Once AI systems can be used inside live attack workflows, model access, abuse monitoring, and cyber detection become linked controls. Security teams should treat AI guardrails as part of the attack surface review, especially where models can generate code, scripts, or phishing content that influences real incidents.
👉 Read our full editorial: LLM-powered malware is shifting attacks from static to adaptive