Cleaning rootkits that hide files in NTFS alternate data streams
Rootkits that hide their payload inside NTFS alternate data streams are among the messiest infections to clean, because the malicious code sits inside a legitimate file rather than existing as an obvious extra program. On the Windows PCs that still dominate small business offices in Sydney, Melbourne and Brisbane, a single stream can carry a complete trojan that launches every time the carrier file is opened. Explorer shows nothing unusual, most antivirus suites report only a generic detection, and the carrier file may even be named after a Windows system component to discourage deletion.
Cleanup therefore has to follow a deliberate order: disconnect the machine, enumerate what is actually attached to the visible files, remove the hidden streams without destroying the original data, and then confirm that no kernel-level component survived. Because mistakes at this stage can permanently damage a legitimate file, it is worth capturing what you find before touching anything, and worth using free tools such as ESET Offline Scanner or Malwarebytes rather than paying for a second opinion. Safe Mode, a WinRE boot and a clean spare account make the difference between a fixable infection and a drive that needs to be reimaged.
How NTFS alternate data streams conceal the payload
Every file on an NTFS volume has a default unnamed stream holding the content you see in Explorer, plus any number of named streams written after a colon, such as :hidden.dll or :$DATA. Windows itself creates :Zone.Identifier when you download a file, which is how the Mark of the Web travels with the document. Attackers abuse the same mechanism to attach an executable payload to a carrier file, using undocumented calls to NtSetInformationFile with FileStreamInfo, or repurposing utilities such as esentutl and cipher that will happily write hidden streams when given the right flags.
The concealed stream is not an inert annotation. It can be a working trojan, a keylogger driver, or the configuration that a rootkit reads at boot, and it runs with the same privileges as the carrier. If the carrier happens to be a copy of a file sitting in %AppData%\Roaming, deleting it may look like removing malware when in fact you have removed the only visible trace of it. The stream travels with the carrier, which is why the infection so often arrives on a USB stick handed around an office or a shared drive in a regional clinic.
Detecting the hidden streams on an infected machine
Start with disk usage. If the free space reported by Explorer properties does not match what a disk analysis tool reports, the difference is often hidden streams taking up room. The command line reveals them directly: dir C:\Users /r /s lists every stream and its size, while PowerShell gives more control through Get-Item -Path .\file.txt -Stream * and Get-Content -Path ".\file.txt" -Stream hidden. NirSoft's free StreamsView tool provides a sortable list for machines that cannot spare the command line, and Sysinternals' sigcheck can flag unsigned files that have no business being in a system directory.
Files that vanish when renamed, a desktop.ini carrying an unexpected stream, or a sudden burst of scheduled tasks in Task Scheduler all point the same direction. Keep in mind that a genuine rootkit can hook the very APIs that list files, so an empty result is not proof of a clean system. Compare the output against a boot from Windows Recovery Environment, or open a fresh user profile created on a known good account, before concluding that nothing is hidden.
Cleaning the infection without wrecking legitimate files
Unplug the network cable and turn off Wi-Fi first, because an active rootkit can phone home and re-download its components while you work. Take a copy of anything irreplaceable, then reboot into Safe Mode with networking disabled using the Shift and Restart combination on Windows 10 and 11, or the msconfig route on older builds. Many scanning tools need to load a kernel driver, so if your security software refuses to start in Safe Mode, create a plain user account with administrative rights and run the scan from there instead.
Remove the streams explicitly rather than deleting carrier files on sight. Once you have confirmed the carrier is malware, del "C:\Users\Name\file.exe:hidden" deletes only the named stream and leaves the original file in place for examination. A stream can also be zeroed before removal with echo. > "file.exe:hidden", which prevents any executable code from being recovered from it later. After the streams are gone, check the usual persistence points: the Run keys under both HKLM and HKCU, scheduled tasks, WMI event subscriptions under root\subscription, and newly installed services or drivers. If the master boot record or the boot loader has been modified, no amount of stream cleaning will help, and the honest answer is to reimage the drive from clean media and restore documents only.
Recovering data and ruling out reinfection
Rootkits frequently arrive as the delivery mechanism for ransomware, so removal alone may leave encrypted documents behind. Where the family is known, a purpose-built decryptor can often recover files for free, and this Dharma ransomware decryptor walkthrough covers the CrySiS variant that has turned up repeatedly across Australian small businesses. Other families are handled through the No More Ransom project, and shadow copies remain the most useful fallback if the key was never sent to the attacker.
Shadow copies are worth checking before the infection is allowed to sit for another day, using vssadmin list shadows and wmic shadowcopy list brief, since the ransomware component often deletes them within minutes of encrypting files. Australian offices that have invested in Veeam, Azure Backup or a Microsoft 365 retention policy usually have a clean copy available, and keeping one snapshot on disconnected storage prevents the malware from destroying the last version. Once the machine is rebuilt, reconnect services one at a time and re-run the stream enumeration to confirm nothing reappears, then trace the original entry point, whether that was a cracked installer, a macro-laden invoice document, or an infected USB drive used on a shared workstation.
There is also a reporting obligation to consider. If the rootkit gave an attacker access to personal information, the Notifiable Data Breaches scheme under the Privacy Act 1988 requires notifying the Office of the Australian Information Commissioner and affected individuals once the organisation is aware of the breach. Many small Australian firms learn this rule long after the incident, and guidance from the Australian Cyber Security Centre at cyber.gov.au sets out the threshold in plain language.
Stopping the infection from returning
Alternate data stream abuse is catalogued by MITRE ATT&CK as a hiding technique, and detection tooling such as Sysmon can be configured to log stream creation, which gives warning before a payload is ever executed. Blocking the technique at the source is easier still: keep administrative rights limited, patch Windows promptly, require multi-factor authentication on remote access, and stop sharing administrator logins across a small team. Endpoint products from Sophos, ESET and Malwarebytes are widely resold through Australian managed service providers, so check that subscription licences are current rather than relying on a decade-old free antivirus build.
Everyday habits matter as much as settings. USB drives passed between staff, café Wi-Fi in the Brisbane CBD, and second-hand storage sold through online marketplaces all offer the carrier file a route in. Before recycling or passing on an old drive, wipe it properly with cipher /w on Windows or a secure erase tool, and remember that macOS will not display NTFS hidden streams at all, so a drive formatted NTFS can move silently between a Melbourne design studio and a Windows back office. Our collection of practical removal tips covers the follow-up tasks that usually follow a deep cleanup.
For organisations, the ACSC Essential Eight baseline and the Australian Signals Directorate's published guidance give a sensible floor for prevention and recovery, and meeting it removes most of the improvisation that turns a hidden stream infection into an extended outage.