Interactive Threat Intelligence Bot that leverages serverless framework, AWS/GCP, and Slack
As organizations mature and scale their security infrastructure, it’s vital that analysts, engineers, and other team members are able to query and enrich data on demand. Additionally, application features are being introduced at an increasing rate, creating the need for software defined infrastructure. In this project, we’ll be exploring scaling automation efforts - with a focus on Threat Intelligence. This project can serve as a guide for when to leverage an interactive bot, creating API endpoints, serverless architecture, and applying actionable threat intelligence.
https://www.youtube.com/watch?v=g40LLgYK1uM
Threat Intel Slack Bot is completely serverless, and is built and deployed using Serverless.js.
There are three Lambdas controlling the process:
slashmessage
: Function to serve as API Gateway and facilitate execution of cloud functions to query Threat Intelligence databasespassivetotal
: Triggers indicator query (Domain Names only) to Passive Total and return response to Slack Channelvirustotal
: Triggers indicator query to VirusTotal and return response to Slack Channelserverless deploy
When deploying Threat Intel Slack Bot, serverless.yml
defines the environment variables that will be passed to lambda functions.
SLACK_API_TOKEN
VIRUSTOTAL_API_KEY
PASSIVETOTAL_USERNAME
PASSIVETOTAL_APIKEY
export SLACK_API_TOKEN=<SLACK API KEY>
export VIRUSTOTAL_API_KEY=<VIRUSTOTAL API KEY>
export PASSIVETOTAL_USERNAME=<PASSIVETOTAL API USERNAME>
export PASSIVETOTAL_APIKEY=<PASSIVE TOTAL API KEY>
git clone https://github.com/secdevopsai/Threat-Intel-Slack-Bot.git
cd threat-intel-slack-bot
serverless deploy