Knowledge Base
Browse Docs
  • Introduction
    1. DefensX
    2. DNS & Web Filtering
    3. Zero Trust Files
    4. Zero Trust Credentials
    5. ADWare Protection
    6. Remote Browser Isolation
    7. Secure Browser Extension
    8. Secure Mobile Browser
    9. System & Browser Requirements
  • Management
    1. Role-Based Access Control
    2. Message Templates
    3. AI Protections
    4. LLM Prompt Logger
  • Deployment
    1. Deployment via RMM
    2. Operating System Agent
    3. Deployment via GPO
    4. Deployment via Intune
    5. VDI and Terminal Servers
    6. Windows Manual Deployment
    7. Mac MDM Deployment
    8. Mac Manual Deployment
    9. Network Deployment
    10. Secure Mobile Browser
    11. Bypass Option
    12. SaaS Restrictions
    13. Bookmark Manager
    14. Remote Uninstall
    15. Bulk Create Customers
  • Integrations
    1. Azure AD
    2. Identity Providers
    3. SIEM
  • Nexi AI
    1. Nexi AI
    2. Nexi AI for MSPs
    3. Nexi AI for End Users
    4. Bookmark Prompts and Schedule Reports in Nexi AI
  • Policy Management
    1. Configuring Policies
    2. Consents
    3. PII Protection
    4. Time-Based Policy
    5. Malvertising Protection
    6. Login Guard
  • Secure Access (ZTNA)
    1. Introduction to ZTNA
    2. Configuration
  • Auto Pilot
    1. Auto Pilot
  • Training Videos
    1. Onboarding Videos
    2. Attack Scenarios
    3. MSP Admin Training Series
  • Questions & Answers
    1. Licensing
    2. Incognito Mode
    3. Onboarding
    4. Active Directory
    5. Group Synchronization
    6. Agent
    7. Conflicting Softwares
    8. Reporting
    9. Virtual Desktops
    10. Using the Backend
    11. DNS & Web Filtering
    12. Managing AI Tool Access
  • MSP Automation
    1. Overview
    2. External Notifications
    3. Integrations
    4. Partner API
ONLINE DOCUMENTATION

Deployment via NinjaOne MDM

In this document
  • Step 1: Download Required Files
  • Step 2: Add the Installer Script
  • Step 3: Create the CA Certificate Configuration Profile
  • Step 4: Create the DNS Proxy Extension Configuration Profile
  • Step 5: Create the Customer-Specific Configuration Profile
  • Uninstalling DefensX

This guide covers deploying the DefensX Agent to macOS devices managed by NinjaOne. The process uses shared scripts applicable to all customers, plus separate configuration profiles for the CA certificate, DNS Proxy extension, and customer-specific deployment settings.

Tip
Steps 2–4 are customer-agnostic and only need to be set up once. To deploy to a new customer or deployment, only repeat Step 5 with the corresponding mobileconfig file. For new devices under an existing customer, simply update the policy assignments in Step 5.

Step 1: Download Required Files

Log in to the DefensX backend and navigate to Policies & Groups. Under the Deployments section, locate your deployment and click the RMM button.

rmm

In the RMM dialog, click Mac MDM and download the following files:

File How to Download

DefensX-installer.sh

Click Download Installer Script

DefensX-CA.mobileconfig

Click Download DefensX-CA Certificate → As mobileconfig

DefensX-DNSProxy-Extension.mobileconfig

Click DNS Proxy Extension mobileconfig

DefensX-[deployment].mobileconfig

Click Download mobileconfig

DefensX-uninstaller.sh

Click Download Uninstaller Script

Keep all files available, they are needed in the steps below.

Step 2: Add the Installer Script

  • Navigate to Administration → Library → Automation and click + Add automation, then select New Script.

    add automation
  • Enter DefensX Mac Installer in the Name field.

  • Set Language to ShellScript.

  • Set Operating System to Mac.

  • Set Architecture to x64 (64 bit). ARM64 devices are also supported despite the lack of an explicit ARM64 option.

  • Set Run as to System.

  • Open DefensX-installer.sh in a text editor and paste its contents into the script field.

    script content
  • Click Save.

Step 3: Create the CA Certificate Configuration Profile

This profile deploys the DefensX Root CA certificate to managed devices.

  • Navigate to Administration → Policies → Agent policies and click the policy associated with the target customer.

    agent policy
  • Click MDM → Custom payload, then click + Add payload.

  • Enter DefensX CA Certificate in the Name field.

  • Click Upload file and select DefensX-CA.mobileconfig.

  • Click Add to continue.

Step 4: Create the DNS Proxy Extension Configuration Profile

This profile grants the DefensX DNS Proxy Network Extension the permissions it needs to operate without prompting users for approval. It enables DNS policy enforcement without modifying system-level DNS settings.

  • Still in the MDM → Custom payload section, click + Add payload.

    add payload
  • Enter DefensX DNSProxy Extension in the Name field.

  • Click Upload file and select DefensX-DNSProxy-Extension.mobileconfig.

  • Click Add to continue.

Step 5: Create the Customer-Specific Configuration Profile

This profile delivers the unique deployment key and browser settings for a specific customer. Each DefensX deployment has its own mobileconfig file containing the relevant Deployment Key.

  • Still in the MDM → Custom payload section, click + Add payload.

  • Enter a name that identifies the customer and deployment in the Name field, e.g. DefensX [Customer Name] Default Settings.

  • Click Upload file and select the DefensX-[deployment].mobileconfig file downloaded in Step 1.

  • Click Add to continue.

At this point, you should have all three profiles configured as shown below.

profiles list

Before clicking Save, attach the installer script to the policy as a scheduled automation:

  • Click Scheduled Automations → Add a Scheduled Automation, then click Add next to Automations.

    scheduled automation
  • Search for DefensX and select DefensX Mac Installer created in Step 2.

    defensx installer script in automation
  • Set Run as to System and click Apply.

  • Enter DefensX Installer in the Name field.

  • Select a scheduling frequency, e.g. Every 5 minutes, then click Add.

    scheduled
  • Click Save to complete the policy configuration. The agent will be installed based on the configured schedule.

Tip
It is safe to use short intervals for the installer script, if the DefensX Agent is already installed, the script exits immediately without taking any action. If the installer has not yet run but the configuration profiles are already received, users may see a DefensX login screen in their browser; once the agent installs, the extension authenticates silently without any user interaction. For more granular control over script execution, NinjaOne also supports Conditions and Compound Conditions.

Uninstalling DefensX

First, add the uninstaller script to the automation library:

  • Navigate to Administration → Library → Automation and click + Add automation, then select New Script.

  • Enter DefensX Mac Uninstaller in the Name field.

  • Set Language to ShellScript, Operating System to Mac, Architecture to x64 (64 bit), and Run as to System.

  • Open DefensX-uninstaller.sh in a text editor and paste its contents into the script field.

  • Click Save.

Then, update the policy to remove the existing assignments and add the uninstall automation:

  • Navigate to Administration → Policies → Agent policies and click the policy associated with the target customer.

  • Click MDM → Custom payload and remove all three DefensX profiles (CA Certificate, DNS Proxy Extension, and the customer-specific profile).

  • Click Scheduled Automations and delete the DefensX Installer entry.

  • Click Add a Scheduled Automation, then click Add and search for DefensX Mac Uninstaller.

  • Enter DefensX Uninstaller in the Name field.

  • Select a scheduling frequency, e.g. Every 5 minutes, then click Add.

  • Click Save to complete the uninstall policy configuration.

www.defensx.com
Secure Industries, Inc 101 Avenue of The Americas, Floor 9 New York, NY 10013