Video summary
SOC Automation Project Updated | Part 4/4
Main summary
Key takeaways
Summary
The video completes a SOC automation project by connecting Wazuh alerts to Shuffle, enriching detected file hashes with VirusTotal, creating an alert in TheHive, and sending an email notification.
1. Connect Wazuh to a Shuffle webhook
- Create a workflow in Shuffle and add a Webhook trigger.
- Copy the webhook URI.
- In Wazuh’s
ossec.conf, add an integration configured to:- Use Shuffle’s webhook URL.
- Filter for rule ID 100002.
- Send alerts in JSON format.
- Restart the Wazuh manager, start listening in Shuffle, and rerun Mimikatz in a Windows virtual machine.
- Confirm that the alert arrives in Shuffle and includes the Wazuh event data.
2. Extract the SHA-256 hash and query VirusTotal
- Add a Shuffle tool to extract a SHA-256 hash from the alert data using a regular expression that matches 64 hexadecimal characters.
- Use the alert’s hashes field as the extraction input.
- Add VirusTotal to the workflow, configure it with an API key, and select the Get hash report action.
- Pass the extracted hash to VirusTotal.
- The first attempt fails with a 404 / resource not found response because the workflow passes the entire extraction result—including metadata such as the success status and capture group—instead of just the hash.
- Correct the mapping by selecting the extracted hash’s list value. The next run succeeds with a 200 response.
3. Create an alert in TheHive
- Set up a TheHive organization and create:
- A regular analyst account.
- A Shuffle service account with an API key.
- Add the TheHive authentication details to Shuffle, including the API key and TheHive’s public address and port.
- Configure TheHive’s action as Create alert and map fields from the Wazuh event. The demonstrated mappings include:
- Description and title: the alert title.
- Severity: the event severity.
- Source: a Wazuh alert.
- Source reference: the Wazuh rule ID.
- Status: new.
- Summary: a Mimikatz activity description and the affected computer name.
- Tags, TLP, PAP, and alert type: values appropriate to the alert.
- The first submission fails because TheHive rejects the severity value’s JSON type. After the severity mapping is adjusted, the workflow succeeds and the alert appears in TheHive.
- The presenter notes that the alert formatting is a proof of concept and could be made more detailed.
4. Send an email notification
- Add Shuffle’s email action and configure the recipient, subject, and message body.
- Test Shuffle’s built-in Send email (Shuffle) action, which had failed in an earlier attempt but works in this test.
- If Shuffle asks for an execution argument, select data from a previous run.
- After confirming delivery, reconnect the workflow components and rerun the automation.
Main takeaway
The completed workflow takes a Wazuh detection, extracts its SHA-256 hash, checks the hash with VirusTotal, creates a corresponding TheHive alert, and sends an email notification. The video also demonstrates validating each stage independently and correcting data-mapping or JSON-type errors when an integration fails.
Speakers and sources featured
- Speaker: One unnamed narrator or presenter; no other speaking participants are identifiable in the subtitles.
- Platforms and tools: Shuffle, Wazuh, VirusTotal, TheHive, and a Windows virtual machine running Mimikatz.
Rate this summary
Your feedback will help improve summaries.
Improve this summary
Reprocess with a stronger model when the summary feels incomplete or inaccurate.
Translate summary in another language
Ask questions to this video
Chat for follow-up questions, clarifications, and source-backed answers.