|
| 1 | +--- |
| 2 | +sidebar_position: 3 |
| 3 | +--- |
| 4 | + |
| 5 | +# Profiles: Network Extension |
| 6 | + |
| 7 | +Santa includes an optional network [system |
| 8 | +extension](https://developer.apple.com/documentation/systemextensions) that can |
| 9 | +monitor and control network traffic. It provides two capabilities: a content |
| 10 | +filter for monitoring network flows and a DNS proxy for intercepting DNS queries. |
| 11 | +:::info |
| 12 | + |
| 13 | +The network extension requires a [Workshop](https://northpole.dev/) subscription |
| 14 | +and will not activate without one. |
| 15 | + |
| 16 | +::: |
| 17 | + |
| 18 | +Like the endpoint security system extension, loading the network extension |
| 19 | +requires approval. For organizations deploying Santa, this step can be automated |
| 20 | +by sending an appropriate profile via an MDM. |
| 21 | + |
| 22 | +Enabling the network extension requires two separate payloads: a |
| 23 | +[Web Content Filter](https://developer.apple.com/documentation/devicemanagement/webcontentfilter) |
| 24 | +payload for the content filter provider and a |
| 25 | +[DNS Proxy](https://developer.apple.com/documentation/devicemanagement/dnsproxy) |
| 26 | +payload for the DNS proxy provider. |
| 27 | + |
| 28 | +:::warning |
| 29 | + |
| 30 | +You must also update your [system extension profile](profile-system-extension.md) |
| 31 | +to allow the network extension. Without this, macOS will not permit the extension |
| 32 | +to load without manual user intervention. |
| 33 | + |
| 34 | +::: |
| 35 | + |
| 36 | +For installation and verification steps, see the |
| 37 | +[Network Extension](network-extension.md) page. |
| 38 | + |
| 39 | +## Generating the profile |
| 40 | + |
| 41 | +The process for adding these payloads to your machines will differ depending on |
| 42 | +which MDM you are using. Many MDMs have specific support for these kinds of |
| 43 | +profiles. In that case, you will need the following information: |
| 44 | + |
| 45 | +### Content Filter |
| 46 | + |
| 47 | +- Filter Type: `Plugin` |
| 48 | +- Plugin Bundle ID: `com.northpolesec.santa` |
| 49 | +- Filter Data Provider Bundle Identifier: `com.northpolesec.santa.netd` |
| 50 | +- Filter Data Provider Designated Requirement: `identifier "com.northpolesec.santa.netd" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.OU] = "ZMCG7MLDV9"` |
| 51 | +- Filter Sockets: `true` |
| 52 | +- Filter Packets: `false` |
| 53 | + |
| 54 | +### DNS Proxy |
| 55 | + |
| 56 | +- App Bundle Identifier: `com.northpolesec.santa` |
| 57 | +- Provider Bundle Identifier: `com.northpolesec.santa.netd` |
| 58 | + |
| 59 | +## Example Profile |
| 60 | + |
| 61 | +If your MDM doesn't have an option to add Content Filter or DNS Proxy profiles |
| 62 | +but does have the option for deploying custom profiles, you can use the following |
| 63 | +example as a template. |
| 64 | + |
| 65 | +```xml showLineNumbers |
| 66 | +<?xml version="1.0" encoding="UTF-8"?> |
| 67 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 68 | +<plist version="1.0"> |
| 69 | +<dict> |
| 70 | + <key>PayloadContent</key> |
| 71 | + <array> |
| 72 | + <dict> |
| 73 | + <key>PayloadType</key> |
| 74 | + <string>com.apple.webcontent-filter</string> |
| 75 | + <key>PayloadIdentifier</key> |
| 76 | + <string>com.northpolesec.santa.content-filter</string> |
| 77 | + <key>PayloadUUID</key> |
| 78 | + <string>A1B2C3D4-5555-6666-7777-888899990000</string> |
| 79 | + <key>PayloadVersion</key> |
| 80 | + <integer>1</integer> |
| 81 | + <key>PayloadDisplayName</key> |
| 82 | + <string>Santa Content Filter</string> |
| 83 | + <key>UserDefinedName</key> |
| 84 | + <string>Santa Content Filter</string> |
| 85 | + <key>FilterType</key> |
| 86 | + <string>Plugin</string> |
| 87 | + <key>PluginBundleID</key> |
| 88 | + <string>com.northpolesec.santa</string> |
| 89 | + <key>FilterDataProviderBundleIdentifier</key> |
| 90 | + <string>com.northpolesec.santa.netd</string> |
| 91 | + <key>FilterDataProviderDesignatedRequirement</key> |
| 92 | + <string>identifier "com.northpolesec.santa.netd" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.OU] = "ZMCG7MLDV9"</string> |
| 93 | + <key>FilterSockets</key> |
| 94 | + <true/> |
| 95 | + <key>FilterPackets</key> |
| 96 | + <false/> |
| 97 | + </dict> |
| 98 | + <dict> |
| 99 | + <key>PayloadType</key> |
| 100 | + <string>com.apple.dnsProxy.managed</string> |
| 101 | + <key>PayloadIdentifier</key> |
| 102 | + <string>com.northpolesec.santa.dns-proxy</string> |
| 103 | + <key>PayloadUUID</key> |
| 104 | + <string>A1B2C3D4-1111-2222-3333-444455556666</string> |
| 105 | + <key>PayloadVersion</key> |
| 106 | + <integer>1</integer> |
| 107 | + <key>PayloadDisplayName</key> |
| 108 | + <string>Santa DNS Proxy</string> |
| 109 | + <key>AppBundleIdentifier</key> |
| 110 | + <string>com.northpolesec.santa</string> |
| 111 | + <key>ProviderBundleIdentifier</key> |
| 112 | + <string>com.northpolesec.santa.netd</string> |
| 113 | + </dict> |
| 114 | + </array> |
| 115 | + <key>PayloadDisplayName</key> |
| 116 | + <string>Santa Network Extension</string> |
| 117 | + <key>PayloadIdentifier</key> |
| 118 | + <string>com.northpolesec.santa.netd.profile</string> |
| 119 | + <key>PayloadUUID</key> |
| 120 | + <string>A1B2C3D4-AAAA-BBBB-CCCC-DDDDEEEEFFFF</string> |
| 121 | + <key>PayloadType</key> |
| 122 | + <string>Configuration</string> |
| 123 | + <key>PayloadVersion</key> |
| 124 | + <integer>1</integer> |
| 125 | + <key>PayloadScope</key> |
| 126 | + <string>System</string> |
| 127 | + <key>PayloadDescription</key> |
| 128 | + <string>Enables the Santa network content filter and DNS proxy extensions.</string> |
| 129 | +</dict> |
| 130 | +</plist> |
| 131 | +``` |
0 commit comments