# How to set up Theft protection

> **Can I lock a Simbase SIM to one device?** Yes. Theft protection binds a Simbase SIM to the IMEI of the device it first attaches in, and Simbase disables the SIM automatically if it later reports a different IMEI. One IMEI per SIM. Turn Theft protection off before any legitimate device swap, otherwise the new hardware trips the lock and leaves a disabled SIM in the field.

Source: https://simbase.com/docs/theft-protection (updated 2026-11-26)

**Theft protection**, often called **IMEI lock**, is a security feature that binds a Simbase SIM to the IMEI (the unique identifier of a cellular device) of the first device it is used in. If the SIM is removed and inserted in a different device, the new device's IMEI won't match the locked one, and Simbase automatically disables the SIM.

This article covers what Theft protection does, when it's worth turning on, and the one operational gotcha you need to plan for.

## When to use Theft protection

| Scenario | Theft protection? |
| --- | --- |
| **Fixed installation, device unlikely to be moved** | Strongly recommended. The device won't move, so the lock never gets in the way. |
| **Vehicle telematics, asset trackers in customer hands** | Recommended. Devices leave your control, which is exactly the theft case. |
| **SIMs on engineer benches for testing** | Skip. You'll swap devices often. |
| **Pool of spare SIMs not yet deployed** | Optional based on the use case. If enabled, SIMs will lock to the first IMEI they are paired with. |
| **SIMs in shared/loaner devices** | Use carefully. Every legitimate swap means turning Theft protection off and on again. |

## What it protects against

- **SIM theft.** A stolen SIM placed in a different device is locked out as soon as the IMEI change is detected.
- **Unauthorized repurposing.** A SIM removed from a deployed device and placed in a personal phone (intentionally or not) won't work.

**What it doesn't protect against:**

- **A compromised device.** If the device itself is compromised, the SIM still works in that device. Theft protection only checks the IMEI, not the integrity of the firmware.
- **SIM cloning.** Theft protection works on the IMEI the network reports. It doesn't prevent the SIM secret being extracted from a stolen card.
- **Data interception in transit.** Use TLS and/or a [VPN](/docs/vpn) for that.

## How it works

> **A data session isn't required** The device doesn't have to send any data. Routine signalling is enough: a registration attempt, a location update, or the regular exchanges between the device and the cell tower all report the IMEI, and any of them can bind the SIM or trigger a mismatch.

The first time a SIM with Theft protection enabled generates network activity in a device, Simbase records that device's **IMEI** against the SIM. Every time the network reports the IMEI after that, Simbase checks it:

- **Match:** attach allowed, SIM passes traffic as normal.
- **Mismatch**: the SIM is automatically disabled the moment the change is detected, traffic stops, and Simbase emails the users on your account. To handle it in your own systems, subscribe to `simcard.security.imei_changed` in [Events](/docs/events).

If the SIM gets disabled by an IMEI mismatch, it stays Disabled until you re-enable it. Move the SIM back into the original device and re-enable it, or re-enable it where it is: Theft protection stays on and locks to the new device's IMEI. Don't leave a disabled SIM in a running device: it can be banned by the network. See [SIM state](/docs/sim-state).

> **Enforcement is instant, detection isn't** Enforcement is immediate: the moment Simbase detects the IMEI change, the SIM is disabled and traffic stops. Detecting it depends on the network sending us metadata carrying the new IMEI, which can take a short while. So there may be a brief window after a SIM is moved before the lock takes effect.

## Enable Theft protection

### Per SIM, in the dashboard

1. Sign in to [dashboard.simbase.com](https://dashboard.simbase.com).
2. Open the SIM you want to protect.
3. Find the **Theft protection** toggle.
4. Switch it on.

The SIM is now bound to the next IMEI reported for it. If it's already attached in a device, that device's IMEI is recorded immediately.

![Theft protection toggle on the Simbase dashboard](https://www.datocms-assets.com/151473/1782391689-untitled-design-25.png)

### Via the API

1. **Create an API key** with the `simcards.details:write` scope, from **Integrations → API** in the dashboard. Keys are scoped on creation and scopes cannot be changed afterward.
2. **Send a PATCH request** to the SIM, setting `imei_lock` to `on`.

**Request**

```http
PATCH /v2/simcards/{ICCID} HTTP/1.1
Host: api.simbase.com
Authorization: Bearer YOUR_API_KEY
Content-Type: application/merge-patch+json

{
  "imei_lock": "on"
}
```

**Response**

A successful call returns `200` listing the fields that changed.

```json
{
  "message": "Simcard updated successfully",
  "updated_fields": ["imei_lock"]
}
```

The SIM binds to the IMEI it's currently reporting, or to the first IMEI reported for it if it hasn't been seen on the network yet. This is the same behavior as the dashboard toggle.

**To turn it off,** send `"imei_lock": "off"`. This clears the binding and the SIM can attach in any device.

> **Watch the content type.** With application/merge-patch+json, sending "imei_lock": null is a validation error, while with application/json it is treated as "no update". Send only the fields you intend to change.

## Turn Theft protection off

**The same steps, in reverse:**

1. Open the SIM in the dashboard.
2. Toggle **Theft protection** off.

**After you turn it off:**

- The IMEI binding is cleared.
- The SIM can attach in any device.
- If you turn Theft protection on again later, the binding starts fresh. The next IMEI reported becomes the new locked IMEI.

## Plan for legitimate device swaps

This is the biggest operational consideration: **whenever you swap the device a SIM lives in, you have to turn Theft protection off first.** Otherwise:

1. You move the SIM into the replacement device.
2. The device powers on and attaches with its new IMEI.
3. Simbase sees the mismatch and auto-disables the SIM.
4. You now have a disabled SIM in the field, and it can only be re-enabled from the dashboard or API.

**The correct flow:**

1. Turn Theft protection off in the dashboard *before* the physical swap.
2. Swap the SIM into the new device.
3. Power the new device on and let it attach successfully.
4. Turn Theft protection back on. The new device's IMEI becomes the new locked IMEI.

For organizations doing frequent field swaps, consider scripting this via the [API](https://developer.simbase.com).

## Checking IMEI status

### In the dashboard

1. Open the SIM in the dashboard.
2. The **Theft protection** field shows the toggle state and the locked IMEI, if any.
3. Use this to verify a SIM is bound to the device you expect, which is useful during deployment QA.

### Via the API

Retrieve the SIM with `GET /v2/simcards/{ICCID}`. The key needs the `simcards.details:read` scope.

```http
GET /v2/simcards/{ICCID} HTTP/1.1
Host: api.simbase.com
Authorization: Bearer YOUR_API_KEY
```

The response includes both values, abridged here:

```json
{
  "iccid": "8912340400000000000",
  "imei": "356938035643021",
  "imei_lock": "off",
  "state": "enabled"
}
```

`imei_lock` is `on` or `off`. `imei` is the last IMEI the SIM reported, so after a mismatch it shows the new device. No field holds the locked IMEI; the previous IMEI is in the `simcard.security.imei_changed` event and the SIM's Activity Feed.

To audit a fleet, list your ICCIDs with `GET /v2/simcards` and call the detail endpoint for each, staying within the API limits of 10 calls per second and 5,000 calls a day.

## Common questions

**My SIM was disabled by Theft protection. How do I get it back online?**

Re-enable the SIM. Theft protection stays on and locks to the IMEI of the device the SIM is in, so move it back to the original device first if that's where it belongs. If the SIM was genuinely stolen, leave it disabled.

**Can I lock a SIM to more than one IMEI?**

No. Theft protection is one IMEI per SIM. For workflows that swap between two known devices, turn Theft protection off or script the rotation.

**Does Theft protection trigger when a device reboots?**

No. The IMEI doesn't change on reboot. Theft protection only fires on an actual IMEI mismatch.

**Will I be notified if Theft protection disables a SIM?**

Yes. Simbase emails the users on your account as soon as an IMEI mismatch disables a SIM. For an automated alert, subscribe to `simcard.security.imei_changed` in [Events](/docs/events).

## Related

- [SIM state](/docs/sim-state): what happens when a SIM is disabled by Theft protection
- [Diagnostics](/docs/diagnostics): flags Theft protection mismatches
- [API](https://developer.simbase.com): programmatic Theft protection control
- [VPN](/docs/vpn): additional security beyond IMEI lock
