OneStopList

Gods and goddesses

Pegasus 6 Layer Model Explained

Updated November 25, 2026

The Pegasus 6 layer model is a conceptual framework used to describe the architecture of the Pegasus spyware, a sophisticated surveillance tool developed by the Israeli company NSO Group. It breaks down the software’s operation into six distinct layers—ranging from the initial infection vector to the exfiltration of data—to help security researchers and analysts understand how the spyware works and how to defend against it.

Background: What Is Pegasus and Why a Layered Model?

Pegasus is a commercial spyware product that can be installed on smartphones (both iOS and Android) to extract messages, photos, emails, location data, and even record calls or activate microphones. It has been linked to government clients and has been used in high-profile cases involving journalists, activists, and political figures. Because Pegasus is highly modular and constantly updated, security researchers needed a way to describe its operation that could accommodate its evolving nature. The 6 layer model is not an official NSO specification but rather an analytic framework adopted by cybersecurity professionals to break down the attack chain into manageable parts. It helps in threat modeling, detection, and mitigation.

Layer 1: Infection Vector

The first layer is the method by which Pegasus gains initial access to a target device. Historically, Pegasus has used zero-click exploits—attacks that require no user interaction—such as a missed call or a malicious message that triggers a vulnerability in the device’s messaging or image processing software. In other cases, it has used spear-phishing links that, when clicked, install the spyware. This layer is critical because it determines the attack surface and the difficulty of detection. For example, the 2019 WhatsApp vulnerability (CVE-2019-3568) allowed Pegasus to be installed via a malicious video call, a zero-click vector.

Layer 2: Privilege Escalation

Once initial code execution is achieved, Pegasus needs to elevate its privileges to gain deeper access to the operating system. On iOS, this often involves exploiting kernel vulnerabilities to break out of the sandboxed environment. On Android, it may target the kernel or system services. This layer is essential because it allows the spyware to operate with high-level permissions, enabling it to read protected data, install persistence mechanisms, and hide its presence. Security patches from Apple and Google often target these vulnerabilities, which is why Pegasus updates are frequent.

Layer 3: Persistence

Pegasus must survive reboots and software updates. The persistence layer ensures that the spyware remains installed even if the device is restarted or the user performs a factory reset (in some cases, though not all). This is achieved by planting components in system partitions or using boot-time hooks. For example, on iOS, Pegasus has been known to modify the device’s firmware or use a ‘zero-click’ exploit that re-installs the spyware after a reboot. Persistence is a key differentiator between simple malware and advanced spyware like Pegasus.

Layer 4: Stealth and Anti-Detection

To avoid detection by security software and forensic analysis, Pegasus employs a range of stealth techniques. This includes obfuscating its code, encrypting its communications, and using ‘jailbreak’ detection evasion to hide from the user and from security apps. It also removes traces of its installation, such as logs or temporary files. This layer is why Pegasus is notoriously difficult to detect on a device; even sophisticated users may not notice its presence. Researchers have had to use network traffic analysis or forensic deep-dives to identify its footprints.

Layer 5: Data Collection and Command & Control

This layer covers the spyware’s core functionality: collecting data and communicating with the operator’s servers. Pegasus can harvest a wide range of data, including contacts, call logs, SMS, emails, location, and even passwords from apps. It also establishes a command and control (C2) channel, typically over encrypted connections, to receive instructions and exfiltrate data. The C2 infrastructure is often hosted on cloud services or compromised servers to avoid attribution. This layer is what makes Pegasus a ‘remote access trojan’ (RAT) with surveillance capabilities.

Layer 6: Exfiltration and Operational Security

The final layer is the exfiltration of collected data to the operator. This involves compressing and encrypting the data before sending it out, often in small chunks to avoid detection. Pegasus also includes operational security features, such as the ability to self-destruct or wipe evidence if it detects that it is being analyzed. For instance, it can delete itself or disable its C2 communication if it detects a sandbox environment. This layer is crucial for the attacker’s anonymity and for protecting the spyware’s trade secrets.

How the Layers Interact

The six layers are not sequential in a strict sense; they operate concurrently after initial infection. For example, persistence mechanisms are active from the start, and stealth is maintained throughout. The model is a conceptual tool that helps analysts map the attack chain and identify potential detection points. By understanding each layer, defenders can implement layered defenses—such as keeping software updated, using endpoint detection and response (EDR) tools, and monitoring network traffic for anomalies.

Common Misconceptions and Limitations

One common misconception is that the Pegasus 6 layer model is an official NSO Group document. It is not; it is a community-driven framework. Another is that the model implies Pegasus is a single, static piece of software. In reality, Pegasus is a suite of tools that evolves, with different versions using different exploits. The model also does not cover the ‘human’ layer—such as social engineering or insider threats—which can be just as important. Finally, the model is not a detection checklist; it is an explanatory framework.

Frequently Asked Questions

Is Pegasus available to the public?

No, Pegasus is a commercial product sold exclusively to government agencies and law enforcement, typically under strict licensing agreements. NSO Group claims it only sells to vetted customers to combat terrorism and crime, but reports have shown misuse against civilians.

Can I detect Pegasus on my phone?

Detection is extremely difficult for average users. Security researchers have used forensic analysis of system logs, network traffic, and device artifacts to identify infections. For individuals, the best defense is to keep the operating system updated and use reputable security software that can detect known indicators.

Does the 6 layer model apply to other spyware?

Yes, the model is generic enough to describe many types of advanced spyware, not just Pegasus. Other surveillance tools, such as those used in commercial RATs, often follow a similar pattern, though the specifics may vary.

What is the difference between Pegasus and regular malware?

Pegasus is far more sophisticated, using zero-click exploits, advanced persistence, and anti-forensic techniques. Regular malware often relies on user interaction and is easier to detect. Pegasus is also designed to be stealthy and to exfiltrate sensitive data over long periods.

Can updating my phone prevent Pegasus?

Regular updates are the most effective defense because they patch known vulnerabilities that Pegasus exploits. However, zero-day exploits (unknown vulnerabilities) can still be used, so updates are not a guarantee. For high-risk individuals, additional measures like using a dedicated secure device or threat monitoring services are recommended.

Related

How pages are sourced and corrected: Sources and editorial policy.