2 minutes
CTI Discord bot
Context
I decided to create a Discord bot that could be useful, for me and maybe for some people. The bot has many use cases, on my side I will use it in malware analysis and as a threat intelligence news. Since I am often using discord, using this bot is also a faster way to get the information I need.
Bot Features
The bot currently has 4 features, more might be added in the future if I get other ideas. There are three commands available and an automatic news channel.
The commands of this bot are executable with the “/” prefix as follow
Group lookup
Starting with the group lookup feature, this command allows you to enter an attacker group as parameter:
The group entered by the user will ask the json base of ransomwatch telemetry and send the output regarding if it exists or not.
The output contains the name, fqdn, the last time it has been updated:
Ip Fraud risk
This feature allows you to enter an IP as parameter:
The IP address entered will be looked up with the Scamalytics Fraud risk API and send the following output, containing a risk score, a link to get more details and the overall risk level:
The link redirects you to the webpage of Scamalytics with a more detailed analysis, on which you can find the operator and the geographical location.
Sample check
The Sample check features basically tells you all the information of the malware sample’s hash that you entered as parameter.
It queries the MalwareBazaar’s database and the output contains the following information:
News
This last feature requires you to precise a ChannelId in which the bot will send every new post of the telemetry watch json base: https://raw.githubusercontent.com/joshhighet/ransomwatch/main/posts.json
The scheduler is checking every day at approximately midnight if there is a new post, since it’s not always the case it is possible that nothing happens times to times.
Using the bot
I am currently in the process of redoing the bot in Python, because I had done it in javascript at the beginning. Once it’s done it will be available on my Github. (update 04/07/2025)
359 Words
2024-08-09 00:00