<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Detecting Smishing Attacks

## Agent Script

### Commands

| Command | Description |
|---|---|
| `node agent.js analyze-sms --message <text>` | Analyze SMS for smishing |
| `node agent.js expand-url <url>` | Expand short URL |
| `node agent.js check-sender --number <num>` | Check sender number |
| `node agent.js detect-spoof --sender-id <id>` | Detect sender ID spoofing |
| `node agent.js generate-alert --campaign <c> --brand <b>` | Generate alert |
| `node agent.js batch-analyze <file>` | Batch analyze SMS messages |

### Examples

```bash
# Analyze a suspicious SMS
node agent.js analyze-sms --message "Your USPS package is delayed: https://bit.ly/3x"

# Expand short URL safely
node agent.js expand-url "https://bit.ly/3xK9pQ2"

# Check if sender ID is spoofed
node agent.js detect-spoof --sender-id "BANKOFAM"

# Batch analyze reported smishing messages
node agent.js batch-analyze /tmp/sms_reports.json
```

## Reporting Numbers

| Country | Number | Method |
|---|---|---|
| US/Canada | 7726 (SPAM) | Forward SMS |
| UK | 7726 | Forward SMS |
| Australia | 0429 999 888 | Forward SMS |

## Mobile Threat Defense Platforms

| Platform | Integration |
|---|---|
| Microsoft Intune | MDM + MTD |
| Jamf Pro | macOS/iOS MDM |
| Lookout | Mobile threat detection |
| Zimperium | Mobile security |
