A Trojan horse is software that appears legitimate but contains hidden malicious behaviour. It usually depends on trust and user action to run, then performs unauthorised activity such as data theft, remote control, or payload delivery. The disguise is the core of the attack.
How Trojan Horses Work
A trojan horse succeeds by borrowing the appearance of something safe. That disguise is not just cosmetic, it is the delivery mechanism that gets the user or operator to execute code, approve an installer, open a document, or otherwise create the first foothold.
Once run, the malicious payload can do work that the user did not intend, such as staging a second payload, opening remote access, modifying settings, or stealing information. Trojans are therefore defined less by one fixed behaviour than by the gap between what they appear to be and what they actually do.
Common Trojan Delivery and Disguise Patterns
Trojans often arrive as fake installers, cracked software, malicious attachments, or downloads that look like legitimate tools. The trust relationship is the attack surface: if the victim believes the file is useful, trusted, or expected, the adversary does not need to break in through a technical exploit first.
Masquerading is especially effective when the file name, icon, source, or packaging matches normal work patterns. That is why trojans are frequently paired with social engineering, brand impersonation, and file types that users are already conditioned to open.
The NHIMG Trojans Guide covers the main families, delivery routes, and response patterns, while Malware Guide places trojans in the broader malware landscape and explains how loader and backdoor behaviour often overlaps.
Why Trojan Horses Are Dangerous
The danger comes from authorised execution followed by unauthorised action. Because the program is launched by the user or allowed into the environment as a seemingly legitimate file, it can bypass some of the normal suspicion that would greet obviously malicious code.
That makes trojans a common entry point for data theft, remote control, follow-on payload delivery, credential capture, and persistence. Their disguise also gives defenders less immediate signal, because the initial object may look like ordinary software until its behaviour is observed.
In practice, a trojan can turn a single click into a broader compromise chain. The first execution may be harmless-looking, but the hidden payload can reach into browsers, documents, sessions, or internal systems once it has established a foothold.
Detection and Response to Trojan Activity
Detection works best when it combines execution visibility with content and behavioural review. Application control, allowlisting, endpoint detection, sandboxing, and inspection of unusual child processes or network connections can all help identify a trojan after it is launched.
Defenders should also review the source of the file, the path it entered through, and any subsequent actions that suggest payload staging or persistence. A clean-looking filename is not enough; the decisive evidence is what the program actually attempted to do once it ran.
When trojan behaviour is confirmed, response should focus on containment, removal, and post-execution review for secondary compromise. That includes checking whether additional payloads ran, whether the host made unexpected outbound connections, and whether the execution exposed credentials, sessions, or other sensitive material.
Risk and Threat Considerations
Trojans are risky because they exploit trust, which means the control failure is often human and procedural as much as technical. A disguised file can move past perimeter controls, then use legitimate execution paths to establish an internal foothold or stage follow-on malware.
Failure mechanism: The attacker disguises malicious code as a legitimate file or application, then relies on user execution to trigger the hidden behaviour and any downstream payloads.
Impact: The result can include data theft, remote control, persistence, lateral movement, and compromise of adjacent systems or accounts if the initial execution is not contained quickly.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1204.002 — User Execution: Malicious File | Trojan horses depend on a user launching a disguised file or program. |
| Recommendation — Map suspicious user-launched files to T1204.002 and alert on execution from untrusted sources. | ||
| NIST SP 800-53 Rev 5 | SI-3 — Malicious Code Protection | Trojans are malicious code that must be detected, blocked, or contained. |
| CM-7 — Least Functionality | Application allowlisting limits the ability of trojan software to run. | |
| Recommendation — Apply SI-3 to scan, block, and monitor trojan-bearing files before execution. Use CM-7 to restrict execution to approved software and reduce trojan exposure. | ||
| CIS Controls v8 | CIS-10 — Malware Defenses | Trojan detection and containment are core malware-defense concerns. |
| CIS-8 — Audit Log Management | Trojan investigation depends on endpoint and process evidence after execution. | |
| Recommendation — Deploy malware defenses to identify, block, and quarantine trojan activity. Centralise logs so you can trace trojan execution, persistence, and outbound activity. | ||
Practitioner Guidance
What to watch for: Treat unexpected installers, unsigned binaries, cracked software, and files that request unusual execution permissions as high-risk, even when they appear familiar. The most important judgement is whether the object is trustworthy in context, not whether it looks polished.
Governance implication: Trojan risk is reduced when organisations make execution trust explicit through application allowlisting, software sourcing rules, and endpoint telemetry that can distinguish approved software from lookalikes. If a file can run without clear provenance, the trust model is already weak.
Related resources from NHI Mgmt Group
- What are the signs that a trojan is using persistence and command retrieval to stay hidden?
- What happens when an Android banking trojan is installed on a device used for financial services?
- How should security teams defend software delivery pipelines against Trojan Source style code obfuscation?
- What do teams get wrong when trying to detect Trojan Source attacks?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org