social-media-osint
Social media OSINT techniques and tools for gathering intelligence from public profiles across Twitter/X, LinkedIn, Instagram, and Facebook. Use when: investigating individuals or companies, finding social footprint, correlating usernames across platforms, mapping professional networks, or identifying employees and their public activity.
What this skill does
# Social Media OSINT
## Overview
Social media platforms expose enormous amounts of voluntarily shared personal and professional information. This skill covers the tools and techniques to systematically gather and analyze publicly available social media intelligence without violating platform terms of service or privacy laws. The primary tools are Sherlock (username search across 400+ platforms), Instaloader (Instagram OSINT), and manual techniques using Google dorks and the Wayback Machine.
**Always verify you have authorization or a legitimate OSINT purpose before investigating individuals.**
## Instructions
### Tool 1: Sherlock — Username search across 400+ platforms
```bash
# Install
pip install sherlock-project
# or
git clone https://github.com/sherlock-project/sherlock.git
cd sherlock
pip install -r requirements.txt
# Search for a username on all supported sites
python3 sherlock username
sherlock username # if installed via pip
# Search multiple usernames
sherlock username1 username2 username3
# Output to file
sherlock username --output username_results.txt
sherlock username --csv --output username_results.csv
# Only print found accounts (skip not found)
sherlock username --print-found
# Search specific sites only
sherlock username --site Twitter --site GitHub --site Reddit
# Use Tor for anonymity (requires Tor running on localhost:9050)
sherlock username --tor
```
```python
import subprocess
import json
import re
def sherlock_search(username, output_csv=True):
"""Run Sherlock for a username and return found accounts."""
output_file = f"sherlock_{username}"
cmd = ["sherlock", username, "--print-found"]
if output_csv:
cmd += ["--csv", "--output", f"{output_file}.csv"]
print(f"Searching for username: {username}")
result = subprocess.run(cmd, capture_output=True, text=True, timeout=300)
# Parse stdout for found accounts
found = []
for line in result.stdout.split("\n"):
if "[+]" in line:
# Extract URL from the line
url_match = re.search(r'https?://\S+', line)
site_match = re.search(r'\[+\]\s+(\w+):', line)
if url_match:
found.append({
"site": site_match.group(1) if site_match else "unknown",
"url": url_match.group(0).strip(),
})
print(f"Found {len(found)} accounts for '{username}':")
for account in found:
print(f" [{account['site']}] {account['url']}")
return found
accounts = sherlock_search("johndoe123")
```
### Tool 2: Instaloader — Instagram OSINT
```bash
# Install
pip install instaloader
# Download public profile metadata (no login required for public accounts)
instaloader --no-pictures --no-videos --no-captions \
--metadata-json --comments \
INSTAGRAM_USERNAME
# Download posts with metadata
instaloader INSTAGRAM_USERNAME
# Download profile picture only
instaloader --no-posts INSTAGRAM_USERNAME
# Analyze followers (requires login for private accounts)
instaloader --login=YOUR_ACCOUNT INSTAGRAM_USERNAME
```
```python
import instaloader
import json
from datetime import datetime
def get_instagram_profile(username, download_posts=False, max_posts=50):
"""Fetch public Instagram profile data."""
L = instaloader.Instaloader(
download_pictures=download_posts,
download_videos=False,
download_video_thumbnails=False,
save_metadata=True,
compress_json=False,
)
try:
profile = instaloader.Profile.from_username(L.context, username)
data = {
"username": profile.username,
"full_name": profile.full_name,
"biography": profile.biography,
"followers": profile.followers,
"following": profile.followees,
"posts_count": profile.mediacount,
"is_private": profile.is_private,
"is_verified": profile.is_verified,
"external_url": profile.external_url,
"business_category": profile.business_category_name,
"profile_pic_url": profile.profile_pic_url,
}
print(f"\n=== Instagram: @{username} ===")
for k, v in data.items():
if v:
print(f" {k}: {v}")
if not profile.is_private and download_posts:
posts = []
for post in profile.get_posts():
posts.append({
"shortcode": post.shortcode,
"date": post.date_utc.isoformat(),
"caption": post.caption[:200] if post.caption else "",
"likes": post.likes,
"comments": post.comments,
"location": str(post.location) if post.location else None,
"tagged_users": post.tagged_users,
"url": f"https://www.instagram.com/p/{post.shortcode}/",
})
if len(posts) >= max_posts:
break
print(f"\nAnalyzed {len(posts)} posts")
locations = [p["location"] for p in posts if p["location"]]
if locations:
print(f"Locations mentioned: {set(locations)}")
tagged = [u for p in posts for u in p["tagged_users"]]
if tagged:
print(f"Frequently tagged: {set(tagged[:20])}")
data["posts"] = posts
return data
except instaloader.exceptions.ProfileNotExistsException:
print(f"Profile @{username} does not exist.")
return None
except instaloader.exceptions.PrivateProfileNotFollowedException:
print(f"Profile @{username} is private.")
return None
profile_data = get_instagram_profile("instagram", download_posts=True, max_posts=20)
```
### Tool 3: Google Dorks for social media discovery
```python
# Google dorks to find social media profiles and activity
# Use these queries in a browser or via a search API
SOCIAL_DORKS = {
"linkedin_profile": 'site:linkedin.com/in/ "{first_name} {last_name}" "{company}"',
"twitter_profile": 'site:twitter.com "{name}" OR site:x.com "{name}"',
"instagram_profile": 'site:instagram.com "{username}"',
"facebook_profile": 'site:facebook.com "{first_name} {last_name}"',
"github_profile": 'site:github.com "{name}" "{company}"',
"reddit_profile": 'site:reddit.com/user/ "{username}"',
"youtube_channel": 'site:youtube.com/c/ OR site:youtube.com/@ "{name}"',
"twitter_mentions": 'site:twitter.com "@{username}"',
"cached_profile": 'cache:twitter.com/{username}',
"linkedin_employees": 'site:linkedin.com/in/ "* at {company}"',
"email_on_twitter": 'site:twitter.com "{email}"',
"domain_on_linkedin": 'site:linkedin.com "{domain}" employees',
}
def build_google_dork(template, **kwargs):
"""Generate a Google dork search URL."""
query = template.format(**kwargs)
encoded = query.replace('"', '%22').replace(' ', '+')
return f"https://www.google.com/search?q={encoded}"
# Examples
print(build_google_dork(SOCIAL_DORKS["linkedin_profile"],
first_name="John", last_name="Smith", company="Acme Corp"))
print(build_google_dork(SOCIAL_DORKS["linkedin_employees"], company="Example Corporation"))
```
### Tool 4: Wayback Machine — archived social profiles
```python
import requests
def wayback_search(url, limit=10):
"""
Search the Wayback Machine CDX API for archived snapshots of a URL.
Useful for recovering deleted profiles, old profile photos, and historical content.
"""
cdx_url = "https://web.archive.org/cdx/search/cdx"
params = {
"url": url,
"output": "json",
"limit": limit,
"fl": "timestamp,statuscode,original",
"filter": "statuscode:200",
"collapse": "timestamp:6", # One per month
}
resp = requests.get(cdx_url, params=params, timeout=30)
data = resp.json()
if len(data) <= 1: # First row is headers
print(f"No archivedRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.