For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XDR Agent

Cytool for Mac

Cytool is a command-line interface that is integrated into Traps that enables you to query and manage both basic and advanced functions of Traps. Any changes that you make using Cytool are active until Traps receives the next heartbeat communication from the Traps management service.

On Mac endpoints, you can access Cytool as a super user using a terminal. Cytool is located in the /Library/Application Support/PaloAltoNetworks/Traps/bin directory on the endpoint.

The following table displays the Cytool options available on Mac endpoints.

Command Option
Description

-h --help

Traps-Mac:bin Traps$`` sudo ./cytool` Usage: cytool cytool - Support tool Options: -h --help Display help information. enum List processes protected by Traps. startup query List startup status for Traps agent and daemons. startup <enable

enum

Enumerate protected processes.

Usage: sudo ./cytool enum

For example:

Traps-Mac:bin Traps$ sudo ./cytool enum List of protected processes: Process name Process ID User Photos 2047 Traps Mail 2099 Traps

startup

Enable, disable, or query the startup state of Traps components.

Usage: sudo ./cytool startup <action> <component>

where:

  • <action> —Change startup action for a Traps component. Options are: enable, disable, query. The query option displays the startup status for each component.

  • <component> —Target component for which to set the startup action. To change the startup action for multiple components, list them with spaces separating each component. Options are: traps_agent, trapsd, authorized, pmd, kproc-ctrl

For example:

Traps-Mac:bin Traps$ sudo ./cytool startup disable traps_agent pmdProcess name Startup status traps_agent Disabled trapsd Enabled authorized Enabled pmd Disabled kproc-ctrl Loaded Traps-Mac:bin Traps$sudo ./cytool startup enable allProcess name Startup status traps_agent Enabled trapsd Enabled authorized Enabled pmd Enabled kproc-ctrl Loaded

runtime

Stop or start product components.

Usage: sudo ./cytool runtime <action> <component>

where:

  • <action> —Change startup runtime action for a Traps component. Options are: start, stop, query. The query option displays the startup status for each component.

  • <component> —Target component for which to set the runtime action, or all components if no components are specified. To change the runtime action for multiple components, list them with spaces separating each component. Options are: traps_agent, trapsd, authorized, pmd, kproc-ctrl

For example:

Traps-Mac:bin Traps$ sudo ./cytool runtime queryName PID User Status Command traps_agent 1055 Traps Running /Library/Application Support/PaloAltoNetworks/Traps/bin/traps_agent.app/Contents/MacOS/traps_agent trapsd 906 root Running /Library/Application Support/PaloAltoNetworks/Traps/bin/trapsd authorized 927 _traps_panw Running /Library/Application Support/PaloAltoNetworks/Traps/bin/authorized pmd 909 root Running /Library/Application Support/PaloAltoNetworks/Traps/bin/pmd kproc-ctrl 159 root Loaded com.paloaltonetworks.driver.kproc-ctrl Traps-Mac:bin Traps$sudo ./cytool runtime stop allName PID User Status Command authorized N/A N/A STOPPED N/A pmd N/A N/A STOPPED N/A traps_agent N/A N/A STOPPED N/A trapsd N/A N/A STOPPED N/A kproc-ctrl N/A N/A Unloaded N/A Traps-Mac:bin Traps$sudo ./cytool runtime start all Name PID User Status Command system call failed for command='/usr/bin/su -l Traps -c "/bin/launchctl start traps_agent.plist"', returned status code=768 authorized 1883 _traps_panw Running /Library/Application Support/PaloAltoNetworks/Traps/bin/authorized pmd 1889 root Running /Library/Application Support/PaloAltoNetworks/Traps/bin/pmd traps_agent N/A N/A FAILED TO START N/A trapsd 1901 root Running /Library/Application Support/PaloAltoNetworks/Traps/bin/trapsd kproc-ctrl 160 root Loaded com.paloaltonetworks.driver.kproc-ctrl

persist

Traps stores policy and security event information such as the list of trusted signers, local verdicts, and one-time actions in local databases on the endpoint. To troubleshoot policy issues and security events, you can use cytool persist operations to import, export, and view information stored in the local database.

Usage: sudo ./cytool persist <action>

where <action> :

  • list—List the local databases on the endpoint.

  • **export [<database name>`

log

Set log level for the desired process.

Usage: sudo ./cytool log <log_level> <components>

where:

  • <log_level> is an integer value corresponding to the log level:

    • 0—Disable logging

    • 1—Fatal

    • 2—Critical

    • 3—Error

    • 4—Warning

    • 5—Notice

    • 6—Information

    • 7—Debug

    • 8—Trace

  • <components> is all or one or more of the following Traps component: trapsd, authorized, pmd, traps_agent, kproc-ctrl.

For example:

Traps-Mac:bin Traps$ sudo ./cytool log 2 all

Then use the sudo ./cytool log collect command to generate a support file archive of all logs in a TGZ file. On Mac endpoints running OS X 10.10 and OSX 10.11, Cytool outputs the logs to the /var/log/traps directory. On Mac endpoints running macOS 10.12, you can view logs from the Console application.

wakeup

Wake up the endpoint from an OS incompatibility state.

Traps-Mac:bin Traps$ sudo ./cytool wakeup SIGTERM caught

dump

Enable or disable dump generation or restore policy settings.

Traps-Mac:bin Traps$ sudo ./cytool dump enableTraps-Mac:bin Traps$sudo ./cytool dump disableTraps-Mac:bin Traps$sudo ./cytool dump restore

checkin

Initiate check-in to the server.

Usage: sudo ./cytool checkin

To verify the checkin, view the check-in time on the Traps console.

opswat

Check Traps Agent status and version.

Usage: sudo ./cytool opswat <parameter>

where <parameter> is:

  • version—Display the version of Traps.

  • installed—Display the Traps installation status (true if the com.paloaltonetworks.pkg.traps package is installed or false if the package is not installed). You must also supply the Traps supervisor password to view the status.

  • running—Display the running status of Traps daemons (true if running or false).

  • protected—Display the applied policy status (true if applied or false).

Traps-Mac:bin Traps$ sudo ./cytool opswat version5.0.0.1042 Traps-Mac:bin Traps$sudo ./cytool opswat installedPassword: true Traps-Mac:bin Traps$sudo ./cytool opswat runningtrue Traps-Mac:bin Traps$sudo ./cytool opswat protected true

Last updated

Was this helpful?