Trojan horse (computing)

{{Short description|Type of malware}}{{About|the type of malware|the wooden horse in Greek mythology|Trojan Horse|other uses|Trojan Horse (disambiguation)}}

{{Use mdy dates|date=May 2018}}

{{Computer hacking}}

In computing, a trojan horse (or simply trojan; often capitalized, but see below) is a kind of malware that misleads users as to its true intent by disguising itself as a normal program.

Trojans are generally spread by some form of social engineering. For example, a user may be duped into executing an email attachment disguised to appear innocuous (e.g., a routine form to be filled in), or into clicking on a fake advertisement on the Internet. Although their payload can be anything, many modern forms act as a backdoor, contacting a controller who can then have unauthorized access to the affected device. Ransomware attacks are often carried out using a trojan.

Unlike computer viruses and worms, trojans generally do not attempt to inject themselves into other files or otherwise propagate themselves.{{Cite web

|title = VIRUS-L/comp.virus Frequently Asked Questions (FAQ) v2.00 (Question B3: What is a Trojan Horse?)

|url = http://faqs.cs.uu.nl/na-dir/computer-virus/faq.html

|date = October 9, 1995

|access-date = September 16, 2019

|archive-date = August 5, 2020

|archive-url = https://web.archive.org/web/20200805171304/https://faqs.cs.uu.nl/na-dir/computer-virus/faq.html

|url-status = dead}}

Origins of the term

The term is derived from the ancient Greek story of the deceptive Trojan Horse that led to the fall of the city of Troy.

It is unclear where and when the computing concept, and this term for it, originated; but by 1971 the first Unix manual assumed its readers knew both.{{cite web

|last1=Thompson

|first1=Ken

|last2=Ritchie

|first2=Dennis M.

|title=Unix Programmer's Manual, November 3, 1971

|url=https://www.bell-labs.com/usr/dmr/www/man21.pdf

|page = 5

|quote = Also, one may not change the owner of a file with the set—user—ID bit on, otherwise one could create Trojan Horses able to misuse other’s files.

|access-date=28 March 2020}}

Another early reference is in a US Air Force report in 1974 on the analysis of vulnerability in the Multics computer systems.

The term "Trojan horse" was popularized by Ken Thompson in his 1983 Turing Award acceptance lecture "Reflections on Trusting Trust", subtitled: "To what extent should one trust a statement that a program is free of Trojan horses? Perhaps it is more important to trust the people who wrote the software." He mentioned that he knew about the possible existence of trojans from a report on the security of Multics.Karger and Schell wrote that Thompson added this reference in a later version of his Turing conference speech: {{Citation|author = Ken Thompson|title = On Trusting Trust.

|journal = Unix Review|date = November 1989|volume = 7|number = 11|pages = 70–74}}

=Capitalization=

The computer term "Trojan horse" is derived from the legendary Trojan Horse of the ancient city of Troy. For this reason "Trojan" is often capitalized, especially in older sources. However, many modern style guides and dictionaries suggest a lower-case "trojan" for this technical use.

Behavior

Once installed, trojans may perform a range of malicious actions. Many tend to contact one or more Command and Control (C2) servers across the Internet and await instruction. Since individual trojans typically use a specific set of ports for this communication, it can be relatively simple to detect them. Moreover, other malware could potentially "take over" the trojan, using it as a proxy for malicious action.

In German-speaking countries, spyware used or made by the government is sometimes called govware. Govware is typically used to intercept communications from the target device. Some countries like Switzerland and Germany have a legal framework governing the use of such software.Basil Cupa, [http://www.zora.uzh.ch/81157/1/Cupa_Living_in_Surveillance_Societies_2012.pdf Trojan Horse Resurrected: On the Legality of the Use of Government Spyware (Govware)], LISS 2013, pp. 419–428{{cite web

|url=http://www.ejpd.admin.ch/content/ejpd/de/home/themen/sicherheit/ueberwachung_des_post-/faq_vuepf.faq_3.html

|title=Häufig gestellte Fragen (Frequently Asked Questions)| publisher=Federal Department of Justice and Police

|url-status=dead

|archive-url=https://web.archive.org/web/20130506102113/http://www.ejpd.admin.ch/content/ejpd/de/home/themen/sicherheit/ueberwachung_des_post-/faq_vuepf.faq_3.html| archive-date=May 6, 2013}} Examples of govware trojans include the Swiss MiniPanzer and MegaPanzer{{cite web

|last1=Dunn

|first1=John

|title=Swiss coder publicises government spy Trojan

|url=http://news.techworld.com/security/3200593/swiss-coder-publicises-government-spy-trojan/

|website=TechWorld

|access-date=10 January 2021|archive-url=https://archive.today/20140126115729/http://news.techworld.com/security/3200593/swiss-coder-publicises-government-spy-trojan/

|archive-date=26 January 2014

|date=27 August 2009

|url-status=dead}}{{cbignore|bot=InternetArchiveBot}} and the German "state trojan" nicknamed R2D2. German govware works by exploiting security gaps unknown to the general public and accessing smartphone data before it becomes encrypted via other applications.{{Cite web

|title = German federal police use trojan virus to evade phone encryption

|url = http://www.dw.com/en/german-federal-police-use-trojan-virus-to-evade-phone-encryption/a-42328466

|website = DW

|access-date = 2018-04-14}}

Due to the popularity of botnets among hackers and the availability of advertising services that permit authors to violate their users' privacy, trojans are becoming more common. According to a survey conducted by BitDefender from January to June 2009, "Trojan-type malware is on the rise, accounting for 83% of the global malware detected in the world." trojans have a relationship with worms, as they spread with the help given by worms and travel across the internet with them. BitDefender has stated that approximately 15% of computers are members of a botnet, usually recruited by a trojan infection.

Recent investigations have revealed that the trojan-horse method has been used as an attack on cloud computing systems. A trojan attack on cloud systems tries to insert an application or service into the system that can impact the cloud services by changing or stopping the functionalities. When the cloud system identifies the attacks as legitimate, the service or application is performed which can damage and infect the cloud system.{{Cite journal |last1=Kanaker |first1=Hasan |last2=Karim |first2=Nader Abdel |last3=Awwad |first3=Samer A. B. |last4=Ismail |first4=Nurul H. A. |last5=Zraqou |first5=Jamal |last6=Ali |first6=Abdulla M. F. Al |date=2022-12-20 |title=Trojan Horse Infection Detection in Cloud Based Environment Using Machine Learning |url=https://online-journals.org/index.php/i-jim/article/view/35763 |journal=International Journal of Interactive Mobile Technologies |language=en |volume=16 |issue=24 |pages=81–106 |doi=10.3991/ijim.v16i24.35763 |issn=1865-7923|doi-access=free }}

Linux ls example

A trojan horse is a program that purports to perform some legitimate function, yet upon execution it compromises the user's security. One simple example is the following malicious version of the Linux ls command. An attacker would place this executable script in a publicly writable and "high-traffic" location (e.g., /tmp/ls). Then, any victim who tried to run ls from that directory — if and only if the victim's executable search PATH unwisely included the current directory . — would execute /tmp/ls instead of /usr/bin/ls, and have their home directory deleted.

  1. !/usr/bin/env bash

rm -rf ~ 2>/dev/null # Remove the user's home directory, then remove self.

rm $0

Similar scripts could hijack other common commands; for example, a script purporting to be the sudo command (which prompts for the user's password) could instead mail that password to the attacker.

In these examples, the malicious program imitates the name of a well-known useful program, rather than pretending to be a novel and unfamiliar (but harmless) program. As such, these examples also resemble typosquatting and supply chain attacks.

Notable examples

=Private and governmental=

=Publicly available=

=Detected by security researchers=

|url=https://betanews.com/2015/11/05/shuanet-shiftybug-and-shedun-malware-could-auto-root-your-android/

|title=Shuanet, ShiftyBug and Shedun malware could auto-root your Android

|date=November 5, 2015}}{{cite web |url=http://www.techtimes.com/articles/104373/20151109/new-family-of-android-malware-virtually-impossible-to-remove-say-hello-to-shedun-shuanet-and-shiftybug.htm

|title=New Family of Android Malware Virtually Impossible To Remove: Say Hello To Shedun, Shuanet And ShiftyBug

|first=Tech

|last=Times

|date=November 9, 2015}}{{cite web

|url=https://arstechnica.com/security/2015/11/android-adware-can-install-itself-even-when-users-explicitly-reject-it/

|title=Android adware can install itself even when users explicitly reject it

|date=2015-11-19}}

See also

{{colbegin}}

  • {{annotated link|Computer security}}
  • {{annotated link|Cuckoo's egg (metaphor)}}
  • {{annotated link|Cyber spying}}
  • {{annotated link|Dancing pigs}}
  • {{annotated link|Exploit (computer security)}}
  • {{annotated link|Industrial espionage}}
  • {{annotated link|Hardware Trojan}}
  • {{annotated link|Phishing}}
  • {{annotated link|Principle of least privilege}}
  • {{annotated link|Privacy-invasive software}}
  • {{annotated link|Remote administration}}
  • {{annotated link|Remote administration software}}
  • {{annotated link|Reverse connection}}
  • {{annotated link|Rogue security software}}
  • {{annotated link|Scammers}}
  • {{annotated link|Technical support scam}}
  • {{annotated link|Timeline of computer viruses and worms}}
  • {{annotated link|Zombie (computer science)}}

{{colend}}

References

{{cite web |author=Michael Bentley |title=Lookout discovers new trojanized adware; 20K popular apps caught in the crossfire |website=blog.lookout.com |url=https://blog.lookout.com/blog/2015/11/04/trojanized-adware/ |access-date=2016-04-08 |url-status=dead |archive-url=https://web.archive.org/web/20170219042903/https://blog.lookout.com/blog/2015/11/04/trojanized-adware/ |archive-date=2017-02-19}}

{{cite web |title=BitDefender Malware and Spam Survey finds E-Threats Adapting to Online Behavioral Trends |date=2009-08-03 |website=BitDefender |url=http://news.bitdefender.com/NW1094-en--BitDefender-Malware-and-Spam-Survey-finds-E-Threats-Adapting-to-Online-Behavioral-Trends.html |access-date=2020-03-27 |url-status=dead |archive-url=https://web.archive.org/web/20090808080907/http://news.bitdefender.com/NW1094-en--BitDefender-Malware-and-Spam-Survey-finds-E-Threats-Adapting-to-Online-Behavioral-Trends.html |archive-date=2009-08-08}}

{{cite web |title=Difference between viruses, worms, and trojans |url=https://knowledge.broadcom.com/external/article?legacyId=tech98539 |website=Symantec Security Center |publisher=Broadcom Inc. |access-date=2020-03-29 |archive-url=https://archive.today/20130819122702/http://www.symantec.com/business/support/index?page=content&id=TECH98539#selection-3435.1-3585.1 |archive-date=2013-08-19 |url-status=live}}{{cbignore|bot=InternetArchiveBot}}

{{cite web |url=https://cets.seas.upenn.edu/answers/dot-path.html |title=What's wrong with having '.' in your $PATH? |website=CETS Answers |publisher=University of Pennsylvania Computing and Educational Technology Services |access-date=2023-11-28}}

{{cite web |title=trojan |url=https://www.collinsdictionary.com/dictionary/english/trojan |website=Collins Advanced Dictionary |access-date=2020-03-29}}

{{cite report |author=Jamie Crapanzano |title=Deconstructing SubSeven, the Trojan Horse of Choice |date=2003 |url=http://www.sans.org/reading_room/whitepapers/malicious/deconstructing_subseven_the_trojan_horse_of_choice_953 |publisher=SANS Institute |access-date=2021-05-10}}

{{cite web |author=Ganesh Datta |title=What are Trojans? |url=http://securaid.com/windows/2014/08/what-are-trojans/ |work=SecurAid |archive-url=https://archive.today/20140812015643/http://securaid.com/windows/2014/08/what-are-trojans/ |archive-date=2014-08-12 |url-status=dead |date=2014-08-07 |access-date=2020-03-27}}

{{cite book |author=Michael Gregg |title=The Network Security Test Lab: A Step-by-Step Guide |entry=Backdoors and Trojans |publisher=Wiley |year=2015 |pages=338–340 |isbn=978-1-118-98705-6 |url=https://archive.org/details/networksecurityt0000greg/page/338 |access-date=2020-03-29 |quote=Unlike a virus or worm, Trojans cannot spread themselves.}}

{{cite journal |author1=Paul A. Karger |author2=Roger R. Schell |title=Multics Security Evaluation: Vulnerability Analysis, ESD-TR-74-193 |journal=HQ Electronic Systems Division: Hanscom AFB, MA |volume=2 |date=June 1974 |url=http://csrc.nist.gov/publications/history/karg74.pdf |access-date=2017-12-24 |archive-url=https://web.archive.org/web/20110709024412/http://csrc.nist.gov/publications/history/karg74.pdf |archive-date=2011-07-09 |url-status=dead |at=4.2.1 |quote=...some sort of protection from user written applications programs that may contain "Trojan Horses" {{sic}}}}

{{cite journal |author1=Paul A. Karger |author2=Roger R. Schell |title=Thirty Years Later: Lessons from the Multics Security Evaluation |journal=ACSAC |date=2002 |pages=119–126 |url=https://www.acsac.org/2002/papers/classic-multics.pdf}}

{{cite report |author=Seth Kulakow |title=NetBus 2.1: Is It Still a Trojan Horse or an Actual Valid Remote Control Administration Tool? |url=https://www.sans.org/reading-room/whitepapers/malicious/netbus-21-trojan-horse-actual-valid-remote-control-administration-tool-103 |publisher=SANS Institute |date=2001 |access-date=2021-05-10 |url-status=dead}}

{{cite web |title=Trojanized Adware Family Abuses Accessibility Service |website=Lookout.com |date=2015-11-19 |url=https://blog.lookout.com/blog/2015/11/19/shedun-trojanized-adware/}}

{{cite web |author=orbitalsatelite |title=Mega-Panzer |website=SourceForge |date=2016-09-21 |url=https://sourceforge.net/projects/mega-panzer/}}

{{cite encyclopedia |entry=trojan horse |title=Microsoft Style Guide |publisher=Microsoft |url=https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/t/trojan-horse-trojan |access-date=2020-03-29}}

{{cite web |author=orbitalsatelite |title=Mini-Panzer |website=SourceForge |date=2016-09-18 |url=https://sourceforge.net/projects/mini-panzer/}}

{{cite web |author=Dave Neal |title=Shedun trojan adware is hitting the Android Accessibility Service |date=2015-11-20 |url=http://www.theinquirer.net/inquirer/news/2435721/shedun-trojan-adware-is-hitting-the-android-accessibility-service |website=The Inquirer |publisher=Incisive Business Media |access-date=2020-03-27 |archive-url=https://web.archive.org/web/20151122002729/http://www.theinquirer.net/inquirer/news/2435721/shedun-trojan-adware-is-hitting-the-android-accessibility-service |archive-date=2015-11-22 |url-status=unfit}}

{{cite journal |title=Reflection on Trusting Trust |author=Ken Thompson |journal=Communications of the ACM |volume=27 |number=8 |pages=761–763 |date=1984 |url=https://dl.acm.org/ft_gateway.cfm?id=1283940&type=pdf |doi=10.1145/358198.358210 |doi-access=free}}

{{cite book |author1=Patrick H. Wood |author2=Stephen G. Kochan |title=UNIX System Security |publisher=Hayden Books |year=1985 |pages=42–43 |isbn=0-8104-6267-2}}

Notes

{{Notelist}}