Taint Shared Content

T1080

Technique.View on attack.mitre.org

About this technique

Adversaries may deliver payloads to remote systems by adding content to shared storage locations, such as network drives or internal code repositories. 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.

Adversaries may also compromise shared network directories through binary infections by appending or prepending its code to the healthy binary on the shared network directory. The malware may modify the original entry point (OEP) of the healthy binary to ensure that it is executed before the legitimate code. The infection could continue to spread via the newly infected file when it is executed by a remote system. These infections may target both binary and non-binary formats that end with extensions including, but not limited to, .EXE, .DLL, .SCR, .BAT, and/or .VBS.

Detection rules0

Rules on DetectionCode tagged with T1080.

Sigma0

No Sigma rules are mapped to this technique yet.

Splunk0

No Splunk rules are mapped to this technique yet.

Groups5

Software7

Campaigns0

None recorded.

Procedure examples12

Groups5

Used byProcedure example
GroupBRONZE BUTLER

BRONZE BUTLER has placed malware on file shares and given it the same name as legitimate documents on the share.

GroupCinnamon Tempest

Cinnamon Tempest has deployed ransomware from a batch file in a network share.

GroupDarkhotel

Darkhotel used a virus that propagates by infecting executables stored on shared drives.

GroupGamaredon Group

Gamaredon Group has injected malicious macros into all Word and Excel documents on mapped network drives.

GroupRedCurl

RedCurl has placed modified LNK files on network drives for lateral movement.

Software7

Used byProcedure example
MalwareConti

Conti can spread itself by infecting other remote machines via network shared drives.

MalwareH1N1

H1N1 has functionality to copy itself to network shares.

MalwareInvisiMole

InvisiMole can replace legitimate software or documents in the compromised network with their trojanized versions, in an attempt to propagate itself within the network.

MalwareMiner-C

Miner-C copies itself into the public folder of Network Attached Storage (NAS) devices and infects new victims who open the file.

MalwareRamsay

Ramsay can spread itself by infecting other portable executable files on networks shared drives.

MalwareStuxnet

Stuxnet infects remote servers via network shares and by infecting WinCC database views with malicious code.

MalwareUrsnif

Ursnif has copied itself to and infected files in network drives for propagation.

References1

  1. Retwin Directory Share Pivot Open source
    Routin, D. (2017, November 13). Abusing network shares for efficient lateral movements and privesc (DirSharePivot). Retrieved April 12, 2018.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.