trojan horse

term

security

Kept in this browser · My desk

A program that appears useful but also has a hidden, potentially malicious function.

That is the definition shared by RFC 4949 and the glossary of the US National Institute of Standards and Technology (NIST), which add that the hidden function evades security mechanisms, sometimes by riding on the legitimate permissions of whoever runs the program. What defines it is the disguise, not the way it spreads: NIST's malware guide calls it a self-contained, nonreplicating program, while a virus inserts copies of itself into other programs and a worm runs and spreads on its own. The attack was first described in a 1972 study for the US Air Force, which credits it to D. Edwards, a panel member from the National Security Agency.

The name and the first description. The name comes from the wooden horse of Greek legend, a gift that carried soldiers inside. The first written description is in James P. Anderson's Computer Security Technology Planning Study of October 1972, prepared for the United States (US) Air Force's Electronic Systems Division: the attack places code with trap doors into a target system by presenting its operators with a program so useful that they will use it even though it was not produced under their control, and it can only succeed where control over the programs put on a system is lax. A footnote credits the attack to D. Edwards; the panel behind the study included Daniel J. Edwards of the National Security Agency (NSA). In June 1974 Paul Karger and Roger Schell's evaluation of Multics for the Air Force took the idea further, describing a compiler trap door inserted so that trap doors in object code would survive a complete recompilation of the system, maintaining itself because the compiler was written in its own language.

The first ones in the field. An early documented case was harmless. John Walker wrote ANIMAL, a guessing game, in April 1974; its subroutine PERVADE copied the game into other users' directories on a UNIVAC 1100/42 under the Exec-8 operating system in January 1975, in what Walker calls a classic Trojan Horse attack. PERVADE took great care not to destroy unrelated programs, and its spreading stopped in 1976, when a new Univac operating system changed the format of the system tables it read. Ken Thompson's Turing Award lecture of August 1984, Reflections on Trusting Trust, made the Multics idea famous: a C compiler altered to miscompile the UNIX login command so that it also accepted a known password, and to put both changes back whenever it compiled itself, so the source could be cleaned and the trojan horse would remain with no trace in source anywhere. He credited the idea to an Air Force critique of an early implementation of Multics.

What the standards say. They have separated the trojan from its neighbours. The Internet Engineering Task Force's (IETF) Request for Comments (RFC) 4949 (August 2007) defines it by its hidden function and by evading security mechanisms; the glossary of the National Institute of Standards and Technology (NIST) records a second wording, a useful or seemingly useful program with hidden malicious code that runs when the program is invoked; and NIST's malware guide of July 2013 stresses that it does not replicate, describes trojans that replace existing files with malicious versions or add new ones, and notes that exploit toolkits install them to deliver keystroke loggers and rootkits. MITRE ATT&CK describes the step rather than the program: the user running the disguised file, filed under User Execution: Malicious File (T1204.002), where social engineering gets someone to open a document, an executable, a shortcut or a disk image, and the disguise is Masquerading (T1036), names, locations and metadata manipulated to look legitimate.

Extortion by post, 1989. Between 8 and 12 December 1989 several thousand "AIDS Information" disks were posted from London, in the United Kingdom, among others to the subscriber list of PC Business World magazine. Virus Bulletin reported that the installer, written in QuickBASIC 3.0, replaced the start-up batch file with one that routed every boot through its own program and printed an invoice for leasing the software, payable to a post office box in Panama; after a count of boots, usually 90 in tests, it hid the directories and scrambled the file names until a renewal was paid. The charge on which Joseph Popp was arrested in Ohio on 1 February 1990 named a demand of 189 or 378 US dollars.

The remote control, 1998 to 1999. Microsoft's Security Bulletin MS98-010 dated the Cult of the Dead Cow's release of Back Orifice to 21 July 1998 (the group says 3 August) and stressed that it exploits no flaw in Windows: a user must install it or be tricked into installing it, and the attacker must reach the machine directly, which a properly configured firewall prevents. F-Secure describes NetBus, whose server came in version 1.60 as PATCH.EXE, hid its process and ran at every start, and SubSeven, first seen in May 1999 with 113 capabilities, which announced each new victim to its operator by ICQ, Internet Relay Chat (IRC) or email.

Theft as a business. In October 2010 the Federal Bureau of Investigation (FBI) described a ring that used "a Trojan horse virus known as Zeus", sent by email, to capture the online banking credentials of companies, towns and churches and move the money through mules: $70 million stolen and some $220 million attempted. On 2 June 2014 the Department of Justice announced the court-ordered disruption of GameOver Zeus, a peer-to-peer variant on 500,000 to 1 million computers blamed for more than $100 million in losses, redirecting the infected computers' requests for instructions to substitute servers.

The trusted channel. Cisco Talos reported in September 2017 that the signed CCleaner 5.33 distributed by Avast carried a multi-stage payload. On 29 March 2024 Andres Freund reported that the upstream xz releases 5.6.0 and 5.6.1 had been backdoored (Common Vulnerabilities and Exposures, CVE-2024-3094), with part of the backdoor present only in the release tarballs and not in the source repository: Thompson's lesson in a modern form, since reading the repository showed nothing.

In Brazil. The word is attached above all to banking trojans. In August 2004 the Superior Court of Justice (STJ) denied habeas corpus to the programmer arrested in the Federal Police's Operação Cavalo de Tróia, whose group installed a keystroke-recording program through fake bank pages and may have diverted about R$ 100 million; in September 2007 Operação Carranca de Tróia arrested 26 people in three north-eastern states. Law 12.737 of 2012 made it a crime to invade a computing device, or to install vulnerabilities to obtain an unlawful advantage, and to produce or distribute a program for it; Law 14.155 of 2021 set four to eight years for theft by fraud committed through an electronic or computing device, with or without a malicious program. ESET reported on 30 January 2024 that it had worked with the Federal Police to disrupt Grandoreiro, one of many Latin American banking trojans, active since at least 2017 and aimed at Brazil, Mexico and, since 2019, Spain; ESET supplied technical analysis and the domains and addresses of its command and control servers, which its operators had hosted on Azure and Amazon Web Services, and the Federal Police identified and arrested the people controlling them.

What stops them. The trojan needs someone to run it, so the controls decide what may run: firewalls against direct connections, as Microsoft said in 1998; macros blocked by default in Office files from the internet; and the application whitelisting and scanning of critical components that NIST's guide asks for.

Also known as: trojan, trojan horse program, cavalo de troia, cavalo de tróia

Sources

← Back to T Back to the glossary