Skip to main content

IsAuthentic

Checks whether or not all binaries that are expected to be signed, are signed (i.e. the product is authentic). Details are provided to determine which binaries are checked and their signature status.

Syntax​

Method ID​

#define WAAPI_MID_COMMON_IS_AUTHENTIC 108

JSON Input Structure​

{
"input": {
"method": 108,
"signature": number,
"instance_id": string,
"hash_binary": boolean
}
}

Input Properties​

ParameterTypeDescription
instance_idstring(optional) (macOS only) (macOS only) The current instance id of the product
hash_binaryboolean(optional) If true, this method will generate the hash of the binary by SHA-256 (default is false).

JSON Output Structure​

{
"result": {
"method": 108,
"code": number,
"timing": number,
"timestamp": string,
"authentic": boolean,
"details": [
{
"file": string,
"status": string,
"signing_code": number,
"sha256": string,
"certificate_info": [
{
"issuer": string,
"subject": string,
"valid_from": number,
"valid_to": number,
"serial_number": string,
"thumbprint": string
},
...
]
},
...
]
}
}

Output Properties​

PropertyTypeDescription
result.methodnumberThe method ID that generated this result.
result.codenumberThe result code. See Result Codes.
result.timingnumberThe measured time for the method call in milliseconds.
result.timestampstringThe timestamp in seconds of when the call was made.
result.authenticbooleanWill return true if all files expected to be signed are signed.
result.detailsarray<object>An array of information about the files being checked for authenticity.
result.details.filestringFile which is expected to be signed.
result.details.statusstringThe status reflects the value of the signing code. Getting the details info via the signing code is recommended instead of this field.
result.details.signing_codenumberThe signing codes are different based on the platform.
macOS: it reports the status exactly with the result code of the code signing service. Details: https://developer.apple.com/documentation/security/1574088-code_signing_services_result_cod
Windows:
it returns codes from WinVerifyTrustEx function Details: https://learn.microsoft.com/en-us/windows/win32/api/wintrust/nf-wintrust-winverifytrustex.
result.details.sha256string(optional) The hash string of the binary.
result.details.certificate_infoarray<object>(optional) (Windows and macOS only) List of certificates of the file.
result.details.certificate_info.issuerstring(optional) (Windows and macOS only) Issuer
result.details.certificate_info.subjectstring(optional) (Windows and macOS only) Subject
result.details.certificate_info.valid_fromnumber(optional) (Windows and macOS only) Valid from
result.details.certificate_info.valid_tonumber(optional) (Windows and macOS only) Valid to
result.details.certificate_info.serial_numberstring(optional) (Windows and macOS only) Serial number
result.details.certificate_info.thumbprintstring(optional) (Windows only) Thumbprint

Result Codes​

CodeNameDescription
0WAAPI_OKThe operation completed successfully.
note

Other codes may be returned. See the full Result Codes reference for the complete list.

Remarks​

Error Handling​

The results of this function are determined by the error code returned by the call. If successful, WAAPI_OK or a special success code will be returned. Always check both the function return value and the result.code field in the output JSON.

Examples​

Examples will be added here demonstrating the usage of this method.

See Also​


Last updated: 2026-10-01