Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / LATERAL MOVEMENT

TeamViewer

TeamViewer Abuse (File Transfer & Remote Control)

This note documents detection patterns related to TeamViewer Abuse (File Transfer & Remote Control) within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalDetects TeamViewer execution (TeamViewer.exe).
Sysmon1Process creationCriticalFull command line + parent context.
Sysmon3Network connectionCriticalConnections to TeamViewer infra (port 5938 / 443 / 80).
Sysmon11File createCriticalCaptures transferred payload landing on disk.
Sysmon22DNS queryHighrouter*.teamviewer.com resolution.
Security5156Allowed connectionHighConfirms outbound TeamViewer traffic.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
File transfer without sessionStreamType_File without desktop sessionCriticalStaging behavior
Suspicious file writeWrite file C:\Users\...CriticalDirect evidence from TeamViewer logs
Separate process timelinesDifferent PIDs (G3 vs D3 logs)HighMulti-process architecture
Reconnect after delayFile transfer → delay → desktop sessionCriticalClassic attacker workflow
External participantUnknown participant name / IDHighPotential attacker identity
No browser involvedFile appears without browser parentHighStrong anomaly
Desktop switching anomaliesWinlogon / Default switchingMediumPrivilege / session interaction

Common Tools

ToolUsage
TeamViewer.exeRemote access / file transfer
TeamViewer_Service.exeBackground service
TeamViewer QSQuickSupport attacker usage

Relevant Artifacts

  • TeamViewer Logs:
    • C:\Program Files\TeamViewer\TeamViewer*_Logfile.log
    • C:\Users\<user>\AppData\Roaming\TeamViewer\
  • Key Log Fields:
    • StreamType_File
    • Write file
    • Participant ID
    • SessionID
    • router*.teamviewer.com
    • ConnectionAccessControl
  • Sysmon Event IDs 1, 3, 11, 22
  • Security Event ID 4688
  • Security 5156
  • Prefetch: TEAMVIEWER.EXE
  • Amcache for transferred payload
  • MFT / USN Journal for file creation

MITRE ATT&CK References

  • T1105 Ingress Tool Transfer
  • T1219 Remote Access Software
  • T1071 Application Layer Protocol

Decision Tree

  1. Was TeamViewer executed?

    • Parent process
    • User context
  2. Network destination?

    • router*.teamviewer.com
    • External IP
  3. File transferred?

    • Log shows Write file
    • File path
  4. Was file executed?

    • Child process
    • Prefetch / Amcache
  5. Expand:

    • Persistence
    • Additional sessions
    • Lateral movement

Example Detection Templates

KQL

Sysmon
| where EventID == 3
| where DestinationPort in (5938,443,80)
| where Image has "TeamViewer"

Sigma

title: TeamViewer Suspicious Activity
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    Image|contains: 'TeamViewer'
  condition: selection
level: high

Snort Rule

alert tcp any any -> any 5938 (msg:"TeamViewer Traffic Detected"; sid:100001; rev:1;)

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Remote toolsRestrict TeamViewer usageCriticalPrevent abuse
Network controlsBlock port 5938 if not neededHighReduce exposure
LoggingEnable Sysmon + process trackingCriticalCore visibility
EDRAlert on TeamViewer file writesHighDetect staging