How Hackers Use Inno Setup Installers to Deliver HijackLoader and RedLine Stealer

In 2026, cybercriminals are abusing the trusted Inno Setup Windows installer to deliver multi-stage malware such as RedLine Stealer by embedding malicious scripts in legitimate-looking installers. This sophisticated technique uses Inno Setup’s Pascal scripting capabilities to evade antivirus detection, perform system reconnaissance, and maintain persistence using Windows utilities like schtasks and MSBuild.exe. Researchers have uncovered malware campaigns that execute DLL side-loading, sandbox evasion, and XOR-based encryption within trusted installation frameworks, tricking users into installing dangerous payloads under the guise of genuine software.

Jul 05, 2025 - 14:35
Updated: 1 month ago
104.1k
How Hackers Use Inno Setup Installers to Deliver HijackLoader and RedLine Stealer

Quick answer: Attackers abuse Inno Setup, a legitimate Windows installer builder, by hiding malware in installers with Pascal scripts that decode strings at run time, check for sandboxes, drop a side-loaded DLL, and run RedLine Stealer inside MSBuild.exe. Defend by allow-listing software, watching MSBuild and scheduled tasks, avoiding cracked downloads and using MFA with short sessions.

Key takeaways

  • Inno Setup is legitimate; the abuse is in what attackers put inside an installer.
  • The reported chain: weaponised installer, WMI environment checks, hidden scheduled task, DLL side-loading, then RedLine inside MSBuild.exe.
  • Detect behaviour: MSBuild with odd parents or network traffic, new scheduled tasks, signed programs loading unsigned DLLs.
  • Cracked software and fake downloads are the usual delivery route; rotate passwords and sessions from a clean device after an infection.

What is Inno Setup, and is it a problem?

Inno Setup is a free, legitimate tool that developers use to build Windows installers. It has a scripting language based on Pascal, can compress files into a single executable, and lets authors run code during installation. Thousands of genuine programs install this way, so an Inno Setup installer is not suspicious in itself. The same flexibility is what attackers abuse: they build an installer that looks like normal software, but its script quietly drops and runs malware.

How do attackers use Inno Setup installers?

An installer is trusted by users and often runs with the rights needed to write files and create scheduled tasks. Attackers wrap malware in one for several reasons:

  • It looks familiar. The user sees a normal wizard, often with a fake application name.
  • The script can hide intent. Pascal script can decode strings at run time, so URLs and commands do not appear in plain text.
  • It packs everything into one file, including a decoy program, so the user sees something working while other code runs.
  • It can check the environment and stop if it looks like a sandbox or analysis machine.

Such installers usually reach victims through fake downloads, cracked or pirated software, search-result poisoning and malicious ads, rather than through anything exotic. Our article on Oyster malware and fake PuTTY installers shows the same delivery pattern.

A reported campaign, stage by stage

Splunk's threat researchers analysed a campaign that used an Inno Setup installer to deliver HijackLoader and then RedLine Stealer. The details below are as reported in that analysis; check Splunk's own write-up for the original and for any updates, since we have not reproduced the sample ourselves.

StageWhat happensTechnique (MITRE ATT&CK)
1. Weaponised installerThe Pascal script decodes XOR-encrypted strings holding URLs and arguments at run time, extracts embedded resources and shows a decoy program so the setup looks normalObfuscated files or information (T1027)
2. ReconnaissanceWMI queries inspect running processes and hardware. If sandbox or virtual machine artefacts appear, the installer exitsWMI (T1047); virtualisation and sandbox evasion (T1497)
3. PersistenceAn encrypted DLL is written to a folder under the user's AppData, and a hidden scheduled task runs at rebootScheduled task (T1053.005)
4. Side-loadingA legitimate, signed program (reported as ScoreFeedbackTool.exe) loads a trojanised DLL (reported as QtGuid4.dll) that decrypts HijackLoaderDLL side-loading (T1574.002)
5. Final payloadRedLine Stealer is launched inside MSBuild.exe so activity blends with trusted Windows processesTrusted developer utility proxy execution: MSBuild (T1127.001)
6. TheftBrowser passwords, session cookies and cryptocurrency wallet files are collected and sent to a command-and-control serverCredentials from web browsers (T1555.003)

Techniques are listed in MITRE ATT&CK, where you can read how each one is detected.

What is RedLine Stealer?

RedLine is an information stealer sold and used on cybercrime markets. It collects saved browser passwords, autofill data, session cookies, cryptocurrency wallets and some system information, and sends them to the attacker. Stolen session cookies are especially dangerous because they can let an attacker access an account without the password and sometimes without a second factor. Law enforcement action against RedLine infrastructure was reported in late 2024, but stealers of this kind continue to circulate under other names and builds, so defensive habits matter more than the family name.

Indicators reported for this campaign

Use these as starting points for hunting, not as a complete list. Attackers change names and domains between campaigns.

  • A scheduled task named like WhatsAppSyncTaskMachineCore that you do not expect.
  • MSBuild.exe running from, or launched by, a program in a user profile path, or making outbound connections.
  • A signed legitimate executable sitting next to an unexpected, modified DLL, for example the pair of file names above.
  • Outbound traffic to rare or newly registered domains on port 443 and on port 18852.
  • A folder such as controlExplore under the user's Roaming AppData folder.

How can defenders detect it?

Focus on behaviour, because file names and hashes change.

  1. Process creation. With Sysmon event ID 1 or EDR telemetry, alert on MSBuild.exe whose parent is not Visual Studio, a build agent or a developer tool, and on installers that launch scripting engines or MSBuild.
  2. Network from MSBuild. Sysmon event ID 3 or firewall logs showing MSBuild.exe connecting to the internet is unusual on most machines.
  3. Scheduled tasks. Enable auditing for task creation (Windows event ID 4698) and review tasks created in user context, with hidden settings or odd names.
  4. Image loads. Sysmon event ID 7 can show a signed program loading an unsigned DLL from a user-writable folder, which is a side-loading signal.
  5. WMI bursts. A short run of WMI queries for processes and hardware from an installer process is a known reconnaissance pattern.
  6. Egress. Alert on new or rare domains and unusual ports, and use DNS filtering.

How to reduce the risk

For organisations

  • Use application control (Windows Defender Application Control or AppLocker) so only approved installers and binaries run, and block execution from user-writable folders where practical.
  • Restrict MSBuild.exe and similar developer tools to machines that need them.
  • Turn on attack surface reduction rules and keep endpoint protection updated.
  • Require signed internal software packages and verify signatures.
  • Remove local admin rights for ordinary users.
  • Protect accounts with phishing-resistant multi-factor authentication, and shorten session lifetimes for sensitive apps so stolen cookies expire quickly.

For individuals and students

  • Download software only from the vendor's official site or a trusted store. Avoid cracked software and "free" activators, a leading route for stealers.
  • Check the digital signature: right-click the file, choose Properties, then Digital Signatures. Unsigned installers from unknown sources deserve caution.
  • Compare the file's checksum with the one the vendor publishes, if they publish one.
  • Do not ignore SmartScreen and antivirus warnings.
  • Do not store important passwords only in the browser, and use a password manager with MFA.

What if you think you ran one?

  1. Disconnect the device from the network.
  2. From a different, clean device, change passwords for email, banking, social and work accounts, and revoke active sessions.
  3. Move any cryptocurrency from wallets on the infected machine to a new wallet created on a clean device.
  4. Run a full scan with up-to-date endpoint protection, and consider reinstalling Windows, since persistence mechanisms can survive cleaning.
  5. If money was stolen, call 1930 and report at cybercrime.gov.in. Organisations should report incidents to CERT-In.

Career angle

This campaign touches core blue-team skills: reading process trees, writing detections from ATT&CK techniques, and tracing persistence. Learning Windows internals, Sysmon and a SIEM is a direct route into SOC work.

Next steps

To practise detection with real telemetry, see WebAsha's SOC analyst course. Related reading: what fileless malware is and how to detect it and malicious Calendly and Google Meet links.

Frequently Asked Questions

Inno Setup is a free tool for building Windows installers. It supports Pascal scripting and compression into a single executable. It is widely used by genuine software, which is why attackers abuse it to make malware look like an ordinary installer.

They build an installer whose script decodes hidden strings, shows a decoy app, checks for sandboxes, drops a malicious DLL and creates persistence. Users run it thinking it is real software, often from a fake or cracked download.

A campaign analysed by Splunk delivered HijackLoader and then RedLine Stealer, an information stealer. The details here are as reported in that analysis. Other malware has also been packaged in installers.

DLL side-loading is when a legitimate program loads a malicious DLL placed next to it, because Windows finds that file first. The attacker's code then runs inside a trusted, often signed, program.

MSBuild.exe is a trusted Microsoft build tool. Running the final payload inside it helps malware blend in, because many tools treat it as benign. On most non-developer machines it rarely runs at all.

Download only from the vendor's official site, check the file's digital signature in Properties, compare any published checksum, and heed SmartScreen and antivirus warnings. Avoid cracked software, which is a common route for stealers.

Disconnect from the network, change passwords and revoke sessions from a clean device, move cryptocurrency to a new wallet, run a full scan or reinstall Windows, and report fraud to 1930 and cybercrime.gov.in. Organisations should report to CERT-In.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.