askill
social-bridge

social-bridgeSafety 72Repository

Aggregate security content from Telegram public channels and X/Twitter accounts, forward to Discord webhooks, and persist to graph-memory. Uses Telethon (MTProto) for Telegram, surf browser automation for X, and Discord webhooks for delivery.

1 stars
1.2k downloads
Updated 3/6/2026

Package Files

Loading files...
SKILL.md

Social Bridge - Security Content Aggregator

Aggregate security research content from multiple social platforms, forward to your Discord server, and persist to the knowledge graph for semantic search.

Data Sources

PlatformMethodAuth RequiredCan Read Public
TelegramTelethon (MTProto)API ID + phoneYes
X/Twittersurf browser automationLogged-in browserYes
DiscordWebhooksWebhook URLN/A (output only)

Architecture

┌─────────────────────────────────────────────────────────────────────────────┐
│                    Social Bridge Aggregator + Memory Integration             │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│  ┌─────────────┐    ┌─────────────┐    ┌─────────────┐                     │
│  │  Telegram   │    │  X/Twitter  │    │   RSS/Web   │                     │
│  │  (Telethon) │    │   (surf)    │    │  (future)   │                     │
│  └──────┬──────┘    └──────┬──────┘    └──────┬──────┘                     │
│         │                  │                  │                             │
│         └──────────────────┼──────────────────┘                             │
│                            ▼                                                │
│                   ┌─────────────────┐                                       │
│                   │   Aggregator    │                                       │
│                   │ (dedupe, filter)│                                       │
│                   └────────┬────────┘                                       │
│                            │                                                │
│         ┌──────────────────┼───────────────────┐                           │
│         ▼                  ▼                   ▼                            │
│   ┌──────────┐       ┌──────────┐       ┌────────────────┐                 │
│   │ Discord  │       │  JSON    │       │  graph-memory  │                 │
│   │ Webhook  │       │  Export  │       │   (ArangoDB)   │                 │
│   └──────────┘       └──────────┘       └───────┬────────┘                 │
│                                                 │                           │
│                                                 ▼                           │
│                                         ┌──────────────┐                   │
│                                         │   Dogpile    │                   │
│                                         │ (search/recall)│                 │
│                                         └──────────────┘                   │
│                                                                              │
└─────────────────────────────────────────────────────────────────────────────┘

Quick Start

# Setup (one-time)
./run.sh setup

# Add sources
./run.sh telegram add "@vaborivs"           # Telegram channel
./run.sh x add "malaborwaretechblog"        # X/Twitter account

# Add Discord webhook for forwarding
./run.sh webhook add "security" "https://discord.com/api/webhooks/..."

# Fetch latest content
./run.sh fetch --all

# Forward to Discord
./run.sh forward --webhook security --hours 24

Commands

setup - Initial Configuration

# Interactive setup wizard
./run.sh setup

# This will:
# 1. Check/configure Telegram API credentials
# 2. Check surf browser setup
# 3. Configure Discord webhook

telegram - Telegram Channel Management

# Add a public channel to monitor
./run.sh telegram add "@channel_name"
./run.sh telegram add "https://t.me/channel_name"

# List monitored channels
./run.sh telegram list

# Remove a channel
./run.sh telegram remove "@channel_name"

# Fetch messages from all channels
./run.sh telegram fetch --limit 50

# Fetch from specific channel
./run.sh telegram fetch "@channel_name" --limit 100

x - X/Twitter Account Management

# Add an account to monitor
./run.sh x add "username"

# List monitored accounts
./run.sh x list

# Remove an account
./run.sh x remove "username"

# Fetch tweets (uses surf browser automation)
./run.sh x fetch --limit 50

# Fetch from specific account
./run.sh x fetch "username" --limit 100

webhook - Discord Webhook Management

# Add a webhook
./run.sh webhook add "name" "https://discord.com/api/webhooks/..."

# List webhooks
./run.sh webhook list

# Remove a webhook
./run.sh webhook remove "name"

# Test a webhook
./run.sh webhook test "name"

fetch - Fetch Content

# Fetch from all sources
./run.sh fetch --all

# Fetch only Telegram
./run.sh fetch --telegram

# Fetch only X/Twitter
./run.sh fetch --x

# With time filter
./run.sh fetch --all --hours 24

# Output as JSON
./run.sh fetch --all --json

forward - Forward to Discord

# Forward recent content to Discord
./run.sh forward --webhook security --hours 24

# Forward with keyword filter
./run.sh forward --webhook security --filter "CVE,0day,exploit"

# Dry run (show what would be sent)
./run.sh forward --webhook security --dry-run

memory - Knowledge Graph Integration

# Check memory integration status
./run.sh memory status

# Ingest all content to memory (fetch + persist)
./run.sh memory ingest --hours 24

# Ingest only Telegram
./run.sh memory ingest --telegram --hours 24

# Search stored social intel
./run.sh memory search "CVE-2024"

# Search with JSON output
./run.sh memory search "malware analysis" --json --k 20

Auto-Fetch with Persistence:

# Fetch and persist in one command
./run.sh fetch --all --persist

# Telegram fetch with persistence
./run.sh telegram fetch --persist

aggregate - Scheduled Aggregation

# Run aggregation (fetch + forward)
./run.sh aggregate --webhook security

# Schedule hourly aggregation
./run.sh aggregate schedule --cron "0 * * * *" --webhook security

# View scheduled jobs
./run.sh aggregate status

Pre-configured Security Channels

Telegram Channels

ChannelFocus
@vaborivsVulnerability research
@cikitechMalware/threats
@TheHackersNewsSecurity news
@exploitinExploit announcements
@bugcrowdBug bounty
@CISAgovCISA alerts

X/Twitter Accounts

AccountFocus
malwaretechblogMalware analysis
kloswonsecuritySecurity news
SwiftOnSecuritySecurity humor + insights
0xdeaVulnerability research
thegrugqOpSec, threat intel

Telegram Setup (One-time)

  1. Get API credentials at https://my.telegram.org/apps
  2. Save to environment:
    export TELEGRAM_API_ID="your_api_id"
    export TELEGRAM_API_HASH="your_api_hash"
    
  3. First run will prompt for phone number + code
  4. Session file created at ~/.social-bridge/telegram.session

X/Twitter Setup (One-time)

  1. Ensure surf-cli is installed and working:
    surf tab.list  # Should show browser tabs
    
  2. Log into X/Twitter in your browser
  3. social-bridge uses surf to scrape while logged in

Environment Variables

VariableDescriptionRequired
TELEGRAM_API_IDTelegram API IDFor Telegram
TELEGRAM_API_HASHTelegram API hashFor Telegram
DISCORD_WEBHOOK_URLDefault Discord webhookFor forwarding

Integration with Memory (graph-memory)

Social-bridge persists content to the social_intel scope in ArangoDB via the memory skill.

Auto-Tagging

Posts are automatically tagged with security keywords:

  • cve - CVE identifiers (CVE-2024-XXXX)
  • apt - APT groups (APT29, APT41)
  • darpa - DARPA/IARPA/BAA mentions
  • 0day - Zero-day references
  • exploit - Exploit/RCE/LPE mentions
  • malware - Malware/ransomware mentions
  • ctf - CTF/HTB/TryHackMe
  • mitre - MITRE ATT&CK references
  • c2 - C2/Cobalt Strike
  • ioc - IOC/indicator mentions

Memory Schema

Posts are stored as lessons with:

{
  "problem": "[TELEGRAM] @vxunderground: New ransomware variant...",
  "solution": {
    "content": "Full post content...",
    "url": "https://t.me/vxunderground/12345",
    "author": "vx-underground",
    "timestamp": "2026-01-28T12:00:00Z",
    "platform": "telegram",
    "source": "vxunderground",
    "metadata": {"views": 5000, "forwards": 120}
  },
  "scope": "social_intel",
  "tags": ["telegram", "source:vxunderground", "malware", "ransomware"]
}

Integration with Dogpile

Dogpile can query stored social intel via the memory skill:

# Dogpile searches memory automatically
dogpile search "CVE-2024-1234" --preset vulnerability_research

# Memory recall returns stored social intel
./run.sh memory search "ransomware variant"

Pipeline:

social-bridge fetch --persist → memory (ArangoDB) → dogpile recall

Data Storage

Content is cached locally for deduplication:

~/.social-bridge/
├── config.json          # Sources and webhooks
├── telegram.session     # Telegram session (DO NOT SHARE)
├── cache/
│   ├── telegram/        # Cached Telegram messages
│   └── x/               # Cached X tweets
└── logs/
    └── aggregate.log    # Aggregation history

Rate Limits & Best Practices

PlatformRecommendation
TelegramMax 50 channels, 100 msgs/channel/hour
X/TwitterMax 20 accounts, 50 tweets/account/hour
DiscordMax 30 messages/minute per webhook

Example: Security Feed Aggregator

# One-time setup
./run.sh setup
./run.sh telegram add "@vaborivs" "@exploitin" "@CISAgov"
./run.sh x add "malwaretechblog" "SwiftOnSecurity"
./run.sh webhook add "security" "$DISCORD_WEBHOOK_URL"

# Schedule hourly aggregation
./run.sh aggregate schedule --cron "0 * * * *" --webhook security

# Manual fetch when needed
./run.sh fetch --all --hours 1
./run.sh forward --webhook security --filter "CVE,0day,critical"

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

82/100Analyzed 2/23/2026

Well-structured security content aggregator skill with comprehensive documentation, architecture diagrams, and detailed command references. Provides clear setup instructions for Telegram, X/Twitter, and Discord integration with graph-memory persistence. High reusability and clarity, though actionability is slightly reduced by reliance on external run.sh script. Good trigger coverage and tags for discoverability. Safety concerns are minimal as it targets public content for security research.

72
92
90
85
78

Metadata

Licenseunknown
Version-
Updated3/6/2026
Publishergrahama1970

Tags

apici-cdpromptingsecuritytesting