By NHI Mgmt Group Editorial TeamPublished 2026-03-10Domain: Best PracticesSource: Orca Security

TL;DR: AI is lowering the cost of malware creation, accelerating variant churn, and shortening the lifespan of static indicators, while the runtime constraints attackers face remain anchored in identity, privilege, and execution boundaries, according to Orca Security. Static detection is losing durability faster than attackers need to change tactics, so runtime visibility is now the more stable defensive signal.


At a glance

What this is: Orca Security argues that AI is speeding malware production more than it is changing runtime behaviour, so the real defensive problem is still identity, privilege, and execution control.

Why it matters: That matters because IAM, NHI, and autonomous system teams all need controls that hold when code is regenerated faster, indicators expire sooner, and runtime behaviour becomes the only durable signal.

By the numbers:

👉 Read Orca Security's analysis of AI-written malware and runtime defence


Context

AI is reducing the cost and speed of malware production, but that does not remove the need for attackers to operate inside identity, privilege, and execution boundaries. For defenders, the important question is not whether malware was written by a model or a person, but what the payload can actually access, execute, and move once it is running.

The operational consequence for NHI governance is straightforward. Static indicators age quickly, while runtime behaviour still exposes the real control points: process context, network activity, filesystem access, and privilege changes. That makes runtime visibility more useful than file-based confidence when malware variants are being regenerated continuously.


Key questions

Q: How should security teams detect AI-written malware without relying on signatures?

A: Security teams should prioritise runtime behaviour over file identity. AI-written malware can be regenerated quickly, which makes hashes and signatures short-lived. The better signal is what the process does after launch, including privilege checks, file access, network connections, and persistence attempts. Correlating those actions with identity context reveals whether the payload is reaching beyond its intended boundary.

Q: Why does AI-assisted malware still depend on identity and privilege controls?

A: Because model assistance changes how the code is produced, not the fact that it must run inside a real environment. Once deployed, malware still needs access to users, tokens, files, networks, and service identities. Those boundaries determine what the attacker can touch, what can be stolen, and how far the compromise can spread.

Q: What do security teams get wrong about LLM-as-C2?

A: The common mistake is treating it as a novelty instead of an execution design pattern. LLM-as-C2 moves some decision-making outside the local payload, which means the important control questions shift to outbound connectivity, timing, and trust in external services. Detection must therefore cover the payload and the communication path together.

Q: How can organisations reduce the impact of malware that evolves faster than patching cycles?

A: They should narrow the available runtime paths that malware can abuse. That means reducing exposed secrets, limiting privilege, constraining workload access, and monitoring process behaviour in real time. When variants churn quickly, the best defence is a smaller identity blast radius and faster runtime visibility, not broader reliance on static indicators.


Technical breakdown

AI-written malware and why static indicators expire quickly

AI-written malware is code generated or heavily assisted by a model during development, then deployed as ordinary executable logic. Once compiled, it behaves like any other payload and does not need embedded AI to be harmful. The operational shift is speed: attackers can regenerate variants with small edits, causing hashes, signatures, and simple string matches to lose value quickly. This also compresses the time between disclosure and exploitation because the same tooling that accelerates creation can accelerate adaptation. The defensive implication is that file identity is becoming a weaker signal than execution behaviour.

Practical implication: build detections around execution behaviour and privilege use, not just hashes and signatures.

LLM-as-C2 and thin-agent malware patterns

LLM-as-C2 describes a pattern where a local payload sends context to an external model and receives instructions or generated logic back during execution. The local component can stay thin because decision-making happens outside the binary, which reduces redeployment friction for attackers. This is still an emerging pattern rather than the dominant one, but it matters because it moves model use into runtime. That creates a dependency on outbound connectivity, response timing, and the trust placed in external services that can change behaviour mid-operation.

Practical implication: monitor for thin agents that externalise decision-making through routine outbound model or API traffic.

Runtime malware behaviour still follows identity and access boundaries

Regardless of how malware is produced, it still has to interact with a real system. Common runtime needs include inspecting user context, checking privileges, reading environment variables, accessing cloud metadata, persisting across restarts, and moving data out of the original environment. These actions are governed by identity and access conditions, not by the origin of the code. That is why runtime telemetry, especially at the kernel level, remains durable when attackers change payloads faster than defenders can update indicators. The relevant unit of analysis is what the process can touch, not who wrote it.

Practical implication: correlate process behaviour with identity context so privilege escalation and credential access are visible at runtime.


Threat narrative

Attacker objective: The attacker aims to use AI-assisted malware production to scale compromise faster, then convert runtime access into broader privilege, data theft, or persistence.

  1. Entry occurs when an attacker obtains a base foothold through a regenerated payload, a thin script, or another AI-assisted artifact that can run inside an existing environment.
  2. Credential access and privilege expansion follow when the malware reads environment variables, searches for cloud credentials, or calls metadata services to inherit additional access.
  3. Impact arrives when the payload uses those runtime privileges to move data, reach additional systems, or sustain access long enough to exfiltrate or disrupt operations.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

AI lowers the cost of malware production, but it does not collapse the identity boundaries attackers must still cross. The industrialisation here is in speed, volume, and churn, not in a new runtime reality. Once malware runs, it still needs privileges, filesystem access, network reach, and persistence paths to matter. That means the most durable security questions remain identity questions, even when the code was model-assisted. Practitioners should treat AI as an acceleration layer on top of familiar execution constraints.

Kernel-level visibility is becoming the control plane for malware defence because static indicators are now too fragile. When payloads are regenerated continuously, signatures and hashes lose value faster than most organisations can operationalise them. Behaviour at runtime, especially process context, privilege changes, and outbound connections, becomes the stable evidence base. This aligns with NIST Cybersecurity Framework thinking around detect and respond, but the practical lesson is sharper: runtime truth outlives file identity. Teams should re-centre detection on what code does after launch.

Thin-agent malware is a named concept worth tracking because it moves decision-making outside the local payload. A thin agent collects context and delegates logic to an external model or service, which means the boundary of malicious behaviour is no longer the binary alone. That shifts the trust problem to network access, external service dependency, and execution timing. The implication is that traditional malware analysis can miss where the real decisions are happening. Practitioners should expect more attacks to externalise logic rather than hard-code it.

AI-assisted malware exposes an identity governance blind spot: many controls still assume the payload itself is the main artifact to classify. That assumption was designed for static binaries and predictable execution paths. It fails when attackers can regenerate variants quickly or push logic into external model calls during runtime. The implication is not simply better malware detection. It is a rethinking of how identity, privilege, and execution state are observed when attack logic is distributed across code, context, and external services.

Cross-domain defence now matters more than tool-by-tool detection because malware behaviour intersects NHI exposure directly. The same runtime that launches malware often exposes secrets, service account tokens, or cloud metadata that widen access after entry. This is where NHI governance, workload identity, and runtime telemetry meet. Teams that still separate malware defence from identity governance will keep missing the bridge between execution and privilege. Practitioners should treat credential exposure as part of the malware problem, not a separate one.

From our research:

  • 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, according to Ultimate Guide to NHIs.
  • From our research: 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to Ultimate Guide to NHIs.
  • AI-assisted malware production becomes materially more dangerous when it can inherit exposed credentials, which is why the NHI Lifecycle Management Guide remains directly relevant to runtime defence.

What this signals

Thin-agent malware will force security programmes to treat external model calls as part of the attack surface, not just the application stack. When logic lives outside the payload, the decisive control question becomes whether outbound dependencies are constrained, observed, and attributable. That is a governance problem as much as a detection problem, and it spans workload identity, egress control, and runtime monitoring.

With 71% of NHIs not rotated within recommended time frames, per Ultimate Guide to NHIs, AI-accelerated malware has a larger pool of stale access to exploit when it reaches for tokens or metadata. The operational signal is clear: credential hygiene and runtime telemetry now have to move together.

Runtime truth, not file identity: the next phase of malware defence will depend on whether teams can prove what a process touched after launch. That makes behavioural observability and identity correlation the two controls that matter most when variants churn faster than signatures can age.


For practitioners

  • Instrument runtime behaviour at the kernel layer Collect process, file, network, and privilege telemetry at execution time so regenerated payloads can be investigated by what they do rather than by their hash or name.
  • Correlate malware alerts with identity context Map each suspicious process to the service account, token, workload identity, or metadata-derived privilege it is using, because runtime access determines blast radius.
  • Harden credential exposure paths inside workloads Remove secrets from code, config files, and environment variables wherever possible, and limit access to metadata services so malware cannot cheaply expand privileges after entry.
  • Watch for thin-agent traffic patterns Flag small local payloads that repeatedly send context to external APIs or model endpoints, especially when the communication pattern changes task by task.

Key takeaways

  • AI is making malware cheaper and faster to produce, but the decisive defensive boundary still sits at runtime identity, privilege, and execution control.
  • As static indicators age out more quickly, kernel-level behaviour and identity-aware telemetry become the most durable signals for detection and response.
  • Teams that separate malware defence from NHI governance will miss the same compromise twice, once at execution and again at credential expansion.

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 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01Secret exposure and NHI abuse are central to the article's runtime compromise theme.
NIST CSF 2.0DE.CM-8Runtime monitoring is the article's main defensive answer to AI-assisted malware churn.
NIST Zero Trust (SP 800-207)PR.AC-4Least-privilege enforcement matters when malware seeks additional access after initial execution.

Reduce exposed secrets and verify workload identities before attackers can turn runtime access into privilege.


Key terms

  • AI-written malware: Malware generated or heavily assisted by a model during development, then deployed as ordinary executable code. The important distinction is that the AI role ends before runtime, so the payload behaves like traditional malware once it is compiled or delivered.
  • AI-powered malware: 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.
  • LLM-as-C2: A command-and-control pattern in which a local payload sends context to an external large language model and receives instructions back. This removes some logic from the binary itself and creates a dependency on outbound connectivity, service trust, and response latency.
  • Thin agent: A minimal local payload that mainly collects context and executes instructions generated elsewhere. In malicious use, the thin agent reduces what static analysis can see, because the meaningful decisions happen outside the binary and may change from one execution to the next.

Deepen your knowledge

AI-written malware, LLM-as-C2, and runtime visibility are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If your team is already seeing faster variant churn or wider credential exposure, this is a practical place to start.

This post draws on content published by Orca Security: LLMjacking: How Attackers Hijack AI Using Compromised NHIs. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-03-10.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org