This repository details the proposal to add a new API that makes the web even more ass than it already is:
const attestation = await navigator.getEnvironmentIntegrity("...");
The explainer goes gives a high level overview of the shit we're trying to pull.
The spec currently describes how this crap is being prototyped in Chromium.