Register to stream ATT&CKcon 2.0 October 29-30

Taint Shared Content

Content stored on network drives or in other shared locations may be tainted by adding malicious programs, scripts, or exploit code to otherwise valid files. Once a user opens the shared tainted content, the malicious portion can be executed to run the adversary's code on a remote system. Adversaries may use tainted shared content to move laterally.

A directory share pivot is a variation on this technique that uses several other techniques to propagate malware when users access a shared network directory. It uses Shortcut Modification of directory .LNK files that use Masquerading to look like the real directories, which are hidden through Hidden Files and Directories. The malicious .LNK-based directories have an embedded command that executes the hidden malware file in the directory and then opens the real intended directory so that the user's expected action still occurs. When used with frequently used network directories, the technique may result in frequent reinfections and broad access to systems and potentially to new and higher privileged accounts. [1]

ID: T1080
Tactic: Lateral Movement
Platform: Windows
System Requirements: Access to shared folders and content with write permissions
Permissions Required: User
Data Sources: File monitoring, Process monitoring
Contributors: David Routin
Version: 1.0


Mitigation Description
Execution Prevention Identify potentially malicious software that may be used to taint content or may result from it and audit and/or block the unknown programs by using whitelisting tools, like AppLocker, or Software Restriction Policies where appropriate.
Exploit Protection Use utilities that detect or mitigate common features used in exploitation, such as the Microsoft Enhanced Mitigation Experience Toolkit (EMET).
Restrict File and Directory Permissions Protect shared folders by minimizing users who have write access.


Name Description
Darkhotel Darkhotel used a virus that propagates by infecting executables stored on shared drives. [6]
H1N1 H1N1 has functionality to copy itself to network shares. [3]
Miner-C Miner-C copies itself into the public folder of Network Attached Storage (NAS) devices and infects new victims who open the file. [2]
Ursnif Ursnif has copied itself to and infected files in network drives for propagation. [4] [5]


Processes that write or overwrite many files to a network shared directory may be suspicious. Monitor processes that are executed from removable media for malicious or abnormal activity such as network connections due to Command and Control and possible network Discovery techniques.

Frequently scan shared network directories for malicious files, hidden files, .LNK files, and other file types that may not typical exist in directories used to share specific types of content.