- Malicious package blocks (
PMG_PACKAGE_ACTION_BLOCKED) - Dependency cooldown blocks (
PMG_PACKAGE_ACTION_COOLDOWN_BLOCKED)
Prerequisites
A SafeDep Cloud tenant on the Team plan or higher. See the SafeDep Cloud quickstart.
- PMG connected to SafeDep Cloud and syncing to your tenant. See Enable cloud sync.
- The safedep CLI authenticated to your tenant. See Authentication.
CrowdStrike SIEM (Falcon LogScale or Next-Gen SIEM) with an HEC endpoint. For Next-Gen SIEM, set up a HEC data connector.
- Python 3.8 or later.
Keys and URLs
Collect these before you start:-
SAFEDEP_TOKEN: a SafeDep Cloud API token. Get it with the safedep CLI: -
SAFEDEP_TENANT_ID: your SafeDep tenant domain, for exampleyour-company.safedep.io. -
CROWDSTRIKE_HEC_URL: your CrowdStrike HEC ingest URL, for examplehttps://<your-cloud>/services/collector. -
CROWDSTRIKE_HEC_TOKEN: your CrowdStrike HEC token.
Run the ingest script
Download the ingest script. Review it before you run it.Ingested Payload
Each block event is sent to CrowdStrike as one HEC record, pretty-printed here but sent as a single line. IDs and endpoint names are placeholders.Malicious package block
Dependency cooldown block
Cooldown events carry acooldown object instead of the malware fields:
Notes
- Token. The token is short-lived. For a long run, refresh
SAFEDEP_TOKENwithsafedep auth tokenagain before it expires. - Cursor. The position is saved to
cursor.jsonnext to the script, so a restart resumes where it stopped. Deletecursor.jsonto re-read from the backfill window.

