How to prevent toll fraud on a business phone system
To prevent toll fraud on a business phone system, close the ways in, limit what any one extension can dial, and make sure someone is told within minutes when spending looks wrong. Toll fraud is when someone else makes calls through your phone system, usually to premium-rate or foreign numbers that earn them money, and you receive the bill. It can run all night and all weekend, and the first sign can be the invoice.
How toll fraud happens
An attacker needs a way to place calls through your system, a destination that pays them and enough time. The ways in are few:
- A guessed or stolen SIP password. Automated tools scan the internet for systems that answer on the SIP ports, then try extension numbers and common passwords against them. If you need to stop SIP brute force, start here. The logs of an exposed system may show the user agent friendly-scanner, which is the default name of the open-source SIPVicious scanning tools. A stolen login for a softphone or a mobile app does the same job.
- A weakness in the software or its admin interface. An unpatched module, or an admin login that the internet can reach.
- A feature that lets an outside caller dial out. Voicemail options that call out, direct inward system access (DISA), an auto attendant that accepts any digits, remote call forwarding and transfers to outside numbers can all turn an incoming call into an outgoing one.
- A trunk that trusts too much. A trunk that is authorised by IP address, or a default route for calls that were never authenticated, can let anyone who reaches the system place calls.
The attacker profits by calling numbers that pay a share of the call charge to whoever controls them. When those numbers are in other countries, it is called international revenue share fraud. In the UK, premium-rate numbers start with 09 and international calls start with 00 or +.
Prevent toll fraud by closing the ways in
- Do not leave SIP open to the whole internet. On the trunk, allow only your carrier's signalling addresses. For remote workers, use a VPN, or TLS with a separate login for each device behind a session border controller. Moving SIP off port 5060 slows casual scans but is not a defence on its own.
- Use long, random passwords on every extension and trunk, different for each, and never the extension number or a pattern. Provisioned phones store the password, so nobody has to remember it, and 20 or more random characters costs nothing.
- Keep the admin interface away from the internet, and protect administrator accounts with multi-factor authentication.
- Keep the phone system, its modules and the operating system patched, and read the vendor's security notices. The phone system upgrade checklist covers how to do it without losing the phones.
- Switch off what you do not use: voicemail call-outs, DISA, remote call forwarding and anonymous inbound SIP.
- Ban repeat offenders automatically. Block an address for a while after several failed registrations. Tools in the fail2ban family do this on Linux, and many phone systems have a version built in.
Limit what any one extension can dial
Most extensions never need to call abroad or dial premium-rate numbers, so give each only the destinations it needs. A simple scheme has three levels: internal and UK calls for most people, named countries for the few who need them, and premium-rate numbers for nobody unless a PIN is entered.
- Cap how many calls an extension and a trunk can have open at once, so that a hijacked extension can open only a few lines.
- Block international calls outside working hours unless someone has a reason.
- Delete or restrict extensions that are not in use, including those of people who have left.
Be careful with blanket bans. Disabling overseas calling stops the fraud and also stops the colleague who phones a supplier in Spain, so restrict countries and number ranges and not everything.
Ask your carrier for a spending cap
Your carrier sits outside your phone system, so a control there still works when the phone system has been compromised. Ask whether it can set a daily spending limit, bar premium-rate numbers and chosen international ranges, and warn you by email or text when spending jumps. Read, too, what the contract says about calls you did not make. Some contracts make the customer responsible for every call placed through the account, whoever really made it.
Notice quickly
Controls fail, so arrange to hear about trouble fast. Send spending and destination alerts to a mailbox or phone that someone reads at weekends. Review the call records weekly for calls at odd hours, many short calls to one country, and calls from extensions that should be idle. Make sure at least two people know how to stop outbound calling in an emergency, both at the carrier's portal and in the phone system.
If it happens anyway
Ring your carrier first and ask them to stop outbound calls on the account, because that is the quickest way to stop the cost. Then take the phone system off the internet and change every extension, trunk and administrator password. Look for what the attacker added, such as extensions, forwarding rules, trunks and scheduled tasks that you did not create. Keep the logs, find the way in before you reconnect, and report the fraud to the police. The toll fraud guide sets out the first hour step by step.
In Wafflr
Wafflr is a phone system in development, and it has not launched. Three parts of its console deal with this problem. Each extension has a class of service that says which kinds of number it may dial, and the console describes it as the thing standing between a compromised extension and a large bill for premium numbers dialled overnight. Emergency numbers are never refused: 999, 112 and 911 work from an extension that permits nothing else.
A toll-fraud watch estimates what each extension is spending from the kind of number it dials, over a short burst window and over a day, and suspends the extension when either limit is passed. A person can lift a suspension, and a suspended extension can still dial 999. Fraud is also one of the categories of alert, which an administrator can send by email or to an HTTPS address, which is also how a Slack or Teams incoming webhook receives messages. Each alert destination has a test button, so you find out that it does not work before an incident and not during one.
What to do next
Pick the three cheapest controls on this page: the carrier's spending cap, a ban on premium-rate numbers for everyone who does not need them, and passwords that cannot be guessed. Do them this week and leave the rest for the next. If a bill has already arrived that you cannot explain, start with the carrier call in the section above.