<!--
{
  "documentType" : "article",
  "framework" : "Security",
  "identifier" : "/documentation/Security/guest-attribute-dictionary-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Guest Attribute Dictionary Keys"
}
-->

# Guest Attribute Dictionary Keys

Specify attributes of guest code.

## Discussion

Use these keys in the dictionary you supply as the `attributes` parameter to the [`SecHostCreateGuest`](/documentation/Security/SecHostCreateGuest), [`SecHostSetGuestStatus`](/documentation/Security/SecHostSetGuestStatus), and [`SecCodeCopyGuestWithAttributes(_:_:_:_:)`](/documentation/Security/SecCodeCopyGuestWithAttributes(_:_:_:_:)) functions.

## Topics

### Constants

[`let kSecGuestAttributeArchitecture: CFString`](/documentation/Security/kSecGuestAttributeArchitecture)

A key whose value is a number representing the CPU type under which the guest code is designed to run.

[`let kSecGuestAttributeAudit: CFString`](/documentation/Security/kSecGuestAttributeAudit)

[`let kSecGuestAttributeCanonical: CFString`](/documentation/Security/kSecGuestAttributeCanonical)

A key whose value is the guest code object for that guest.

[`let kSecGuestAttributeDynamicCode: CFString`](/documentation/Security/kSecGuestAttributeDynamicCode)

[`let kSecGuestAttributeDynamicCodeInfoPlist: CFString`](/documentation/Security/kSecGuestAttributeDynamicCodeInfoPlist)

[`let kSecGuestAttributeHash: CFString`](/documentation/Security/kSecGuestAttributeHash)

A key whose value is a data object containing the SHA-1 hash of the code directory.

[`let kSecGuestAttributeMachPort: CFString`](/documentation/Security/kSecGuestAttributeMachPort)

Not implemented.

[`let kSecGuestAttributePid: CFString`](/documentation/Security/kSecGuestAttributePid)

A key whose value is an integer of type `pid_t` representing a process ID (PID), usually of the kernel’s guest.

[`let kSecGuestAttributeSubarchitecture: CFString`](/documentation/Security/kSecGuestAttributeSubarchitecture)

A key whose value is a number representing the CPU subtype under which the guest code is designed to run.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)