# Deploy Aikido Device Protection with Iru / Kandji

Use Iru / Kandji to roll out Aikido Device Protection across your organization and protect managed macOS devices with a consistent setup.

## Installation

{% stepper %}
{% step %}
**Get your Aikido Device Protection Token and Package**

Open [Aikido Device Protection](https://app.aikido.dev/endpoint-protection/devices) and click **Connect Device**

Download the Aikido Device Protection `.pkg` and copy your device protection token.
{% endstep %}

{% step %}
**Upload the Aikido Device Protection configuration profile to Iru**

1. [Download the Aikido `.mobileconfig` file](https://raw.githubusercontent.com/AikidoSec/safechain-internals/refs/heads/main/docs/aikido-endpoint.mobileconfig)
2. In Iru, go to the Library.
3. Upload the `.mobileconfig` file as a **Custom Profile**.
4. Assign it to the same Blueprint as the app.

This profile allows the Aikido Device Protection system extension to load silently, enables the network content filter, and stops users from disabling background services in System Settings → Login Items.

<figure><img src="/files/DmG7xnDI2IwmC3Q4OAqF" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/a7Jo98HRpL8SyUT74Lv8" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Upload the Aikido Device Protection installer**

1. In Iru, add the Aikido Device Protection `.pkg` as a custom app.
2. Add this **preinstall** script

```bash
#!/bin/zsh
# Don't forget to replace the AIK_SAFE_CHAIN_TOKEN you created in the first step.
echo "AIK_SAFE_CHAIN_TOKEN" > /tmp/aikido_endpoint_token.txt
```

3. Assign the app to the same Blueprint.

<figure><img src="/files/IZOTSvJ8IGptYRmB6MUD" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Deploy in the right order**

{% hint style="warning" %}
Order matters. The MDM profile must land on the device before or at the same time as the pkg. If the pkg installs first the user will be asked for additional permissions.
{% endhint %}

1. Deploy the **Aikido Device Protection** configuration profile
2. Deploy the **Aikido Device Protection app**
3. Reboot a test device if needed
   {% endstep %}

{% step %}
**Verify the deployment**

On a test device, confirm:

1. The system extension is activated:

   ```bash
   systemextensionsctl list | grep aikido
   ```

   Expect to see the extension marked `[activated enabled]`.
2. Open **System Settings** → **General** → **Login Items & Extensions** and confirm the Aikido Device Protection entries cannot be toggled off.
   {% endstep %}
   {% endstepper %}

## Troubleshooting

| Problem                                                         | Fix                                                                                                                      |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Users still see the popup                                       | Make sure the Aikido Device Protection configuration profile is assigned correctly and deployed before the app           |
| Extension is waiting for user approval                          | Confirm the Aikido Device Protection configuration profile is installed on the device and reboot                         |
| Duplicate extension entries appear                              | Reboot the device                                                                                                        |
| Proxy still is not approved silently                            | Re-upload the Aikido Device Protection configuration profile and confirm it is assigned to the same Blueprint as the app |
| Users can still disable Aikido Device Protection in Login Items | Re-upload the Aikido Device Protection configuration profile and reboot the device                                       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.aikido.dev/aikido-device-protection/deploying-aikido-endpoint/deploy-aikido-endpoint-with-iru-kandji.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
