Copyright (c) Intel Corporation, 2007 - 2021 All Rights Reserved.

Intel(R) Active Management Technology (Intel(R) AMT):
A short description of the Access Monitor sample for the usage of developers.

Access Monitor sample application:
------------------------------
This sample application demonstrates how to use the Security Access-Monitor 
feature in an Intel(R) AMT managed machine.

How to run the sample:
----------------------
1. Open the "AccessMonitor.vcxproj" in Microsoft Visual Studio* and build the
   project. An output file "AccessMonitor.exe" should be created.
2. Make sure that the Intel(R) AMT device has been activated on the target
   machine.
3. Use the generated executable as described in the command usage (type the 
   command to get the usage instructions).
For certificates/keys related flows:
4. Make sure CertGen directory is in the same folder as "AccessMonitor.exe" file
5. Download OpenSSL and place it in CertGen directory. 
6. Generate Audit-Log Certificate by running first 
   CertGen\SecScripts\checkca.bat and later CertGen\SecScripts\AuditCertGen.bat 
   and follow the instructions on the screen. It is essential to run 
   checkca.bat  first as it generates the root certificate, which is needed for  
   successful generation of the Audit-Log certificate (using AuditCertGen.bat).

Notes:
------
1. In order to add an auditor (using the Add Auditor flow) it is essential to 
   use credentials with primary administration privileges.
   In order to delete the added auditor (using the Cleanup Sample Stuff flow) 
   it is essential to use credentials with administrator privileges.
   All other flows require auditing privileges.
2. All flows, except "Enable Auditing" and "Cleanup Sample Stuff", assume that 
   Auditing is already enabled.
3. The flows "Manipulate Audit-Log" and "API test", check, among other things, the 
   validity of the Certificates chain; in order to make those flows work 
   successfully, make sure you have installed the root certificate.
4. The flows "Manipulate Audit-Log" and "API test", verify, among other things, the
   Audit-Log Signature: for platforms which support SHA2 signing (Intel(R) 
   AMT 6.0 and higher), the sample uses SHA256 algorithm, in order to change the
   signing mechanism to SHA1 or SHA384, change the 
   SHA_FOR_SHA2_SUPPORTING_VERSION const accordingly and recompile.
5. The "Add Auditor" flow is not supported when using Kerberos.
6. The "Cleanup Sample Stuff" flow disables the auditing even if it was enabled 
   prior to sample's execution.

-------------------------------------------------------------------
* Other names and brands may be claimed as the property of others.
