---
title: "SIM Swap"
description: "1 posts about SIM Swap, summarised, each linking to the original."
---

# SIM Swap
> 1 posts about SIM Swap, summarised, each linking to the original.

## Articles

### [How to Detect SIM Swaps in Rust With Twilio's Lookup API](https://yomu.fyi/post/how-to-detect-sim-swaps-in-rust-with-twilio-s-lookup-api.md)
- Company: [Twilio](https://yomu.fyi/company/twilio.md)
- Author: Matthew Setter
- Published: Oct 19, 2026
- Type: Tutorial

SIM swap attacks let attackers take over a phone number by convincing the carrier to link it to a new SIM, enabling them to receive all calls and SMS, including OTP codes for two-factor authentication. Twilio’s Lookup API provides real-time SIM swap data from mobile network operators, indicating if the SIM linked to a number has recently changed. This tutorial shows how to integrate SIM swap detection into Rust using the rustlio crate, with dependencies dotenvy, serde, serde\_json, and tokio. The code loads environment variables from a .env file for Twilio Account SID and Auth Token, calls lookup\_phone\_data with DataPackage::SimSwap, and prints the last\_sim\_swap date (e.g., 2020-04-27T10:18:50Z), swapped\_period (e.g., PT48H), and swapped\_in\_period boolean. The post notes legitimate SIM swaps happen for reasons like lost phones or porting numbers, so the data should always be used as part of a larger, more holistic determination rather than alone.
