the generic, universal Log processor for incident response!
made with ❤️ by Mentat.
Description - Architecture - API - Installation - Run & examples - GUI - Troubleshooting
Gulp is a powerful software tool designed to streamline incident response and analysis. Its core features include:
- Data Ingestion Plugins: Gulp can ingest data from a variety of sources, thanks to its versatile plugin system.
- OpenSearch and ECS: Gulp is built on OpenSearch and uses the Elasticsearch Common Scheme (ECS) as its ingestion format, ensuring compatibility and ease of use.
- High-Speed Multiprocessing Engine: Gulp's engine is designed for speed, offering fast ingestion and querying capabilities through multiprocessing.
- Query using SIGMA rules: Gulp supports querying using Sigma Rules, allowing for easy, one-click queries with thousands of rules in parallel.
- Collaboration Platform: Gulp includes a collaboration platform, enabling teams to work together on the same incident. Features include note-taking, highlighting, and link adding.
- Innovative UI: Gulp's user interface includes multiple on-screen per-context(i.e. a log source) zoomable timelines for visualizing events, making it easier to understand and analyze incidents.
- Scalable: Gulp is designed with scalability in mind. As your data and team grow, you can simply add more cores to increase parallel ingestion and query capabilities, and more OpenSearch and PostgreSQL hosts. This makes Gulp a flexible solution that can adapt to your evolving needs!
- Python based: Gulp is written in Python, leveraging open-source libraries whenever possible. This maximizes ease of adoption from the community, as Python is widely used and understood.
- UI clients: While a full fledged web-ui is in the works, in the meantime you can use most of the features using the .NET client we use ourself to testdrive during development.
Here's the rough timeline we put together, it is subject to change:
soon we will release the slides we did at MOCA2024, stay tuned!
curl https://raw.githubusercontent.com/mentat-is/gulp/refs/heads/develop/setup.sh | sudo bash
This will create a gulp folder, inside the current directory.
the following environment variables may be set to override configuration options.
PATH_CONFIG: if set, will be used as path for the configuration file (either,~/.config/gulp/gulp_cfg.jsonwill be used)PATH_PLUGINS: if set, will be used as path forpluginsdirectory (either, the default$INSTALLDIR/pluginswill be used)PATH_MAPPING_FILES: if set, will be used as path for the mapping files to be used by plugins (either, the default is$INSTALLDIR/mapping_files)PATH_CERTS: if set, overridespath_certsin the configuration (for HTTPS).ELASTIC_URL: if set, overrideselastic_urlin the configuration.POSTGRES_URL: if set, overridespostgres_urlin the configuration.SMTP_SERVER: if set, overridessmtp_serverin the configuration.SMTP_USERNAME: if set, overridesstmp_usernamein the configuration.SMTP_PASSWORD: if set, overridesstmp_passwordin the configuration.SMTP_FROM: if set, overridessmtp_fromin the configuration.GULP_INTEGRATION_TEST: TEST ONLY, this must be set to 1 during integration testing (i.e. client api) to disable debug features which may interfere.
to use HTTPS, the following certificates must be available:
client certificates for
opensearchandpostgresqlare used if found,opensearchkey password is not supported.
-
opensearch
elastic_verify_certs: falsemay be used to skip server verification$PATH_CERTS/opensearch-ca.pem: path to the CA certificate for the Opensearch server$PATH_CERTS/opensearch.pem: client certificate to connect to Opensearch server$PATH_CERTS/opensearch.key: certificate key
-
postgresql
postgres_ssl: truemut be set in the configurationpostgres_verify_certs: falsemay be used to skip server verification$PATH_CERTS/postgres-ca.pem: path to the CA certificate for the PostgreSQL server$PATH_CERTS/postgres.pemclient certificate to connect to PostgreSQL server$PATH_CERTS/postgres.key: certificate key
-
gulp server
- to connect gulp clients, use
https_enforceto prevent HTTP connections,https_enforce_client_certsto enforce client certificates signed bygulp-ca.pemCA $PATH_CERTS/gulp-ca.pem$PATH_CERTS/gulp.pem$PATH_CERTS/gulp.key
- to connect gulp clients, use
- http://localhost:8080: gulp, swagger page here
- localhost:5432: postgres (user/pwd:
postgres/Gulp1234!)- http://localhost:8001: adminer (server/user/pwd:
postgres/postgres/Gulp1234!)
- http://localhost:8001: adminer (server/user/pwd:
- http://localhost:9200: opensearch (user/pwd:
admin/Gulp1234!)- http://localhost:8082: elasticvue
- http://localhost:5601: opensearch dashboards (user/pwd:
admin/Gulp1234!)
with docker or with install from sources
# ingest single file
TEST_WS_ID="websocket_id" ./test_scripts/test_ingest.sh -p ./samples/win_evtx/Application_no_crc32.evtx
# ingest zip
TEST_WS_ID="websocket_id" ./test_scripts/test_ingest.sh -p ./test_scripts/test_upload_with_metadata_json.zip
# ingest with filter (GulpIngestFilter)
TEST_WS_ID="websocket_id" TEST_INGESTION_FILTER='{"level":[2]}' ./test_scripts/test_ingest.sh -p ./test_scripts/test_upload_with_metadata_json.zip -f
## multiple concurrent ingestion (using 2 target websockets)
TEST_WS_ID="websocket_id1" TEST_TOKEN=80d5ed1e-c30f-4926-872d-92bcc5a2235d ./test_scripts/test_ingest.sh -p ./samples/win_evtx && TEST_WS_ID="websocket_id2" TEST_TOKEN=80d5ed1e-c30f-4926-872d-92bcc5a2235d TEST_CONTEXT=context2 TEST_OPERATION=testop2 ./test_scripts/test_ingest.sh -p ./samples/win_evtx
# ingest with csv plugin without mapping file ("@timestamp" in the document is mandatory, so in one way or another we must know at least how to obtain a timestamp for ingested event)
TEST_WS_ID="websocket_id" TEST_PLUGIN_PARAMS='{"timestamp_field": "UpdateTimestamp"}' TEST_PLUGIN=csv ./test_scripts/test_ingest.sh -p ./samples/mftecmd/sample_j.csv
# ingest with csv plugin with mapping file
TEST_WS_ID="websocket_id" TEST_PLUGIN_PARAMS='{"mapping_file": "mftecmd_csv.json", "mapping_id": "j"}' TEST_PLUGIN=csv ./test_scripts/test_ingest.sh -p ./samples/mftecmd/sample_j.csv
# example overriding a configuration parameter (will stay overridden until gulp restarts)
TEST_WS_ID="websocket_id" TEST_PLUGIN_PARAMS='{"mapping_file": "mftecmd_csv.json", "mapping_id": "j", "config_override": { "debug_allow_any_token_as_admin": true }' TEST_PLUGIN=csv ./test_scripts/test_ingest.sh -p ./samples/mftecmd/sample_j.csv
# ingest local directory (just for testing, not available in production code and not available when gulp runs in docker)
TEST_WS_ID="websocket_id" ./test_scripts/test_ingest.sh -x -p ./samples/win_evtx
# sample ingestion with filter
TEST_INGESTION_FILTER='{"start_msec":1475719436055, "end_msec": 1475719436211}' TEST_WS_ID=abc ./test_scripts/test_ingest.sh -p ./samples/win_evtx -f
# same as above, send filtered chunks on websocket but store data anyway on database (do not apply filter on-store)
TEST_INGESTION_FILTER='{"start_msec":1475719436055, "end_msec": 1475719436211, "store_all_documents": true}' TEST_WS_ID=abc ./test_scripts/test_ingest.sh -p ./samples/win_evtx -f
for testing websocket, a browser extension i.e. chrome websockets browser extension may be used.
- if TEST_WS_ID is not specified, ingestion happens anyway, but results are not broadcasted.
resuming ingestion is supported if the
req_idparameter is the same across requests.
If you want to use the web GUI visit it's repository here. It's still heavily under construction, so any contribution is highly appreciated!
This is the intended official wanna-be client for gulp.
[!IMPORTANT] ⚠ the .NET client is to be considered an internal-test version, this is the tool we use internally to testdrive the backend development. It is not feature complete and far from being production ready :). Feel free to open issues, but any contribution should go towards the new WIP web client
If you want to use the .NET client "as-is", you can use the Windows binary from here.
To run the executable on Linux, install .NET 6.0 using wine and run GUiLP.exe.