Skip to main content

Mitigate

The Mitigate features allow you to take action on the threat intelligence you've gathered. You can create integrations with your security infrastructure (like firewalls) and subscribe them to receive updates about specific CVEs.

Manage Integrations

Integrations are the bridge between CrowdSec's data and your security systems. You can create integrations that output data in various formats suitable for different firewalls and remediation components.

Create an Integration

To create an integration, you need to specify its name, type, and output format.

curl -i -H "x-api-key: ${KEY}" -X POST -H "Content-Type: application/json" \
https://admin.api.crowdsec.net/v1/integrations \
-d '{ "name": "test_integration_1", "description": "my test integration", "entity_type": "firewall_integration", "output_format": "plain_text" }'

List Integrations

You can list all your existing integrations to manage them.

curl -X 'GET' https://admin.api.crowdsec.net/v1/integrations \
-H 'accept: application/json' \
-H 'x-api-key: ${KEY}'

Update an Integration

You can update the details of an existing integration, such as its name, description, or regenerate its client secret.

curl -X 'PATCH' \
'https://admin.api.crowdsec.net/v1/integrations/abcdefgh12345678' \
-H 'accept: application/json' \
-H 'x-api-key: ${KEY}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Updated Firewall Integration",
"description": "Updated description for the integration",
"output_format": "plain_text",
"regenerate_credentials": true
}'

Delete an Integration

If an integration is no longer needed, you can delete it.

curl -X 'DELETE' \
'https://admin.api.crowdsec.net/v1/integrations/abcdefgh12345678' \
-H 'accept: */*' \
-H 'x-api-key: ${KEY}'

Subscribe CVE to Integration

Once you have an integration, you can subscribe it to a specific CVE. This means the integration will receive the list of IPs exploiting that CVE.

curl -X 'POST' \
'https://admin.api.crowdsec.net/v1/cves/CVE-2024-1234/integrations' \
-H 'accept: application/json' \
-H 'x-api-key: ${KEY}' \
-H 'Content-Type: application/json' \
-d '{
"name": "test_integration_1"
}'

Unsubscribe Integration from CVE

If you no longer want an integration to receive updates for a CVE, you can unsubscribe it.

curl -X 'DELETE' \
'https://admin.api.crowdsec.net/v1/cves/CVE-2024-1234/integrations/test_integration_1' \
-H 'accept: application/json' \
-H 'x-api-key: ${KEY}'

Next Steps

Now that you have set up integrations and subscribed them to CVEs, you can follow this documentation guide to configure your security appliance based on the integration you created.