Snyk Logs
Panther supports pulling logs directly from Snyk
Last updated
Was this helpful?
Panther supports pulling logs directly from Snyk
Last updated
Was this helpful?
Panther has the ability to fetch Snyk audit logs by querying the Snyk Audit API.
Panther monitors all events listed in the Snyk Audit Logs documentation except api.access
events. Instead of api.access
events, it is recommended to use Snyk's explicit action logs, as they contain richer contextual information for each action.
By default, Snyk logs do not contain human-readable values for objects such as vaults and login credentials. Please see this Lookup Table guide to learn how to translate Universally Unique Identifier (UUID) values into human-readable names.
To use the Snyk API, you must first retrieve an API token from Snyk. For more information on using Snyk's API, see the Snyk documentation: Authentication for API.
Alternatively, you can use a service account that has a role with audit log access. For more information, see Snyk's Service accounts documentation.
Log in to your Snyk account.
Go to Account Settings > General.
In the left-hand navigation bar of your Panther Console, click Configure > Log Sources.
Click Create New.
Search for “Synk,” then click its tile.
On the slide-out panel, click Start Setup.
On the next screen, enter in a descriptive name for the source e.g. My Snyk logs
.
Click Setup.
On the Set Credentials page, fill in the form:
Organization Id: Enter your Snyk organization ID.
API Token: Enter the API token from your Snyk account.
Click Setup. You will be directed to a success screen:
You can optionally enable one or more Detection Packs.
The Trigger an alert when no events are processed setting defaults to YES. We recommend leaving this enabled, as you will be alerted if data stops flowing from the log source after a certain period of time. The timeframe is configurable, with a default of 24 hours.
Snyk.GroupAudit item usage. Reference: https://docs.snyk.io/snyk-api/reference/audit-logs
Snyk.OrgAudit item usage. Reference: https://docs.snyk.io/snyk-api/reference/audit-logs
Locate the API Token section. In the KEY field, click click to show, then select and copy the value in that field. Store this in a secure location, as you will need it in the next steps.