Toll fraud is when attackers gain access to your phone system and use it to place large numbers of calls, usually to expensive international or premium-rate numbers. The calls are billed to you. Because attacks often run overnight or over a weekend, a business can wake up to a carrier bill of thousands of dollars.
VICIdial servers are attractive targets: they sit on the internet, they are connected to carriers with credit, and many are installed quickly with default settings. The controls below close the most common doors.
1. Restrict who can reach the server
The most effective protection is simply not exposing SIP and the web interface to the whole internet.
- IP whitelisting: only allow SIP (5060), RTP and the admin and agent web pages from your carriers' IPs and your agents' IPs. ViciBox includes firewall zones and a dynamic portal so remote agents can validate their IP before logging in.
- Close everything else: SSH, MySQL and any unused services should be limited to trusted addresses or a VPN.
- Use HTTPS for the admin and agent interfaces so logins are not sent in plain text.
2. Stop brute-force attempts with Fail2ban
Bots constantly scan the internet for SIP servers and try thousands of extension and password combinations. Fail2ban watches the Asterisk and web logs and blocks an IP address after repeated failures.
Enable jails for Asterisk (SIP registration failures), SSH and the web login. Check the ban list occasionally; a long list is a sign of how much traffic is hitting the server.
3. Remove default and weak credentials
- Change every default password created during installation, including admin users, phone (extension) passwords, the manager (AMI) password and database passwords.
- Delete test phones and users you are not using.
- Use long random passwords for SIP extensions. Agents never type them, so there is no reason for them to be short.
- Give admin access only to the people who need it, with the lowest user level that does the job.
4. Lock down what the dialplan can call
Even if someone registers a phone, they should not be able to dial anywhere in the world.
- Only create outbound routes for the countries and number types you actually call.
- Block international, premium-rate and satellite prefixes unless a campaign needs them.
- Do not give extensions the ability to dial out through every carrier by default.
5. Set limits with your carrier
Your carrier is the last line of defence, and these settings take minutes:
- Daily or monthly spending limits on the account.
- Disable international calling on the trunk unless you need it, or allow only specific countries.
- Concurrent call limits that match your real agent count.
- IP authentication instead of, or as well as, username and password for the trunk.
- Low-balance and unusual-traffic alerts sent to a phone that someone actually watches.
Prepaid carrier accounts are another simple protection: a fraud run stops when the balance runs out.
6. Monitor and keep the server updated
- Review call detail records for calls to unusual countries, calls at odd hours or many short calls from one extension.
- Watch concurrent call counts. A sudden jump at 3 a.m. is rarely genuine.
- Apply operating system and VICIdial updates on a schedule, and test them on a non-production server first where possible.
- Keep backups of the database and configuration so you can rebuild quickly if a server is compromised.
If you think you have been hit
- Disable the affected trunks or ask the carrier to block outbound calls immediately.
- Block the source IPs in the firewall.
- Change all SIP, admin, AMI and SSH passwords.
- Check for new users, phones or dialplan changes you did not make.
- Contact your carrier about the fraudulent traffic as quickly as possible.
The ten-minute version
If you only do a few things today: whitelist IPs for SIP and the web interface, enable Fail2ban, change every default password, block international dialing you do not need, and set a spending limit with your carrier. Those steps take minutes and prevent the large majority of toll fraud incidents.
Need help with VICIdial, Asterisk or AI voice agents?
SmartAiCalls sets up, secures and supports calling systems for call centers and growing businesses. Talk to us or request a free demo.