1213
Potentially malicious dynamic code compiled at runtime can conceal any number of attacks
that will not appear in the baseline. The use of dynamically compiled code could also allow the
injection of attacks on post-deployed applications.
Terminology
Definitions of "Trojan horse" and related terms have varied widely over the years, but common
usage in 2008 generally refers to software that performs a legitimate function, but also contains
malicious code. Almost any malicious code can be called a Trojan horse, since the author of
malicious code needs to disguise it somehow so that it will be invoked by a nonmalicious user
(unless the author means also to invoke the code, in which case they presumably already
possess the authorization to perform the intended sabotage). A Trojan horse that replicates
itself by copying its code into other program files (see case MA1) is commonly referred to as a
virus. One that replicates itself by creating new processes or files to contain its code, instead
of modifying existing storage entities, is often called a worm. Denning provides a general
discussion of these terms; differences of opinion about the term applicable to a particular flaw or
its exploitations sometimes occur.
Taxonomy Mappings
Mapped Taxonomy Name Node ID Fit Mapped Node Name
Landwehr Trojan Horse
Related Attack Patterns
CAPEC-ID Attack Pattern Name
698 Install Malicious Extension
References
[REF-7]Michael Howard and David LeBlanc. "Writing Secure Code". 2nd Edition. 2002
December 4. Microsoft Press. < https://www.microsoftpressstore.com/store/writing-securecode-
9780735617223 >.
CWE-508: Non-Replicating Malicious Code
Weakness ID : 508
Structure : Simple
Abstraction : Base
Description
Non-replicating malicious code only resides on the target system or product that is attacked; it does
not attempt to spread to other systems.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 507 Trojan Horse 1212
Common Consequences
Scope Impact Likelihood
Confidentiality
Integrity
Availability
Execute Unauthorized Code or Commands
CWE Version 4.14
CWE-509: Replicating Malicious Code (Virus or Worm)
CWE-509: Replicating Malicious Code (Virus or Worm)