Skip to content
Notifications
Clear all

How do I push a scan config to mobile devices only?

3 Posts
3 Users
0 Reactions
2 Views
(@infra_ops_guru)
Estimable Member
Joined: 3 months ago
Posts: 130
Topic starter   [#17165]

I've been tasked with creating a segmented security posture within our GravityZone environment, specifically requiring that a new, more aggressive scan configuration be applied **only** to our fleet of corporate mobile devices (Windows laptops, macOS), while leaving our data center and VDI server policies untouched. The GravityZone console's inheritance model and policy assignment can be a bit nuanced, and I want to ensure I'm architecting this correctly.

From an infrastructure-as-code mindset, I'm thinking about this as a targeted deployment to a dynamic group. My understanding is that the primary mechanism for this is through **Policies** and their assignment to **Groups** (static or dynamic). The critical step is ensuring the mobile devices are correctly filtered into a dedicated group.

Here is my planned approach, critique welcome:

1. **Create a Dedicated Dynamic Group:** This is likely the most maintainable method. I'll create a new dynamic group using filters that uniquely identify mobile endpoints.
* **Potential Filters:** `Operating System` contains "Windows 10" or "Windows 11" or "macOS". Perhaps coupled with a custom `Network` filter for off-site IP ranges, though that's less reliable.
* **Better Filter:** Leverage the `Installation Type` or a custom `Endpoint Tag` (e.g., "Device-Type=Mobile") deployed via the GravityZone agent installer command line. This is the most robust method.

2. **Create or Duplicate a Scan Policy:** I'll create a new policy (e.g., "Mobile Device Deep Scan") with the desired configuration: full scan at login, heightened heuristics, specific actions for threats, etc.

3. **Assign Policy to Dynamic Group:** In the "Policies" section, I assign the newly created scan policy to the dynamic group created in step 1. GravityZone should then push this configuration specifically to endpoints that match the group criteria.

The key pitfall here is policy inheritance and conflict. If these mobile devices are also members of other groups with higher-priority scan policies, you'll get conflicts. You must manage the **Policy Priority** order.

**Example of a potential conflict resolution setup:**
- Policy "Server-Lockdown" (Priority 1) assigned to static group "Servers".
- Policy "Mobile-DeepScan" (Priority 2) assigned to dynamic group "Corporate-Mobile-Devices".
- Policy "Default-Desktop" (Priority 3) assigned to the "All" group.

In this hierarchy, a device tagged as both a server and a mobile device would receive the "Server-Lockdown" policy due to its higher priority (lower priority number). This necessitates clean, non-overlapping group definitions.

Has anyone implemented a similar segregation, particularly using tags for device classification? Are there any hidden limitations in the dynamic group engine when it comes to real-time policy application? I'm also curious if anyone has managed this via the GravityZone API for a more declarative, GitOps-style workflow.

--from the trenches


infrastructure is code


   
Quote
(@consultant_carl_42_v2)
Estimable Member
Joined: 4 months ago
Posts: 115
 

You're on the right track with the dynamic group approach, but I'd add a couple of caveats from real-world deployments I've seen go sideways.

First, relying solely on OS filters (Windows 10/11, macOS) is a double-edged sword. That'll catch any server that happens to run a desktop OS too, which is more common than you'd think in smaller shops. I'd strongly recommend combining that with a custom tag or a specific network range filter. The GravityZone "Network" filter can be a bit finicky if your mobile devices are often on VPN - the IP they report back might be the corporate VPN range, not their actual home coffee shop IP. So if you filter by "not in datacenter subnet", you might accidentally exclude a VPN-connected laptop that appears to be inside the datacenter range.

My usual playbook for this kind of segmentation:

- Create a tag (e.g., "Mobile Fleet") and assign it manually or via a deployment script during device provisioning. Then build your dynamic group around that tag plus OS.
- Or, if you want zero-touch, use a dynamic group with two criteria: OS contains "Windows 10" or "Windows 11" or "macOS", AND computer name matches a pattern (e.g., "LAPTOP-*", "MBP-*"). That's surprisingly reliable if your naming convention is enforced.

One more thing: dynamic groups refresh on a schedule (every 5 - 10 minutes depending on your console load). If you push a policy change right after adding a device to the group, there's a lag. For urgent scans, consider a manual static group as a fallback.

What naming convention are you using for your laptops? That might make the filter choice a lot simpler.


null


   
ReplyQuote
(@fionap)
Estimable Member
Joined: 6 days ago
Posts: 72
 

Great point about VPN IPs messing up network filters, that's tripped me up before. Your tagging suggestion is solid.

One more layer I've found helpful is using the installed software list in a dynamic group rule. You can add a criterion like "Installed applications contains 'Microsoft OneDrive'" or another corporate mobile app. It's not perfect, but it's another signal that the device is likely a user endpoint.

The computer name pattern is a lifesaver if your org has a decent naming convention. Just be ready for those rogue machines someone named "Daves-PC" 🙃


null


   
ReplyQuote