# aldazactivator/airlift-rw architecture

> Architecture diagram of the GitHub repository aldazactivator/airlift-rw, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aldazactivator/airlift-rw
- Repository: https://github.com/aldazactivator/airlift-rw

## Overview

airlift is a paired-Mac proof of concept for abusing iOS AirTraffic to write files outside its intended scope and to extract files indirectly. The principal workflow selects and checks a device, stages an operation, triggers AirTraffic, then verifies and cleans up; extraction additionally reads the recovered file through AFC and restores the original. The README documents the iOS exploit chain, while the excerpts show the Python orchestration and host invocation. The Objective-C implementations were not sampled, so their internal behavior is represented only where the README documents it.

Main entry points: [`airlift.py`](https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py) (Write and extract), [`Sources/airtraffic_host.m`](https://github.com/aldazactivator/airlift-rw/blob/main/Sources/airtraffic_host.m) (AirTraffic host), [`Sources/device_helper.m`](https://github.com/aldazactivator/airlift-rw/blob/main/Sources/device_helper.m) (Device helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Mac CLI"]
  node_cli["CLI and modes<br/>[airlift.py]"]
  node_device_select["Device selection<br/>[airlift.py]"]
  node_operation["Write and extract<br/>[airlift.py]"]
  node_verification["Verify and cleanup<br/>[airlift.py]"]
  node_local_files["Payload and output<br/>[airlift.py]"]
end

subgraph group_native["Native helpers"]
  node_device_helper["Device helper<br/>[device_helper.m]"]
  node_target_header["Build identifiers<br/>[airlift_target.h]"]
end

subgraph group_sync["AirTraffic sync"]
  node_host_helper["AirTraffic host<br/>[airtraffic_host.m]"]
  node_mobiledevice["MobileDevice.framework"]
  node_airtraffic_host_fw["AirTrafficHost.framework"]
end

subgraph group_ios["iOS file path"]
  node_streaming_zip["StreamingZip conduit"]
  node_afc["AFC"]
  node_atc["ATC device service"]
  node_books["Books sync client"]
  node_asset_link["ATLegacyAssetLink"]
  node_airlock["ATAirlock"]
  node_file_manager["NSFileManager"]
  node_device_storage[("iOS files")]
end

node_user(("Researcher"))

node_user -->|"runs"| node_cli
node_cli -->|"resolves device"| node_device_select
node_cli -->|"dispatches mode"| node_operation
node_operation -->|"stages and extracts"| node_device_helper
node_operation -->|"triggers sync"| node_host_helper
node_operation -->|"reads or writes"| node_local_files
node_operation -->|"checks result"| node_verification
node_device_select -->|"discovers devices"| node_mobiledevice
node_host_helper -->|"uses"| node_mobiledevice
node_mobiledevice -->|"connects to"| node_airtraffic_host_fw
node_airtraffic_host_fw -->|"syncs through"| node_streaming_zip
node_streaming_zip -->|"feeds"| node_afc
node_afc -->|"routes to"| node_atc
node_atc -->|"dispatches to"| node_books
node_books -->|"creates asset"| node_asset_link
node_asset_link -->|"reaches"| node_airlock
node_airlock -->|"moves files"| node_file_manager
node_file_manager -->|"reads and writes"| node_device_storage
node_afc -->|"returns extracted data"| node_operation

click node_cli "https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py"
click node_device_select "https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py"
click node_operation "https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py"
click node_verification "https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py"
click node_local_files "https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py"
click node_device_helper "https://github.com/aldazactivator/airlift-rw/blob/main/Sources/device_helper.m"
click node_target_header "https://github.com/aldazactivator/airlift-rw/blob/main/Sources/airlift_target.h"
click node_host_helper "https://github.com/aldazactivator/airlift-rw/blob/main/Sources/airtraffic_host.m"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_device_select,node_operation,node_verification,node_local_files toneBlue
class node_device_helper,node_target_header toneAmber
class node_host_helper,node_mobiledevice,node_airtraffic_host_fw toneMint
class node_streaming_zip,node_afc,node_atc,node_books,node_asset_link,node_airlock,node_file_manager,node_device_storage toneRose
class node_user toneIndigo
```

## Components

### Mac CLI

- [CLI and modes](https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py): `airlift.py`
- [Device selection](https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py): `airlift.py`
- [Write and extract](https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py): `airlift.py`
- [Verify and cleanup](https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py): `airlift.py`
- [Payload and output](https://github.com/aldazactivator/airlift-rw/blob/main/airlift.py): `airlift.py`

### Native helpers

- [Device helper](https://github.com/aldazactivator/airlift-rw/blob/main/Sources/device_helper.m): `Sources/device_helper.m`
- [Build identifiers](https://github.com/aldazactivator/airlift-rw/blob/main/Sources/airlift_target.h): `Sources/airlift_target.h`

### AirTraffic sync

- [AirTraffic host](https://github.com/aldazactivator/airlift-rw/blob/main/Sources/airtraffic_host.m): `Sources/airtraffic_host.m`
- **MobileDevice.framework**
- **AirTrafficHost.framework**

### iOS file path

- **StreamingZip conduit**
- **AFC**
- **ATC device service**
- **Books sync client**
- **ATLegacyAssetLink**
- **ATAirlock**
- **NSFileManager**
- **iOS files**

### Other components

- **Researcher**

## Connections

- Researcher → CLI and modes: runs (evidence: `README.md`)
- CLI and modes → Device selection: resolves device (evidence: `README.md`)
- CLI and modes → Write and extract: dispatches mode (evidence: `airlift.py`)
- Write and extract → Device helper: stages and extracts (evidence: `airlift.py`)
- Write and extract → AirTraffic host: triggers sync (evidence: `airlift.py`)
- Write and extract → Payload and output: reads or writes (evidence: `README.md`)
- Write and extract → Verify and cleanup: checks result (evidence: `airlift.py`)
- Device selection → MobileDevice.framework: discovers devices (evidence: `README.md`)
- AirTraffic host → MobileDevice.framework: uses (evidence: `README.md`)
- MobileDevice.framework → AirTrafficHost.framework: connects to (evidence: `README.md`)
- AirTrafficHost.framework → StreamingZip conduit: syncs through (evidence: `README.md`)
- StreamingZip conduit → AFC: feeds (evidence: `README.md`)
- AFC → ATC device service: routes to (evidence: `README.md`)
- ATC device service → Books sync client: dispatches to (evidence: `README.md`)
- Books sync client → ATLegacyAssetLink: creates asset (evidence: `README.md`)
- ATLegacyAssetLink → ATAirlock: reaches (evidence: `README.md`)
- ATAirlock → NSFileManager: moves files (evidence: `README.md`)
- NSFileManager → iOS files: reads and writes (evidence: `README.md`)
- AFC → Write and extract: returns extracted data (evidence: `README.md`)
