n2h4@home:~$

Telegram malware analysis tool

Telegram is a messaging client that among its multiple functionalities includes the creation of bots, the creation of channels or mega groups, as well as the distribution of multimedia content. Also, one of its main features is privacy, so it has had a boom in use among communities that previously communicated only through the Deep web and has caused them to choose this platform to distribute their content or coordinate their activities.

In addition, it allows free and unlimited storage on its servers, so it has been used to store or distribute content that don’t want to be indexed by search engines.

Telegram also provides an API, where clients and bots can be developed to add more features to the messaging network.

Using this API, clients can be programmed to automate actions or create conversational bots that simulate a human behind a keyboard.

These advantages have led to an increasing number of people who used to carry out their activities on the dark web to migrate their activity to this platform.

With this in mind, I have been developing that enters channels, pretending to be a normal user and downloads the files shared in the channel.

The developed bot allows the scanning of channels and uploaded software to classify possible threats that are uploaded to channels.

These threats include copyrighted content, to different types of malware such as executables, Android apps, or documents with malicious macros inside. This Telegram bot uploads the file to Virustotal, as well as traces the user and channel that has shared it in order to add to the IOCs detected by the website, additional content so the researcher can have a context regarding the file. In about three weeks of channel scanning, he has uploaded and scanned about 300 files from 4 channels that he has been monitoring.

Of those 297 files, he has added a total of 108 new files to the virusTotal, about 30 of which have been classified as malware by at least one of the antivirus programs that scan the files on that page.

This makes clear the growing activity of the platform as a meeting place for malware developers, as well as the fervent development activity of new malware. It is important for the security analyst to have as many sources of information as possible, and Telegram, like the web, is a medium that needs to be monitored for new threats in the future.

Link to Github: https://github.com/ns2switch/blabbot