self-modifying code

noun
UK /ˌself ˈmɒdɪfaɪɪŋ kəʊd/
US /ˌself ˈmɑːdɪfaɪɪŋ koʊd/

Computer code that can change its own instructions while it is running.

The virus used self-modifying code to hide from the antivirus scanner.


OTHER MEANINGS

2. A programming technique where a program rewrites parts of itself to optimize speed or save memory.

Early games used self-modifying code to squeeze more performance out of limited hardware.

3. A security risk in which code alters itself to evade detection or analysis.

Analysts struggled because the malware's self-modifying code changed every time it ran.

4. Code that updates its own logic at runtime based on data or conditions.

The agent relied on self-modifying code to adapt its behavior without a restart.