https://github.com/vognik/maltego-telegram
Maltego Transforms for working with Telegram
https://github.com/vognik/maltego-telegram
cybersecurity maltego osint pyrogram python telegram
Last synced: about 1 month ago
JSON representation
Maltego Transforms for working with Telegram
- Host: GitHub
- URL: https://github.com/vognik/maltego-telegram
- Owner: vognik
- Created: 2024-11-04T22:34:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-22T15:09:35.000Z (about 1 year ago)
- Last Synced: 2024-11-22T16:20:31.909Z (about 1 year ago)
- Topics: cybersecurity, maltego, osint, pyrogram, python, telegram
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 116
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-telegram - Maltego Telegram - Rich Set of Entities & Transforms for OSINT on Telegram with Maltego (Tools / Bot Libs)
- awesome-osint - Maltego Telegram - Rich Set of Entities & Transforms for OSINT on Telegram with Maltego. (Social Media Tools / [↑](#-table-of-contents) Telegram)
README
# Maltego Telegram

**Telegram Maltego** — a free set of Transforms for Maltego that enables OSINT investigations in the Telegram messenger.
Initially designed solely to simplify de-anonymization through stickers/emojis, it has since expanded far beyond its original functionality, allowing for more advanced investigations.
**Features:**
- Getting Telegram profile by phone number
- Getting a linked Telegram channel group
- Getting a list of Telegram group administrators
- Getting a list of authors of a Telegram channel
- Collect all forwarded & similar channels by Channel
- Search for deleted posts and generate links to view them
- Indexing of all stickers/emoji in Telegram channel
- Identification of the creator of a set of stickers/emoji
## How it works
Currently, there are over 10 available Transforms. A full list can be found in the directory of the same name, as well as in the Maltego program when you import them.
Here’s how some of these Transforms work.
### Stickers and their creators

Each Telegram user has their own UID.
Each sticker set that a user creates has its ID hidden in it.
To reveal it, my Transform executes the following algorithm:
1. Make an API request to get information about the sticker set
2. Take the value of the "ID" key from the response
3. Perform a binary shift by 32 to the right.
The resulting UID can be exchanged for a familiar login using the `@tgdb_bot` bot, and thus reveal the user's profile.
**The author of a channel who did not leave contacts can be de-anonymized. To do this, you need to scan his channel and find the sticker packs that he has ever created. My Transform for Maltego does this automatically.**
Find out more: [What's wrong with stickers in Telegram? Deanonymize anonymous channels in two clicks](https://hackernoon.com/whats-wrong-with-stickers-in-telegram-deanonymize-anonymous-channels-in-two-clicks)
### Similar channels

Telegram has a built-in function to search for channels whose audience overlaps with the current one.
Maltego makes the search more convenient by visualizing the results.
### Profiles that may be associated with the channel

Administrators can forward their own messages and other users to their channel.
If a user has changed their privacy settings and removed the link to their account (Forwarded Messages = Nobody), this will only apply to forwarding their new messages.
Old forwarded messages will still link to their real profile.
### Deleted posts and their content

In Telegram, each post has a unique numeric ID, which increases with each new post. The first post in a channel has ID 1, the second post has ID 2, and so on. If there are gaps between post numbers, it means that some posts have been deleted.
There are services that index Telegram content. Even if a post has been deleted from Telegram, it may still be stored in these services.
This Transform helps you find deleted posts and creates links to view them in the archives.
## Installation
1. Clone the repository
```
git clone https://github.com/vognik/maltego-telegram
```
2. Install dependencies
```
pip install -r requirements.txt
```
3. Specify secrets in `config.ini`:
- `api_id` and `api_hash`: guide [https://core.telegram.org/api/obtaining_api_id](https://core.telegram.org/api/obtaining_api_id)
- `bot_token`: guide [https://core.telegram.org/bots/tutorial#obtain-your-bot-token](https://core.telegram.org/bots/tutorial#obtain-your-bot-token)
4. Log in to Telegram
```
python login.py
```
5. Generate Transforms Import File
```
python project.py
```
6. Import `entities.mtz` and `telegram.mtz` files using Import Config in Maltego
7. Check if they work: new Entities and Transforms should appear in Maltego

## Usage
Drag and drop an entity from the Entity Pallete, right-click and select the desired Transform.
https://github.com/user-attachments/assets/1fa23899-fd52-435f-830b-0df27cb65439