Strobesstrobes
Platform
Solutions
Resources
Customers
Company
Pricing
Book a Demo
Strobesstrobes

Strobes connects every exposure signal to autonomous action, so security teams fix what matters, prove what works, and stop chasing noise.

Book a DemoTalk to an expert
ISO 27001SOC 2CREST
  • Platform
  • Platform Overview
  • Agentic Exposure Management
  • AI Agents
  • Integrations
  • API & Developers
  • Workflows & Automation
  • Analytics & Reporting
  • Solutions
  • Exposure Assessment (EAP)
  • Attack Surface Management
  • Application Security Posture
  • Risk-Based Vulnerability Management
  • Adversarial Exposure Validation (AEV)
  • AI Pentesting
  • Pentesting as a Service
  • CTEM Framework
  • By Industry
  • Financial Institutions
  • Technology
  • Retail
  • Healthcare
  • Manufacturing
  • By Roles
  • CISOs
  • Security Directors
  • Cloud Security Leaders
  • App Sec Leaders
  • Resources
  • Quick Agentic Pentest
  • Blog
  • Customer Stories
  • eBooks
  • Datasheets
  • Videos & Demos
  • Exposure Management Academy
  • CTEM Maturity Assessment
  • Pentest Health Check
  • Security Tool ROI Calculator
  • Company
  • About Strobes
  • Meet the Team
  • Trust & Security
  • Contact Us
  • Careers
  • Become a Partner
  • Technology Partner
  • Partner Deal Registration
  • Press Release

Weekly insight for security leaders

CTEM research, agentic AI trends, and what's actually moving the needle.

© 2026 Strobes Security Inc. All rights reserved.

Privacy PolicyTerms of ServiceCookie PolicyAccessibilitySitemap
Back to Blog
VoIP Penetration Testing and Reconnaissance Guide
Network Pentesting

VoIP Penetration Testing and Reconnaissance Guide

Shubham JhaOctober 22, 20257 min read

Table of Contents

  • Toll fraud is where a misconfigured PBX becomes a bill
  • How do you discover and fingerprint the SIP infrastructure?
  • How do you enumerate extensions and crack SIP secrets?
  • Can attackers eavesdrop on VoIP calls?
  • What does a VoIP findings report actually look like?
  • How do you secure a VoIP deployment at the config level?
  • Frequently asked questions
  • Sources and references

Authors

S
Shubham Jha

Share

Table of Contents

  • Toll fraud is where a misconfigured PBX becomes a bill
  • How do you discover and fingerprint the SIP infrastructure?
  • How do you enumerate extensions and crack SIP secrets?
  • Can attackers eavesdrop on VoIP calls?
  • What does a VoIP findings report actually look like?
  • How do you secure a VoIP deployment at the config level?
  • Frequently asked questions
  • Sources and references

Authors

S
Shubham Jha

Share

TL;DR
  • ✓Toll fraud is the highest-impact VoIP finding: the CFCA estimates telecom fraud at roughly 38.95 billion USD a year, and a misconfigured dial plan is how attackers cash in on yours.
  • ✓SIP enumeration with svwar finds valid extensions by reading how the PBX answers, then svcrack brute-forces the registration secret, which is shockingly often equal to the extension number.
  • ✓Unencrypted RTP on a flat voice network can be captured and reassembled into playable audio, so any call is recordable by anyone on the wire.
  • ✓Generic scanners flag an outdated Asterisk build but never enumerate an extension, crack a secret, or reassemble a call, which is why VoIP needs a tester who speaks SIP and RTP.
  • ✓The fixes are config-level: alwaysauthreject=yes, SRTP plus SIPS/TLS, a locked dial plan, a voice VLAN, and a hard carrier cap on concurrent international channels.

The Communications Fraud Control Association puts global telecom fraud near 38.95 billion USD a year, and the single largest slice of it is toll fraud: an attacker turns your phone system into a money pump and you find out on the next invoice. The PBX is the asset most security programs forget they own, yet it is just another stack of network services, SIP on 5060, RTP on a wide UDP range, and a web admin panel, each shipping with the same defaults and weak secrets you would never tolerate on a server.

This guide is built around the actual tool output you would see on an engagement, not a tool list. You will watch svwar surface a live extension, svcrack pop its password, and an RTP stream turn back into audio, then we close with the Asterisk settings that kill each finding. It pairs with our internal network penetration testing guide and the enterprise network misconfigurations breakdown, since voice almost always rides the same flat network everything else does.

Table of contents
  1. Toll fraud is where a misconfigured PBX becomes a bill
  2. How do you discover and fingerprint the SIP infrastructure?
  3. How do you enumerate extensions and crack SIP secrets?
  4. Can attackers eavesdrop on VoIP calls?
  5. What does a VoIP findings report actually look like?
  6. How do you secure a VoIP deployment at the config level?

Toll fraud is where a misconfigured PBX becomes a bill

Toll fraud is the reason VoIP testing pays for itself: a permissive dial plan plus one weak extension secret lets an attacker register, dial premium-rate or international revenue-share numbers around the clock, and bill it all to you. Single victims have lost six figures over a long weekend because nobody capped concurrent international channels.

The mechanics are simple and that is what makes it dangerous. An attacker who recovers an extension's SIP secret is, as far as the PBX is concerned, a legitimate phone. If the dial plan routes that extension to the outside world without restriction, every call it places is a charge. The attacker does not need an exploit or a CVE; they need an account and a route, both of which a misconfigured PBX hands over.

Beyond fraud, the high-value outcomes are eavesdropping on unencrypted calls and caller-ID spoofing that powers vishing. A spoofed From header showing your internal helpdesk number turns a generic phishing call into one your staff trust, so the SIP-layer weakness and the social-engineering risk are really one finding. NIST SP 800-58 frames the same controls from the defender's side.

Why VoIP is a target
$38.95B
Annual global telecom fraud (CFCA)
5060
Default SIP port, almost never firewalled internally
Seconds
Typical svcrack time when the secret equals the extension
0
CVEs needed for a full toll-fraud compromise

How do you discover and fingerprint the SIP infrastructure?

Start by finding the SIP services and identifying the PBX software, because the rest of the test depends on knowing what you are talking to. nmap fingerprints the obvious ports and SIPVicious sweeps for live SIP devices. Run the UDP scan first since SIP is UDP by default.

$ nmap -sU -sV -p 5060,5061 --script sip-methods 10.0.0.0/24
Nmap scan report for pbx.corp.local (10.0.0.50)
PORT     STATE SERVICE VERSION
5060/udp open  sip     Asterisk PBX 16.16.2     <- version + product, your fingerprint
| sip-methods:
|_  INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY

That banner tells you it is Asterisk 16.16.2 and that REGISTER and SUBSCRIBE are accepted, so authentication and presence attacks are both on the table. Also profile the TFTP server phones provision from. Open provisioning config is a frequent jackpot: on a recent assessment of a regional hospital's PBX, we pulled a CUCM cluster's admin credentials out of a world-readable TFTP config (tftp 10.0.0.50 -c get SIPDefault.cnf) before ever touching the SIP service, which collapsed the whole engagement into one command.

How do you enumerate extensions and crack SIP secrets?

Extension enumeration is SIP username enumeration: the PBX answers differently for a real extension than for one that does not exist, and svwar reads that difference. The telltale is the authentication column.

$ svwar -m INVITE -e 100-130 10.0.0.50
| Extension | Authentication |
| 101       | reqauth        |   <- real extension, server demands auth
| 102       | reqauth        |
| 115       | reqauth        |
[*] 3 extensions found, 25 returned 404 (do not exist)

Every reqauth row is a live account to attack. Feed those into svcrack, which brute-forces the registration secret. A huge share of deployments set the secret equal to the extension number or a trivial default, so this lands in seconds.

$ svcrack -u 101 -d wordlist.txt 10.0.0.50
[*] Trying 101 ... [*] Trying 1234 ...
| Extension | Password |
| 101       | 101      |   <- secret equals the extension number
[+] Password cracked for extension 101

That cracked secret is an account on the phone system. You can prove a toll-fraud path safely with a single SIPp test call to an in-scope number (sipp -sn uac 10.0.0.50 -s 101 -au 101 -ap 101) rather than dialing a real premium line. Throttle svwar and svcrack: full-speed runs trip fail2ban or knock the PBX over, and a hung phone system during business hours is a fast way to lose the engagement.

VoIP attack chain: discovery to fraud
1
Discover
nmap + svmap find SIP on 5060 and fingerprint Asterisk/CUCM.
2
Enumerate
svwar reads reqauth responses to list valid extensions.
3
Crack
svcrack brute-forces the registration secret, often = extension.
4
Register
The cracked extension becomes a legitimate phone on the PBX.
5
Fraud / eavesdrop
Dial-plan abuse for toll fraud; capture RTP for audio.

Can attackers eavesdrop on VoIP calls?

Yes. When media is unencrypted, capturing and replaying calls is trivial, and RTP is unencrypted by default. On a flat or poorly segmented voice network, an attacker who can see the traffic, via ARP spoofing or a mirror port, captures the RTP stream and reassembles it into playable audio.

The chain is ARP-spoof into the path, capture a few minutes, then reassemble. tcpdump grabs the raw media and rtpbreak writes per-call audio files.

$ tcpdump -i eth0 -w voice.pcap udp portrange 10000-20000
$ rtpbreak -W -d ./out -f voice.pcap
[*] stream 0: 10.0.0.61:11042 -> 10.0.0.50:14310  G.711u  192 packets
[*] wrote ./out/rtp.0.0.raw   <- decode to WAV and it plays back the call

Wireshark has a built-in RTP player as well (Telephony > RTP > RTP Streams > Play). This is one of the more visceral findings to demo, since you hand the client an audio file of an internal call. Do it responsibly: capture a single test call you place yourself, never live employee conversations, which keeps the proof in scope while still landing the point. The fix is SRTP for media and SIPS over TLS for signaling.

What does a VoIP findings report actually look like?

The deliverable is a prioritized findings table, because what a client needs is not a tool transcript but severity, evidence, and a fix they can action. The table below is the shape of a real VoIP report excerpt, and notice that none of the high-severity rows is a CVE, they are all configuration.

That is the recurring lesson of VoIP work: scanners report the patch level and stop, while the damage lives in extension secrets, dial-plan routes, and missing encryption. The report ties each finding to the evidence that proves it and the single config change that closes it, which is what turns a test into remediation.

VoIP findings report excerpt
FindingSeverity (CVSS)EvidenceRemediation
Dial plan permits unrestricted international callsCritical (9.1)SIPp test call from ext 101 completed to in-scope external DIDBlock international/premium prefixes; carrier channel cap
SIP secret equals extension numberHigh (8.1)svcrack recovered 101:101 in under 5 secondsUnique 14+ char secrets; rate-limit REGISTER
RTP media unencryptedHigh (7.5)rtpbreak reassembled a G.711 call to playable WAVEnforce SRTP (encryption=yes); voice VLAN
Extension enumeration possibleMedium (5.3)svwar identified 3 valid extensions via differing 401/404alwaysauthreject=yes; allowguest=no
TFTP provisioning config world-readableHigh (8.6)SIPDefault.cnf pulled with cleartext admin credsACL the provisioning server; signed config

How do you secure a VoIP deployment at the config level?

Securing VoIP is mostly four config-level changes, not advice to use strong passwords. First, stop extension enumeration: in Asterisk set alwaysauthreject=yes (and allowguest=no) so the PBX returns an identical response for valid and invalid extensions, which blinds svwar.

; /etc/asterisk/sip.conf
[general]
alwaysauthreject=yes      ; identical 401 for real and fake extensions
allowguest=no             ; no anonymous calls
encryption=yes            ; require SRTP for media
transport=tls             ; SIPS signaling on 5061

Second, lock the dial plan: block international and premium-rate prefixes by default and only allow the routes the business actually uses, so a cracked extension cannot reach a revenue-share number. Third, put voice on its own VLAN isolated from data and management, which kills the RTP eavesdropping path and ties into network segmentation. Fourth, set strong unique SIP secrets (never equal to the extension) and rate-limit registrations to slow svcrack.

Back it with a carrier-side hard cap on concurrent international channels and an off-hours spend alert, so even a missed misconfiguration cannot become a five-figure weekend bill. VoIP infrastructure drifts quietly as extensions and SIP trunks are added, so the continuous validation in agentic pentesting helps catch a newly exposed phone system before an attacker does. Retest after every dial-plan or trunk change, because that is exactly when toll-fraud exposure reappears.

Frequently asked questions

What is VoIP penetration testing?
It is the authorized security assessment of an IP telephony system, covering SIP signaling, RTP media, and the PBX servers and management interfaces. Testers look for extension enumeration, weak SIP secrets, unencrypted call audio, toll-fraud exposure, and PBX misconfigurations, most of which are configuration issues rather than patchable CVEs.
How much does VoIP toll fraud actually cost?
The Communications Fraud Control Association estimates global telecom fraud at roughly 38.95 billion USD a year, with toll fraud and interconnect bypass among the largest categories. Individual organizations have lost five and six figures over a single weekend when a cracked extension met an unrestricted dial plan and no carrier-side channel cap.
What is SIPVicious used for?
SIPVicious is the standard SIP auditing suite. svmap scans networks for SIP devices, svwar enumerates valid extensions by reading the PBX's differing responses, and svcrack brute-forces SIP registration secrets. It covers the recon and authentication phases of a VoIP test, and you should rate-limit it to avoid tripping fail2ban or crashing the PBX.
Can VoIP calls really be intercepted?
Yes, when RTP is not encrypted with SRTP. An attacker who can observe the traffic, often via ARP spoofing on a flat voice network, captures the RTP stream and reassembles it into playable audio with rtpbreak or Wireshark's RTP player. SRTP for media, SIPS/TLS for signaling, and a dedicated voice VLAN prevent it.
What single Asterisk setting stops extension enumeration?
Set alwaysauthreject=yes in sip.conf. It forces Asterisk to return an identical authentication failure for both valid and invalid extensions, removing the response difference that svwar relies on to tell real extensions apart. Pair it with allowguest=no to block anonymous calls entirely.
How is VoIP testing different from a normal network pentest?
A standard network test fingerprints services and checks patch levels; a VoIP test speaks SIP and RTP to enumerate extensions, crack registration secrets, reassemble calls, and probe the dial plan for fraud. Those behaviors are invisible to a generic scanner, so VoIP needs protocol-specific tooling and a tester who understands telephony, even though it usually rides the same internal engagement.

Sources and references

  • CFCA Global Telecom Fraud Loss Survey
  • SIPVicious Project
  • NIST SP 800-58 Security for VoIP Systems
S
Shubham Jha
Security Researcher, Strobes
Shubham Jha leads offensive security research at Strobes, focused on web and API exploitation and red team tradecraft.
Tags
VoIPNetwork PentestingOffensive Security

Stop chasing vulnerabilities Start reducing exposure

See how Strobes AI agents validate and fix your most critical exposures automatically.

Book a Demo
Continue Reading

Related Posts

Identifying Security Misconfigurations in Enterprise Networks
Network Pentesting

Identifying Security Misconfigurations in Enterprise Networks

Verizon's DBIR ties a large share of breaches to misconfiguration, not zero-days. Here are the enterprise network misconfigurations testers find most, with the exploit output and the GPO-level fixes.

Nov 6, 20257 min
Wireless Penetration Testing Guide
Network PentestingPenetration Testing

Wireless Penetration Testing Guide

A weak Wi-Fi key cracked from the parking lot can undo every firewall you own. Here is the wireless penetration testing workflow, with real hcxdumptool and hashcat output and the EAP-TLS fix that ends it.

Oct 7, 20257 min
Active Directory Penetration Testing Checklist
Network PentestingOffensive Security

Active Directory Penetration Testing Checklist

Most domains fall without a single CVE. This Active Directory penetration testing checklist walks the phases with real Kerberoast and Certipy output, a findings table, and the controls that actually break each path.

Sep 22, 20257 min