The CrowdSec Splunk app leverages the CrowdSec's CTI API's smoke endpoint which enables users to query an IP and receive enrichment
The following command is used to run an IP check through the CrowdSec's CTI API's smoke endpoint. On the Homepage of Splunk Web Interface, select Search & Reporting and use the following command.
| makeresults | eval ip="<dest_ip>" | cssmoke ipfield="ip"
-
cssmoke:- Custom command driving the core functionality of the application.
-
ipfield:- It denotes the field name where the IP address is stored in the index.
-
profile: Optional preset that selects a predefined set of CrowdSec output fields (it is possible to specify mutliple profiles).
On the event of clicking the Search button, users will be able to view a brief overview of various fields associated with the input IP address.
This includes but not limited to location, behaviors, classifications, attack details – name, label, description, references followed by scores, threats, etc.
Profiles are optional presets that automatically select a predefined set of CrowdSec output fields, so results stay consistent and you don’t have to manually maintain long ipfield= lists.
-
base: returnsip,reputation,confidence,as_num,as_name,location,classifications. -
anonymous: (aliases:vpnproxy): returnsip,reputation,proxy_or_vpn,classifications. -
iprange: returnsip,ip_range,ip_range_24,ip_range_24_score.
You can provide multiple profile in the same command:
| cssmoke ipfield="ip" profile="anonymous,iprange"
The output will contains the columns for the anonymous and the iprange profiles.
The first time you setup the local dump feature, you need to download manually the CrowdSec lookup databases (they will be updated every 24h automatically after that):
| cssmokedownload
After that, you can look up IPs using the local databases.
Note: Check the query_time and query_mode fields in the results to confirm whether lookups are done via local_dump or the live API.
You can configure the CrowdSec app by uploading a JSON configuration file:
{
"api_key": "YOUR_API_KEY_HERE",
"batching": true|false,
"batch_size": 20,
"local_dump": true|false
}
CrowdSec CTI API key.
Warning: Local dump and live CTI API lookups are mutually exclusive (enable only one mode).
Enable batching for live CTI API lookups.
Batch size used when batching is enabled.
Enable local dump mode (use the downloaded lookup databases).
Lookup databases are download automatically every 24h.
Warning: Local dump requires a CTI API key that has access to the dump endpoint.