Woman wearing gloves beside a laptop and a device with cables on a table.

Malware and endpoint protection

How Trojans work and what a company should do after detection

A Trojan impersonates a legitimate file or program and may steal data or open remote access after execution. This guide covers infection routes, triage signals, isolation, evidence preservation and the roles of EDR, MFA, email controls and backups.

Written and maintained by: Virtline team

What is a Trojan?

A Trojan is malware that impersonates a useful file, application or process component. Its name comes from the Trojan horse: the user admits an apparently safe object into the environment. File size and icon do not determine the risk; the code, behaviour and source do.

Loader or downloader

The first module runs on the device and then downloads the main malicious code or additional tools.

Detecting RAT activity

A remote access Trojan (RAT) lets an attacker execute commands, transfer files and retain control of a device. SOC monitoring and SIEM event analysis help detect this activity and route alerts to the response team.

Information theft

Targets may include passwords, browser sessions, email, documents, customer data or access keys.

NIST SP 800-83 - malware prevention and handling

The official NIST guide covers malware prevention, response preparation, detection and incident handling.

How a Trojan enters a company

A common element is the appearance of legitimacy or abuse of a trusted channel. An email filter alone is not enough when a user downloads a file from a messaging app, fake website, private cloud or compromised supplier account.

  • An attachment or link in a phishing message impersonating an invoice, document, CV or notification.
  • A fake installer, crack, browser extension, update or program downloaded outside a trusted distribution channel.
  • A messaging app, shared drive, USB device or active-content document that asks the user to bypass controls.
  • A compromised partner or administrator account sending a file from a valid mailbox and familiar conversation history.
  • An exploited application or device vulnerability that deploys the Trojan without a deliberate user click.

What a Trojan does after execution

Behaviour depends on the campaign. A Trojan may establish persistence, meaning access that survives a restart, contact a command-and-control (C2) server, steal credentials, disable protection or prepare a ransomware deployment. Analysis must therefore go beyond deleting a single file.

  • It starts processes, scheduled tasks, services or startup entries that survive a restart.
  • It connects to a C2 domain or address, downloads commands and sends device information.
  • It reads passwords, cookies, session tokens, clipboard contents, files or business-application configuration.
  • It attempts to escalate privileges, disable antivirus, add an exclusion or abuse a saved administrator account.
  • It scans networks and access paths to find servers, shares, backups and other devices.

Signals that need initial assessment

One symptom does not prove infection, but a group of anomalies should trigger the procedure. The best context combines EDR telemetry with email, firewall, DNS, account and ticketing-system logs.

Unusual process or connection

A program launches system tools, creates persistence or contacts a new domain immediately after a file is opened.

Account or per­mis­sion change

Unusual sign-ins, an MFA reset, new mailbox rules or activity outside the user's normal profile appear.

Alerts from several sources

EDR, DNS, firewall and Microsoft 365 point to a shared timeline or the same asset.

MITRE ATT&CK - malicious file

MITRE documents user execution of malicious files and related detection and mitigation techniques.

Safe response after detecting a Trojan

Do not click further prompts or remove traces at random. Isolate the device according to risk and procedure, preserve telemetry and investigate scope. Promptly contain confirmed or credibly suspected compromised access: block the affected account, revoke sessions and tokens, and rotate passwords and keys from a clean device. Select actions for the service and business impact; do not wait for a complete review of all data.

  • Confirm the alert, user, device, execution time and initiating file or process.
  • Isolate the endpoint but preserve it for analysis; do not format it or delete logs before collecting evidence.
  • Collect EDR telemetry and email, proxy, DNS, firewall, VPN, account and corporate-resource access logs.
  • Block indicators, tokens and sessions, then change exposed passwords and keys from a trusted device.
  • Check other endpoints, shares, privileged accounts and backups for similar activity.
  • Before reconnecting, remove or isolate the entry route and persistence. Rebuild from a trusted source, verify safeguards and monitor for recurrence; closure requires verified remediation and a report.

Reducing the risk of another infection

Protection requires several cooperating safeguards. Endpoint detection and response (EDR) detects suspicious activity on computers and servers and supports response; antivirus identifies malware. Email controls reduce malicious delivery, multifactor authentication (MFA) limits the effect of stolen passwords, and backups support recovery. The process owner must review alerts and test the procedure regularly.

EDR for business

Process visibility, device isolation, detection rules, initial alert assessment and post-incident actions.

Email protection

Attachment and link filtering, domain protection, campaign analysis and a reporting procedure.

Backup and recovery

Segregated copies, recovery tests, RPO/RTO and a plan for ransomware or data damage.

EDR endpoint telemetry and isolation
P1-P4 alert response priority
MFA reduced impact of password theft

Trusted by

Companies and institutions that need stable IT.

  • AdAc
  • Baseline
  • BTW
  • Charlie
  • Dako
  • EVO
  • FTH
  • IFJ
  • MAEM
  • Banki Spółdzielcze BPS
  • PJG
  • Spinel Trade
  • Suder
  • Ziko Apteka
  • Aforti
  • Base Finance
  • CADM
  • Consol
  • Deka Trans
  • Ferro
  • GATE
  • Igoria Trade
  • Magnet Audit
  • Novacura
  • Przetargi
  • Streamsoft
  • VUMO
  • Audytplus
  • BKB Kancelaria Prawna
  • CBT
  • Contimax
  • ERBET
  • FOMACH
  • Geotermia Podhalańska
  • LATIS
  • Metgal
  • PIBR
  • Spontex
  • Super Krak
  • Wolimex

Questions and answers

Is a Trojan the same as a computer virus?

+

No. Trojan describes the way malware impersonates a legitimate program or file. It does not need to replicate, but it can download other malware, steal data, provide remote access or prepare ransomware.

Will antivirus always remove a Trojan?

+

It may detect and block some infections, but deleting a file alone does not prove the incident is closed. Check persistence, accounts, logs, connections, other devices and possible data theft.

What should we do first after a Trojan alert?

+

Confirm the asset and alert, isolate the device according to procedure, preserve telemetry and determine whether the attacker accessed accounts, data or other systems.

How does Virtline help after a malware infection?

+

Virtline supports triage, log and scope analysis, isolation, safe recovery, stronger EDR, MFA, email and backup controls, and preparation of a report and remediation plan.

Do you suspect a Trojan in your busi­ness environment?

Describe the alert, device, account, event time and actions already taken. Virtline can help organise isolation, scope analysis, recovery and a post-incident security improvement plan.

Book a consultation