Skip to main content
ThreatsXDRSIEM

What is Spyware?

Spyware is software installed on a device without the owner's knowledge to collect information about a person or organization and send it elsewhere. NIST classes it as malicious code. The label covers keyloggers and screen capture modules, browser data stealers, commercial mobile implants such as Pegasus, and consumer stalkerware.

Definition

Spyware
Spyware is software installed on a device without the owner's knowledge to collect information about a person or organization and send it elsewhere. NIST classes it as malicious code. The label covers keyloggers and screen capture modules, browser data stealers, commercial mobile implants such as Pegasus, and consumer stalkerware.

How Spyware Works

Spyware is defined by its job, not by how it arrives

NIST's glossary carries more than one definition, and the two are worth reading side by side. The newer one, from CNSSI 4009-2022, says spyware is "software that is secretly or surreptitiously installed into an information system to gather information on individuals or organizations without their knowledge; a type of malicious code." The older one, from NIST SP 800-28, describes "a program embedded within an application that collects information and periodically communicates back to its home site, unbeknownst to the user." The second wording matters in a SOC because it covers a collector bundled inside software that someone installed on purpose.

That is why "spyware" works as a category rather than a family. The behavior is the same and the delivery differs:

KindWhat it collectsHow it gets thereHow you handle it
Keylogger and capture modulesKeystrokes, screenshots and microphone audio (ATT&CK T1056.001, T1113, T1123)Usually a module of a Trojan or remote access toolA malware case on a managed endpoint
InfostealerSaved browser passwords, session cookies, walletsCracked software, malvertising, fake updatesSame, with a fast credential reset (see the Redline Stealer checklist)
Commercial mobile spywareMessages, call logs, location, microphoneZero-click exploits and malicious linksNot an endpoint case: preserve the phone and go to mobile forensics
StalkerwareThe whole phone: searches, location, texts, photos, callsInstalled by someone with access to the deviceA safety case first, a malware case second
Embedded collectorWhatever the host app can seeInside an app the user chose to installA privacy and procurement review

ATT&CK's entry for Pegasus for iOS, which it says has reportedly been linked to NSO Group and was advertised and sold to target high-value victims, records zero-day iMessage exploits for initial access, SMS as a command channel, audio recording and location tracking. A phone usually gives you no process tree to read, so the evidence is different. The Mobile Verification Toolkit, released by Amnesty International's Security Lab in July 2021, checks Android and iOS devices for traces of compromise with the owner's consent.

Stalkerware is the quiet one. The Coalition Against Stalkerware describes tools that let someone secretly watch another person's phone, including searches, location, texts, photos and voice calls, running hidden in the background. A September 2026 Coalition write-up of a joint EFF and AV-Comparatives test says stalkerware is typically installed through manual access to a device.

What spyware has to do, and what that leaves

Any spyware has three jobs: stay on the machine (persistence), collect, and send what it collected (exfiltration). The first two happen on the host and look like normal activity. The third leaves a pattern. MITRE T1029 (Scheduled Transfer) describes data leaving at set times or intervals to blend in with normal traffic, and a collector that batches its uploads on a timer produces exactly that rhythm.

So hunt for shape rather than content. A process that contacts the same rare destination in most 10-minute windows of the day, including 3 a.m., is on a schedule, and a person is not. The same shape is what a command-and-control channel looks like, so the C2 traffic playbook applies to what you find.

// Processes that call one destination in most 10-minute windows of a day, seen on few devices
DeviceNetworkEvents
| where Timestamp > ago(24h)
| extend Destination = coalesce(RemoteUrl, RemoteIP)
| where isnotempty(Destination)
| summarize ActiveWindows = dcount(bin(Timestamp, 10m)), Connections = count(),
    Devices = dcount(DeviceName), SampleDevice = any(DeviceName)
    by InitiatingProcessFileName, InitiatingProcessFolderPath, Destination
| where ActiveWindows >= 100 and Devices <= 2
| order by ActiveWindows desc

A day has 144 windows, so 100 means the process was active for about 70% of it. Devices <= 2 keeps the list to destinations that almost nothing else in the fleet talks to. Sync clients and update agents also call home all day, but they do it from hundreds of machines, which is what the filter removes. A commodity stealer campaign hits many users, so raise that cap if you are chasing one. The query uses the documented DeviceNetworkEvents columns and has not been run against a live tenant by SOCSimulator. If your proxy or firewall logs bytes, compare sent against received for the same pair: a collector typically sends far more than it receives.

A simulated case

Simulated example generated by SOCSimulator Research. Hosts, users and domains are invented, and the domains use the reserved .example suffix.

InitiatingProcessFileName  InitiatingProcessFolderPath                 Destination           ActiveWindows  Connections  Devices
MicrosoftEdgeUpd.exe       C:\Users\j.ortega\AppData\Local\Temp\mseu\  telemetry-cdn.example  138            1412         1
acmesync.exe               C:\Program Files\Acme Sync\                 api.acmesync.example   141            3980         1

Both rows pass the filter, and they are different cases. acmesync.exe is a line-of-business sync client on one machine. Its folder is a Program Files path and a signature check settles it in a minute. The first row borrows the name of a browser updater and runs from a user-writable Temp folder. It talks to a domain nothing else in the fleet touches, in 138 of 144 windows. The name, the folder and the prevalence disagree with each other.

From there the case is routine malware work with one extra question. Isolate the host with your EDR, pull the binary and its persistence (a Run key or scheduled task), and search the destination across every log you keep, as an indicator of compromise. The data exfiltration playbook covers the scoping questions. Then scope the exposure: everything typed, opened or said near that machine since the install time counts as seen, so reset those credentials from a clean device and revoke the sessions.

Spyware in SOC Operations

Spyware reaches the queue by three doors. An EDR detection names a stealer or keylogger on a laptop. A DNS or proxy alert flags a timer-like connection to a rare domain. Or a person tells you they think they are being watched: an executive with a strange phone, an employee who found a tracking app on a personal device. The first two are malware cases with one extra question, what has it already seen? Count every credential typed and every document opened since the install date as exposed, and rotate before you clean. The third is a different job. Do not wipe the device. Preserve it, bring in whoever handles legal or HR matters, and hand it to mobile forensics. If the person may be the target of someone they live with, safety planning comes before any technical step.

Free

Practice Spyware in a Real SOC

SOCSimulator provides hands-on training with realistic SIEM, XDR, and Firewall interfaces. Build real analyst skills investigating spyware scenarios with zero consequences, free.

Frequently Asked Questions

What are examples of spyware?
Keyloggers and screen capture modules, information stealers such as RedLine that take saved browser passwords and cookies, remote access tools used for surveillance, commercial mobile spyware such as Pegasus, and consumer stalkerware apps. What they share is the behavior, collecting quietly and sending it out, not a common file type or delivery method.
How do you know if you have spyware?
On a company laptop, look at behavior rather than symptoms: an unfamiliar process in a user-writable folder, a new autostart entry, and a connection to the same rare destination all day. A phone is harder, because slow performance and battery drain are weak evidence. Use your EDR and network logs on managed devices, and a tool such as MVT with the owner's consent on a phone.
What is stalkerware?
Stalkerware is spyware sold to watch another person, usually a partner or ex-partner, through their phone. The Coalition Against Stalkerware describes tools that secretly monitor searches, location, texts, photos and calls while hiding in the background. It is typically installed through manual access to the device, which makes it a safety problem for the victim as well as a technical one.
Can antivirus detect stalkerware?
Only partly. In a joint EFF and AV-Comparatives test of 17 Android stalkerware apps, published in September 2026, one product detected all of them and several others missed one. Do not treat a clean scan as proof that a phone is free of a tracking app. A manual review of installed apps and permissions is part of the check.

Sources

More Threats Terms

Career Path

Threat Hunter Career Guide: Salary & Skills

Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…

Read more
Career Path

Incident Responder Career Guide: Salary & Skills

Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…

Read more
Career Path

SOC Analyst (Tier 2) Career Guide: Salary & Skills

Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…

Read more
Comparison

SOCSimulator vs Hack The Box: Comparison

Different tools for different career paths. SOCSimulator trains defensive analysts. Hack The Box trains offensive securi…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Technique

MITRE ATT&CK® Techniques: Detection Training Library

Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.

Read more
Career Path

Cybersecurity Career Paths: 2026 Guide

Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.

Read more
Playbook

SOC Investigation Playbooks: Step-by-Step Guides

Practitioner investigation playbooks with decision trees and real SIEM queries.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more
Blog

SOCSimulator Blog: Security Training Insights

Articles on SOC analyst skills, detection engineering, and career development.

Read more