VPN Attacks
VPNs are the remote gateway into the corporate network, which makes them a priority target: compromising a VPN usually grants direct access to the internal network without going through the DMZ. The vectors range from weak credentials and missing MFA to critical CVEs in the appliances themselves (Fortinet, Pulse/Ivanti, Citrix, Cisco), which have been the entry point for countless breaches and ransomware intrusions.
Threat model
Section titled “Threat model”A compromised VPN places the attacker inside the network, with an internal IP, bypassing the perimeter. For an attacker it is the dream shortcut: no pivoting needed if you already enter as a remote employee. That is why ransomware groups constantly sweep exposed VPNs looking for unpatched CVEs and reused credentials. The VPN appliance is, moreover, software at the edge that accepts Internet traffic: an RCE CVE there grants a privileged position on the perimeter itself.
flowchart LR
I[Internet] --> P["VPN portal/appliance"]
P -->|"credentials without MFA"| D[Internal network]
P -->|"RCE CVE"| A["Control of the appliance"]
A --> D
D --> R["Internal recon / domain"]
Red Team — recon and identification
Section titled “Red Team — recon and identification”# identify the appliance/VPN: TCP (SSL-VPN portals) and UDP (IKE/NAT-T, OpenVPN)nmap -sV -p 443,10443 target # TCP portalsnmap -sU -sV -p 500,4500,1194 target # IKE/NAT-T (500/4500) and OpenVPN (1194) are usually UDP# web fingerprint of the portal (Fortinet, Pulse, Citrix, GlobalProtect...)curl -sI https://vpn.target.comwhatweb https://vpn.target.com# IKE (IPsec) on UDP 500ike-scan targetAttack vectors
Section titled “Attack vectors”Credentials (the most common)
Section titled “Credentials (the most common)”- Controlled password spraying against the VPN portal (see AD Password Spraying).
- Reused credentials from breaches (see People Recon and HIBP).
- Without MFA, a single valid password equals internal access.
Missing MFA on the VPN is probably the most exploited misconfiguration for initial access.
Appliance CVEs (critical, heavily exploited)
Section titled “Appliance CVEs (critical, heavily exploited)”- Fortinet FortiOS SSL-VPN: CVE-2018-13379 (path traversal → credential leak), CVE-2022-42475 and CVE-2023-27997 (pre-auth RCE).
- Pulse Secure / Ivanti: CVE-2019-11510 (arbitrary file read), CVE-2023-46805 and CVE-2024-21887 (authentication bypass chained to RCE).
- Citrix ADC/Gateway: CVE-2019-19781 (RCE) and CVE-2023-4966 (“Citrix Bleed”, session-token theft).
- Cisco ASA/AnyConnect: CVE-2020-3452 (file read), among others.
These are not theoretical: they have been the initial vector of massive breaches and ransomware campaigns, and appear in the CISA KEV catalog of exploited vulnerabilities. Keep a list and cross-reference the identified version.
IPsec / IKE
Section titled “IPsec / IKE”# IKE aggressive mode -> save the PSK material with -P (psk-crack needs that format)ike-scan --aggressive -P psk.txt target# then crack the captured PSK offlinepsk-crack psk.txtImpact
Section titled “Impact”VPN access gives direct entry to the internal network as a remote user; from there, internal recon (see Network Service Enumeration), pivoting (see Pivoting and Tunneling) and, on Windows environments, direct domain enumeration (see Active Directory Enumeration). An RCE CVE on the appliance even hands over control of the edge device itself.
Blue Team
Section titled “Blue Team”- Mandatory MFA on every VPN: the highest-impact mitigation against credentials and spraying.
- Urgent patching of VPN appliances: they are target number one and the CVEs are exploited within days.
- Monitoring: logins from anomalous geographies or hours, multiple failures (spraying), impossible concurrent sessions.
- Least access: the VPN should not grant flat access to the whole internal network; segment and apply NAC or ZTNA.
- Rotate credentials and sessions after any CVE allowing session or credential theft (e.g. Citrix Bleed).
- Consider ZTNA (Zero Trust Network Access) as the evolution beyond the traditional flat-access VPN.
Checklist
Section titled “Checklist”- Identify the VPN appliance/portal and its version
- Cross-reference the version with known CVEs (Fortinet/Pulse/Citrix/Cisco)
- Password spraying against the portal (with lockout policy)
- Reused credentials from breaches
- Check whether MFA exists (its absence is the key finding)
- IKE aggressive mode (PSK capture)
- After access: internal recon and path to the domain
- Blue: verify patching, MFA, segmentation and monitoring