performing-paste-site-monitoring-for-credentials
यह क्या करती है
यह AI एजेंट उन सार्वजनिक साइटों पर खोज करता है जहाँ लोग कोड और टेक्स्ट शेयर करते हैं (जिन्हें 'paste sites' कहते हैं), और वहाँ पासवर्ड व एक्सेस की जैसी संवेदनशील जानकारी ढूँढता है। इससे डेटा लीक जल्दी पकड़ में आता है।
कब इस्तेमाल करें
- ✓यह जाँचने के लिए कि आपकी कंपनी की गोपनीय जानकारी लीक तो नहीं हुई।
- ✓किसी security incident की जाँच करते समय।
- ✓समय-समय पर सिस्टम की सुरक्षा टेस्ट करने के लिए।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-paste-site-monitoring-for-credentials/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी कंपनी के credential leaks के लिए paste sites स्कैन करो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह प्रोग्राम अपने आप Pastebin और GitHub Gists जैसी साइटों तक पहुँचता है। फिर वह पासवर्ड, एक्सेस की या दूसरी महत्वपूर्ण जानकारी जैसे पैटर्न ढूँढता है, जो आपकी दी गई keyword सूचियों के आधार पर होते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Performing Paste Site Monitoring for Credentials
Overview
Paste sites (Pastebin, GitHub Gists, Ghostbin, Dpaste, Hastebin) are frequently used as staging areas for leaked credentials, database dumps, API keys, and sensitive data before wider distribution on dark web forums and Telegram channels. Monitoring these sites provides early breach detection, enabling organizations to respond before stolen data is weaponized. This skill covers building automated paste site monitors using the Pastebin Scraping API, keyword-based alerting, credential pattern matching, and integration with incident response workflows.
When to Use
- When conducting security assessments that involve performing paste site monitoring for credentials
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Python 3.9+ with
requests,beautifulsoup4,regex,pymisplibraries - Pastebin PRO account with Scraping API access ($49.95/month for programmatic access)
- GitHub API token for Gist monitoring
- Keyword lists specific to your organization (domains, project names, internal terms)
- Elasticsearch or database for paste storage and search
Key Concepts
Paste Site Threat Landscape
Over 300,000 user credentials are posted on Pastebin annually, averaging 1,000 username/password pairs per leak. Paste sites serve three primary threat intelligence purposes: early breach detection (credentials appear on paste sites before dark web), threat actor profiling (actors use paste sites for C2 configuration, data staging, tool sharing), and malware discovery (encoded payloads, configuration files, C2 addresses).
Monitoring Approaches
Active monitoring queries paste site APIs or scraping endpoints at regular intervals. The Pastebin Scraping API provides real-time access to new public pastes. For GitHub, the search API allows monitoring Gists and repository commits for exposed secrets. Passive monitoring uses services like IntelX, Dehashed, or Have I Been Pwned that aggregate paste site data.
Credential Pattern Detection
Effective monitoring uses regex patterns for email:password combinations, API keys (AWS, Azure, GCP, Stripe, Twilio), database connection strings, private keys (SSH, PGP), JWT tokens, and internal hostnames/URLs. Organization-specific keywords (domain names, product names, employee names) reduce false positives.
Workflow
Step 1: Pastebin Scraping API Monitor
import requests
import re
import json
import time
from datetime import datetime
class PastebinMonitor:
SCRAPING_URL = "https://scrape.pastebin.com/api_scraping.php"
RAW_URL = "https://scrape.pastebin.com/api_scrape_item.php"
def __init__(self, keywords, output_dir="paste_alerts"):
self.keywords = [k.lower() for k in keywords]
self.output_dir = output_dir
self.seen_keys = set()
self.credential_patterns = {
"email_password": re.compile(
r'[\w.+-]+@[\w-]+\.[\w.]+[\s:;|,]+[\S]{6,}', re.IGNORECASE),
"aws_key": re.compile(
r'AKIA[0-9A-Z]{16}'),
"aws_secret": re.compile(
r'[0-9a-zA-Z/+=]{40}'),
"github_token": re.compile(
r'ghp_[0-9a-zA-Z]{36}'),
"slack_token": re.compile(
r'xox[baprs]-[0-9a-zA-Z-]+'),
"private_key": re.compile(
r'-----BEGIN (?:RSA |EC |DSA )?PRIVATE KEY-----'),
"jwt_token": re.compile(
r'eyJ[A-Za-z0-9-_]+\.eyJ[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+'),
"connection_string": re.compile(
r'(?:mongodb|postgres|mysql|redis)://[^\s]+'),
"api_key_generic": re.compile(
r'(?:api[_-]?key|apikey|access[_-]?token)[\s]*[=:]\s*["\']?[\w-]{20,}',
re.IGNORECASE),
}
def fetch_recent_pastes(self, limit=100):
"""Fetch recent public pastes from Pastebin Scraping API."""
params = {"limit": limit}
try:
resp = requests.get(self.SCRAPING_URL, params=params, timeout=30)
if resp.status_code == 200:
pastes = resp.json()
print(f"[+] Fetched {len(pastes)} recent pastes")
return pastes
else:
print(f"[-] API error: {resp.status_code}")
…
अक्सर पूछे जाने वाले सवाल
'paste sites' क्या होती हैं?
ये वेबसाइटें हैं जहाँ लोग टेक्स्ट या कोड पेस्ट करके शेयर कर सकते हैं, जैसे Pastebin और GitHub Gists। दुर्भाग्य से कई बार इन पर चोरी की गई जानकारी भी शेयर होती है।
क्या इसके लिए पैसे देने होंगे?
Pastebin को अपने आप और रियल-टाइम में मॉनिटर करने के लिए scraping API एक्सेस वाला paid अकाउंट (Pastebin PRO) चाहिए। GitHub के लिए API access token की ज़रूरत होती है।
इसे कैसे पता चलता है कि क्या ढूँढना है?
यह पासवर्ड, API keys (जैसे क्लाउड सेवाओं की) और दूसरी संवेदनशील जानकारी के आम पैटर्न खोजता है। आप अपनी कंपनी के हिसाब से keyword सूचियाँ भी दे सकते हैं, ताकि खोज बेहतर हो और गलत अलार्म कम आएँ।
जानकारी
लेखक का मूल विवरण
Monitor paste sites like Pastebin and GitHub Gists for leaked credentials, API keys, and sensitive data dumps using automated scraping and keyword matching to detect breaches early.
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #8281
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
tavily
394kयह आपके एजेंट को Tavily से वेब पर खोजने और खास वेब पेजों से टेक्स्ट निकालने देती है, गहराई, डोमेन और तारीख के विकल्पों के साथ।
blogwatcher
394kयह आपके एजेंट को ब्लॉग और RSS या Atom फ़ीड फ़ॉलो करने, उनमें नए लेख जांचने और जो लेख आपने पढ़ लिए हों उन्हें चिह्नित करने देती है।
data-scraper-agent
280kएजेंट को किसी भी public स्रोत से अपने-आप डेटा इकट्ठा करने में मदद करता है। इसे schedule किया जा सकता है, जानकारी को और बेहतर बनाया जा सकता है और नतीजे सेव किए जा सकते हैं। ऑनलाइन डेटा पर नज़र रखने के लिए उपयोगी है।