Skip to content
Sign In

T1570

Lateral Tool Transfer

What it is

Attackers copy their tools from one host they control to another inside the network, so they can run them there. It is a technique under the Lateral Movement tactic. Copying a program onto a new host usually comes just before running it there, so catching the copy can stop the next step.

How adversaries use it

On Windows the attacker writes a program or script to another host's file shares, often the administrative shares that every Windows host has, using built-in copy commands or a remote management tool. On Linux they use secure copy or a shared folder. Then they run what they copied, through a service, a scheduled job or a remote command.

Detect it in Elastic

Data source: Windows Security events on the receiving host; Windows process creation events on the sending host

Key fields

event.code: 5145 on the receiving host when a file on a share is accessed (Audit Detailed File Share) winlog.event_data.ShareName: the share written to winlog.event_data.RelativeTargetName: the file's path inside the share winlog.event_data.AccessList: the access asked for; write access shows a file being created or changed source.ip: the host the copy came from winlog.event_data.SubjectUserName: the account that copied it host.name, @timestamp

Example event

{
  "host": {
    "name": "srv-418.corp.example"
  },
  "event": {
    "code": "5145"
  },
  "source": {
    "ip": "192.0.2.77"
  },
  "winlog": {
    "event_data": {
      "ShareName": "\\\\*\\C$",
      "SubjectUserName": "m.castell",
      "RelativeTargetName": "Svc\\k7agent.exe"
    }
  },
  "@timestamp": "2026-06-02T14:21:09.733Z"
}

Prebuilt Elastic rule: Remote File Copy to a Hidden Share

Hunt guidance

5145 is recorded only when Audit Detailed File Share is on, and it is high volume. Start with program files written to shares: event.code: 5145 and winlog.event_data.RelativeTargetName: (*.exe or *.dll or *.ps1 or *.bat). Then check whether the same file started on that host soon afterward. Look for writes to administrative shares from workstations, the same file copied to several hosts within minutes, and copies made by an account that doesn't deploy software.

Ruling out legitimate activity

Software deployment tools, patching systems and administrators copy programs to other hosts all the time. Check whether the source is a known deployment server, whether the file matches a known package, and whether the account belongs to IT. A program copied from an ordinary workstation and run straight away is rarely routine.

Telemetry needed

The log events that help detect this technique, from the Telemetry reference: which log source to collect, which event in it, and how to enable each one.

References

Practice it

No range covers this technique yet; the write-up above landed first. Ranges are added continuously; the ones live today are on the training ladder.