Malware that consults a model during execution to generate instructions, adapt behaviour, or choose next steps. The model becomes part of the attack logic at runtime, which shifts detection from static code inspection toward observing external calls, timing, and changing process behaviour.
Expanded Definition
AI-powered malware is malicious software that uses a model during execution to decide what to do next, rather than following a fully prewritten path. That can include generating commands, selecting targets, changing tactics after a failed attempt, or rewriting payload content to evade controls. In NHI security, the distinction matters because the model is not just a development aid, it becomes part of the runtime attack logic.
Definitions vary across vendors, but the practical boundary is whether the malware depends on external model inference to advance its behavior. That makes inspection harder: static signatures may miss the real decision points, and defenders may need to observe tool calls, prompts, outputs, and process drift over time. The term sits close to agentic malware, but AI-powered malware does not always require a fully autonomous agent; it may simply call a model opportunistically at specific stages. For broader governance context, NIST Cybersecurity Framework 2.0 remains useful for mapping detection and response responsibilities across assets and telemetry.
The most common misapplication is calling any malware with obfuscated code AI-powered, which occurs when defenders infer model use from adaptive behavior alone.
Examples and Use Cases
Implementing detection for AI-powered malware rigorously often introduces visibility and privacy constraints, requiring organisations to weigh deeper runtime monitoring against operational overhead and exposure of sensitive prompts or outputs.
- A loader queries a model to rewrite a command line after each failed execution attempt, making the malware’s next step dependent on runtime context.
- A phishing payload uses model output to localize lures or tailor lure text to a victim’s mailbox content, which aligns with patterns discussed in the Shai Hulud npm malware campaign.
- A dropper calls a model to summarize the host environment and choose whether to deploy credential theft, lateral movement, or data exfiltration modules.
- A malicious script uses model-generated obfuscation to mutate indicators on each run, reducing the value of hash-based blocking.
- Defenders test whether model-dependent malware can be forced into safe outputs by feeding it deceptive telemetry, a tactic that is still evolving across tooling and response playbooks.
For comparison with broader AI abuse patterns, the DeepSeek breach shows how exposed data and AI systems can interact in ways that expand attacker opportunity, even when the underlying incident is not itself malware. Model misuse and data exposure are often linked in the same kill chain, and that relationship is also why NIST Cybersecurity Framework 2.0 is frequently used as a control baseline for detection, response, and recovery planning.
Why It Matters in NHI Security
AI-powered malware raises the stakes for NHI because the malware may target secrets, service accounts, API keys, or delegated tokens that unlock downstream systems. When attack logic is model-driven, defenders cannot rely only on a known sample or fixed behavior tree. They need controls that reduce secret exposure, constrain runtime permissions, and detect unusual calls between malware, models, and external services.
NHI Management Group research shows that when AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes, and as quickly as 9 minutes in some cases, which shows how fast machine-speed abuse can follow compromise. That timing matters even more if malicious code can ask a model which credential source to target next or how to pivot after a failed attempt. The same risk pattern appears when secrets are leaked into code or training data, then reused by automated tooling at scale.
Organisations typically encounter the operational impact only after a secret leak, account abuse, or suspicious outbound model traffic has already been detected, at which point AI-powered malware becomes unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 | AI-powered malware often exploits exposed secrets and runtime token access. |
| NIST CSF 2.0 | DE.CM | Model-driven malware requires continuous monitoring of unusual runtime behavior and external calls. |
| OWASP Agentic AI Top 10 | A1 | Runtime model use overlaps with agentic misuse, tool abuse, and uncontrolled action execution. |
Inventory, rotate, and tightly scope secrets so malware cannot use them to steer model-assisted attacks.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on June 10, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org