A method of providing security for an electronic device comprising: monitoring, by the electronic device, a status of the electronic device for one or more threats to a security of the electronic device wherein monitoring the status of the electronic device comprises monitoring one or more of a device attestation status or a hardware tampering status; detecting, by the electronic device, the one or more threats to the security of the electronic device based on the status of the electronic device and on one or more security policies associated with the electronic device, wherein detecting the one or more threats comprises calculating a user trust score indicative of a level of certainty that user's identity is known and verified; and self-enforcing, by the electronic device, the one or more security policies by implementing one or more targeted security actions, as indicated by the one or more security policies, to selectively alter the status of the electronic device based on the detected one or more threats to the security of the electronic device; and wherein the detecting step comprises: calculating, by a device trust management service (DTMS) local to the electronic device, a plurality of trust scores based on the status of the electronic device and on the one or more security policies associated with the electronic device wherein the plurality of trust scores comprise a device trust score and the user trust score; detecting, by the DTMS, the one or more threats to the security of the electronic device based on the plurality of trust scores and the one or more security policies; and selecting, by the DTMS, the one or more targeted security actions based on the detected one or more threats to the security of the electronic device. monitoring, by the electronic device, a status of the electronic device for one or more threats to a security of the electronic device wherein monitoring the status of the electronic device comprises monitoring one or more of a device attestation status or a hardware tampering status; detecting, by the electronic device, the one or more threats to the security of the electronic device based on the status of the electronic device and on one or more security policies associated with the electronic device, wherein detecting the one or more threats comprises calculating a user trust score indicative of a level of certainty that user's identity is known and verified; and self-enforcing, by the electronic device, the one or more security policies by implementing one or more targeted security actions, as indicated by the one or more security policies, to selectively alter the status of the electronic device based on the detected one or more threats to the security of the electronic device; and wherein the detecting step comprises: calculating, by a device trust management service (DTMS) local to the electronic device, a plurality of trust scores based on the status of the electronic device and on the one or more security policies associated with the electronic device wherein the plurality of trust scores comprise a device trust score and the user trust score; detecting, by the DTMS, the one or more threats to the security of the electronic device based on the plurality of trust scores and the one or more security policies; and selecting, by the DTMS, the one or more targeted security actions based on the detected one or more threats to the security of the electronic device. calculating, by a device trust management service (DTMS) local to the electronic device, a plurality of trust scores based on the status of the electronic device and on the one or more security policies associated with the electronic device wherein the plurality of trust scores comprise a device trust score and the user trust score; detecting, by the DTMS, the one or more threats to the security of the electronic device based on the plurality of trust scores and the one or more security policies; and selecting, by the DTMS, the one or more targeted security actions based on the detected one or more threats to the security of the electronic device.