Skip to content

checks

Functions:

check_amfi_status

check_amfi_status() -> bool

Function to check the status of AMFI on current device AMFI := Apple Mobile File Integrity UNIX command: nvram -p | grep amfi | wc -l

Returns:

  • bool

    True if AMFI device is enabled, False otherwise

check_sip_status

check_sip_status() -> bool

Function checking the SIP status system-wide

Function used (man page): - csrutil: Configure system security policies - csrutil modifies System Integrity Protection settings. Some of the commands require the device to be booted into the Recovery OS. Invoke csrutil with no arguments to see a full usage statement.

Returns:

  • bool

    Boolean (True if SIP is active, False otherwise)

get_platform_details

get_platform_details() -> Dict[str, str | Tuple[int, ...] | None]

Function returning the platform details

Returns:

  • Dict[str, str | Tuple[int, int, int]]

    Dictionary of platform details (os type, architecture, os version)

is_amfi_disabled

is_amfi_disabled() -> bool

Function to check if AMFI is disabled

Returns:

  • bool

    True if status of AMFI is disabled

is_macos

is_macos() -> bool

Function checking if we have a macOS machine

Returns:

  • bool

    Boolean

is_sip_active

is_sip_active() -> bool

Function to check if SIP is active or not

Returns:

  • bool

    True if SIP is active, False otherwise