authcha learn

Learn / Identity and security

Posture checks and MDM compliance

Module 5 of 5 · 35 minutes

By the end you can

  • Explain how posture and MDM compliance each feed an access decision
  • Roll out a posture policy safely: monitor first, then enforce
  • Enroll endpoints and read the compliance reports
  • Describe how MDM matching works and why a stale answer is never "compliant"

Two sources of "is this device healthy?"

Authcha can ask two different questions before it lets a device have full access.

PostureMDM compliance
Who knowsA small agent on the deviceYour mobile device management system (Intune or Jamf Pro)
EditionEnterpriseEnterprise
Applies to802.1X logins onlyAnything an access rule can match, matched by MAC or certificate
ResultThe device lands on a remediation networkAn access rule admits or refuses it

Both use the same idea: a device that is not healthy still connects, and goes to a restricted place or is refused by a rule you write.

Endpoint posture

An agent on Windows and Linux reports to Authcha. Authcha compares the report with the policy for the device's class and marks it compliant or non-compliant. At 802.1X login it returns normal access, or the remediation network's VLAN, filter and session limit. If the answer changes during a session, Authcha disconnects the session so the switch re-authenticates it at once, which needs a CoA secret on the device. Posture never affects MAB or device-administration logins.

StateNetwork access
CompliantNormal
Non-compliant (fails or could not run a required check)Remediation network
Not reporting (missed its check-ins)Remediation, or normal if the policy allows
Awaiting first reportNormal during the grace period, then remediation

"Couldn't verify" counts as failing.

What is checked

Built-in: antivirus running and current, firewall enabled, disk encryption (BitLocker on Windows, LUKS on Linux) and OS updates current. Add your own registry rules (Windows) and process rules (Windows and Linux). The agent sends only pass or fail, never file names or process lists.

Roll it out safely

The safe order is monitor first, then enforce.

  1. Create a remediation network. Give the quarantine class (or one you make) a restricted VLAN under Device classes.
  2. Create a policy in monitor mode. Posture → Policies, choose the device class, select the required checks. A new policy starts in Monitor, where nobody is restricted and no disconnects are sent.
  3. Enroll endpoints under Posture → Endpoints → Enroll devices.
  4. Watch the Overview, which shows who would be restricted. Fix the common failures or adjust the policy until it looks right.
  5. Switch to Enforce.

Enroll devices

Every device runs the agent and is enrolled under the 802.1X username it signs in with. Enroll devices gives ready-to-copy commands for:

  • one device: a one-time secret for a username, valid 1 to 90 days
  • several users: a list of usernames gives one secret each, as CSV
  • a fleet token: for Intune, Group Policy, SCCM or Ansible, valid up to 90 days and optionally limited to a number of devices. A fleet-enrolled device's posture counts only for sessions from its own network adapters, so a token cannot vouch for someone else

The console serves the agent itself, with a one-line install for Debian or Ubuntu and for Windows (PowerShell as Administrator), checking the file's SHA-256. The endpoint must trust the console's certificate, so use a public one, or give private-CA clients the CA certificate. When you upgrade Authcha, enrolled agents update themselves.

Policies, reports and alerts

Each class has one policy, and a class with none uses default's. Key settings: Mode (Monitor or Enforce), the remediation network, grace for newly enrolled devices, and when a device stops reporting (restrict it, which is recommended, or keep allowing it). Overview shows the compliance rate, a 30-day trend, the checks failing most and per-class results. Alerts can warn when compliance falls below a threshold (default 90%) or when many devices stop reporting at once, by email or an HTTPS webhook. Revoke a device's enrollment when you retire or reimage it. Revoking is always allowed.

MDM compliance

Authcha can ask Microsoft Intune (through Microsoft Graph) or Jamf Pro whether a device is compliant, and access rules decide on the answer.

  • Safe when the MDM is not. Authcha keeps its own copy of each device's state and decides from the copy. If the MDM is slow or down, sign-ins are not slowed. Once the copy is older than the maximum age it counts as unknown, never as compliant.
  • Secrets stay secret. The client secret is stored encrypted and never shown again.

How a device is matched

Network requests carry the MAC address, so that is what Authcha matches on. The MDM must know the device's Wi-Fi or Ethernet MAC. A device using a private Wi-Fi address will not match, so turn that off in the managed Wi-Fi profile.

For EAP-TLS device certificates, Authcha can match from the certificate instead, which is more reliable: the certificate carries the device's serial number or Azure AD device ID (in the common name or a DNS name), and it is compared with the MDM field. A certificate naming a device the MDM does not know counts as Not managed.

StateMeaning
CompliantThe MDM says so
Non-compliantThe MDM says so
UnknownNo verdict, data too old, connector off, or no usable MAC
Not managedNo connected MDM lists it

If a MAC is in more than one MDM, the worst answer counts. Intune's grace period is shown as unknown, because a network rule saying "compliant" should not admit a device Intune is already warning about.

React when compliance changes

A connected device keeps its network until it re-authenticates, which can be hours. Switch on Re-authorize sessions when a device's compliance changes on a connector (off by default) and Authcha sends a Disconnect-Request when a sync finds a change, so the device comes back through your rules. Limits protect you: the first sync never disconnects anyone, at most 25 sessions per sync (default) and 200 per hour, and a device at most once every 30 minutes.

LabHands-on

Steps 1 and 2 on the demo as demo-admin (password Authcha-Demo-2026). The rest need an Enterprise license and your own devices.

  1. Open Posture on the demo and look at the Overview, policies and endpoints.
  2. Open MDM Compliance and see how connectors are listed.
  3. Give the quarantine class a VLAN, create a Monitor policy for one class, and enroll one test laptop.
  4. Make the laptop fail a check on purpose (turn its firewall off). Watch the Overview show it would be restricted.
  5. Switch the policy to Enforce and watch the device get disconnected and re-authenticated into the remediation VLAN. Fix the laptop and watch it return.
  6. Write an access rule with MDM compliance Non-compliant, Not in any MDM or Unknown set to Reject. Test it with Test a session.

Check yourselfQuiz

1What should you do before switching a posture policy to Enforce?
2A required check could not run on a device. How is the device treated?
3The MDM's data is older than the maximum age. What is the state?
4Why is matching an EAP-TLS device by serial number or Azure AD device ID more reliable than by MAC?
5When does Authcha disconnect sessions after an MDM sync?

Cheat sheetKeep this

  • Posture: agent on Windows and Linux, 802.1X only, Enterprise. States: Compliant, Non-compliant, Not reporting, Awaiting first report.
  • Roll-out: remediation VLAN → Monitor policy → enroll → watch Overview → Enforce.
  • Agent sends only pass/fail. Fleet token limited to the device's own adapters.
  • MDM: Intune and Jamf Pro, matched by MAC or by certificate serial or Azure AD device ID. Stale = unknown. Worst answer wins.
  • Re-authorize on change: off by default, first sync never disconnects, limited per sync, hour and device.
  • Posture has the last word over an access rule that admits. Add a Reject rule to refuse instead.
  • Read more: Endpoint posture, MDM compliance.