← Lab /Security & privacy

Metamorphic viruses can be generated via van Wijngaarden grammars, evading current AV

Viral metamorphism is fully attainable using van Wijngaarden grammars, requiring AV to embed a Turing machine to decide the grammar's language

Security & privacy arXiv 27 Aug 2026 Theory Theory

Published as “Metamorphism: A mathematical challenge for antivirus technology”

Why it matters

If AV products cannot decide membership in van Wijngaarden grammar languages, they cannot reliably detect pure metamorphic viruses.

Summary

The paper argues that a pure metamorphic virus can be constructed using van Wijngaarden grammars, but it also shows that detecting such viruses is undecidable because the language-membership problem for these grammars is unsolvable. The evidence is purely theoretical, based on formal proofs rather than empirical data.

What they found 2

  1. A pure metamorphic virus can be constructed using a van Wijngaarden grammar.

    “Claim 47. A pure metamorphic virus can be constructed.”

  2. The language generated by a van Wijngaarden grammar is a REL (recursive enumerable language).

    “Theorem 58. A language L is a REL i there exists a WG G s.t. L = L (G).”

Caveats 4

  • The detection problem for metamorphic viruses is undecidable because the language-membership problem for van Wijngaarden grammars is unsolvable.
  • Cohen gave a negative answer to the viral detection and evolution problems by reduction to the halting problem.
  • I do not aim here at closing the question, but simply at showing that a metamorphic virus can in principle be designed entirely by employing solely a WG.
  • The decision problem for languages generated by WGs is unsolvable.

What’s new here 3

  • Shows that van Wijngaarden grammars can generate pure metamorphic viruses.
  • Formalizes the detection problem as embedding a Turing machine that decides the grammar's language.
  • Proves undecidability of the language-membership problem for arbitrary van Wijngaarden grammars.