[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B8T3GRVCW3EEZE6VXWRWZT":3,"skill-same:01M7B8T3GRVCW3EEZE6VXWRWZT":108},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":72,"commitSha":73,"skillDirectory":74,"forksCount":13,"repositoryHtmlUrl":75,"repositoryHomepageUrl":6,"ownerHtmlUrl":76,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":77,"install":78,"resources":91},"01M7B8T3GRVCW3EEZE6VXWRWZT","performing-paste-site-monitoring-for-credentials",null,"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.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-paste-site-monitoring-for-credentials\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-paste-site-monitoring-for-credentials\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: performing-paste-site-monitoring-for-credentials\ndescription: Monitor paste sites like Pastebin and GitHub Gists for leaked credentials,\n  API keys, and sensitive data dumps using automated scraping and keyword matching\n  to detect breaches early.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags:\n- paste-monitoring\n- credential-leak\n- pastebin\n- data-breach\n- threat-intelligence\n- osint\n- early-warning\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-01\n- ID.RA-05\n- DE.CM-01\n- DE.AE-02\nmitre_attack:\n- T1591\n- T1592\n- T1593\n- T1589\n- T1003\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - reconnaissance\n  - resource-development\n  - initial-access\n  techniques:\n  - id: T1593\n    name: Search Open Websites\u002FDomains\n    tactic: reconnaissance\n    source: attack\n  - id: T1593.002\n    name: 'Search Open Websites\u002FDomains: Search Engines'\n    tactic: reconnaissance\n    source: attack\n  - id: T1650\n    name: Acquire Access\n    tactic: resource-development\n    source: attack\n  - id: T1555.003\n    name: 'Credentials from Password Stores: Credentials from Web Browsers'\n    tactic: reconnaissance\n    source: attack\n  - id: T1110.004\n    name: 'Brute Force:  Credential Stuffing'\n    tactic: initial-access\n    source: attack\n  - id: F1029\n    name: Gather Customer Information\n    tactic: reconnaissance\n    source: f3\n---\n# Performing Paste Site Monitoring for Credentials\n\n## Overview\n\nPaste 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.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing paste site monitoring for credentials\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Python 3.9+ with `requests`, `beautifulsoup4`, `regex`, `pymisp` libraries\n- Pastebin PRO account with Scraping API access ($49.95\u002Fmonth for programmatic access)\n- GitHub API token for Gist monitoring\n- Keyword lists specific to your organization (domains, project names, internal terms)\n- Elasticsearch or database for paste storage and search\n\n## Key Concepts\n\n### Paste Site Threat Landscape\n\nOver 300,000 user credentials are posted on Pastebin annually, averaging 1,000 username\u002Fpassword 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).\n\n### Monitoring Approaches\n\nActive 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.\n\n### Credential Pattern Detection\n\nEffective 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\u002FURLs. Organization-specific keywords (domain names, product names, employee names) reduce false positives.\n\n## Workflow\n\n### Step 1: Pastebin Scraping API Monitor\n\n```python\nimport requests\nimport re\nimport json\nimport time\nfrom datetime import datetime\n\nclass PastebinMonitor:\n    SCRAPING_URL = \"https:\u002F\u002Fscrape.pastebin.com\u002Fapi_scraping.php\"\n    RAW_URL = \"https:\u002F\u002Fscrape.pastebin.com\u002Fapi_scrape_item.php\"\n\n    def __init__(self, keywords, output_dir=\"paste_alerts\"):\n        self.keywords = [k.lower() for k in keywords]\n        self.output_dir = output_dir\n        self.seen_keys = set()\n        self.credential_patterns = {\n            \"email_password\": re.compile(\n                r'[\\w.+-]+@[\\w-]+\\.[\\w.]+[\\s:;|,]+[\\S]{6,}', re.IGNORECASE),\n            \"aws_key\": re.compile(\n                r'AKIA[0-9A-Z]{16}'),\n            \"aws_secret\": re.compile(\n                r'[0-9a-zA-Z\u002F+=]{40}'),\n            \"github_token\": re.compile(\n                r'ghp_[0-9a-zA-Z]{36}'),\n            \"slack_token\": re.compile(\n                r'xox[baprs]-[0-9a-zA-Z-]+'),\n            \"private_key\": re.compile(\n                r'-----BEGIN (?:RSA |EC |DSA )?PRIVATE KEY-----'),\n            \"jwt_token\": re.compile(\n                r'eyJ[A-Za-z0-9-_]+\\.eyJ[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+'),\n            \"connection_string\": re.compile(\n                r'(?:mongodb|postgres|mysql|redis):\u002F\u002F[^\\s]+'),\n            \"api_key_generic\": re.compile(\n                r'(?:api[_-]?key|apikey|access[_-]?token)[\\s]*[=:]\\s*[\"\\']?[\\w-]{20,}',\n                re.IGNORECASE),\n        }\n\n    def fetch_recent_pastes(self, limit=100):\n        \"\"\"Fetch recent public pastes from Pastebin Scraping API.\"\"\"\n        params = {\"limit\": limit}\n        try:\n            resp = requests.get(self.SCRAPING_URL, params=params, timeout=30)\n            if resp.status_code == 200:\n                pastes = resp.json()\n                print(f\"[+] Fetched {len(pastes)} recent pastes\")\n                return pastes\n            else:\n                print(f\"[-] API error: {resp.status_code}\")\n                return []\n        except Exception as e:\n            print(f\"[-] Fetch error: {e}\")\n            return []\n\n    def get_paste_content(self, paste_key):\n        \"\"\"Get the raw content of a paste.\"\"\"\n        params = {\"i\": paste_key}\n        try:\n            resp = requests.get(self.RAW_URL, params=params, timeout=15)\n            if resp.status_code == 200:\n                return resp.text\n            return \"\"\n        except Exception:\n            return \"\"\n\n    def analyze_paste(self, content, paste_metadata):\n        \"\"\"Analyze paste content for credentials and keywords.\"\"\"\n        findings = {\n            \"keyword_matches\": [],\n            \"credential_matches\": {},\n            \"severity\": \"low\",\n        }\n\n        content_lower = content.lower()\n\n        # Check keywords\n        for keyword in self.keywords:\n            if keyword in content_lower:\n                count = content_lower.count(keyword)\n                findings[\"keyword_matches\"].append({\n                    \"keyword\": keyword,\n                    \"count\": count,\n                })\n\n        # Check credential patterns\n        for pattern_name, pattern in self.credential_patterns.items():\n            matches = pattern.findall(content)\n            if matches:\n                findings[\"credential_matches\"][pattern_name] = {\n                    \"count\": len(matches),\n                    \"samples\": matches[:3],\n                }\n\n        # Calculate severity\n        cred_count = sum(\n            m[\"count\"] for m in findings[\"credential_matches\"].values()\n        )\n        if findings[\"keyword_matches\"] and cred_count > 0:\n            findings[\"severity\"] = \"critical\"\n        elif findings[\"keyword_matches\"]:\n            findings[\"severity\"] = \"high\"\n        elif cred_count > 10:\n            findings[\"severity\"] = \"high\"\n        elif cred_count > 0:\n            findings[\"severity\"] = \"medium\"\n\n        return findings\n\n    def monitor_loop(self, interval=120, iterations=None):\n        \"\"\"Continuous monitoring loop.\"\"\"\n        count = 0\n        while iterations is None or count \u003C iterations:\n            pastes = self.fetch_recent_pastes()\n            alerts = []\n\n            for paste in pastes:\n                paste_key = paste.get(\"key\", \"\")\n                if paste_key in self.seen_keys:\n                    continue\n                self.seen_keys.add(paste_key)\n\n                content = self.get_paste_content(paste_key)\n                if not content:\n                    continue\n\n                findings = self.analyze_paste(content, paste)\n                if findings[\"severity\"] != \"low\":\n                    alert = {\n                        \"paste_key\": paste_key,\n                        \"title\": paste.get(\"title\", \"Untitled\"),\n                        \"user\": paste.get(\"user\", \"Anonymous\"),\n                        \"date\": paste.get(\"date\", \"\"),\n                        \"size\": paste.get(\"size\", 0),\n                        \"url\": f\"https:\u002F\u002Fpastebin.com\u002F{paste_key}\",\n                        \"findings\": findings,\n                        \"detected_at\": datetime.now().isoformat(),\n                    }\n                    alerts.append(alert)\n                    print(f\"  [ALERT-{findings['severity'].upper()}] \"\n                          f\"{paste_key}: {findings['keyword_matches']}\")\n\n            if alerts:\n                self._save_alerts(alerts)\n\n            count += 1\n            if iterations is None or count \u003C iterations:\n                time.sleep(interval)\n\n        return alerts\n\n    def _save_alerts(self, alerts):\n        \"\"\"Save alerts to JSON file.\"\"\"\n        filename = f\"{self.output_dir}\u002Falerts_{datetime.now().strftime('%Y%m%d_%H%M%S')}.json\"\n        import os\n        os.makedirs(self.output_dir, exist_ok=True)\n        with open(filename, \"w\") as f:\n            json.dump(alerts, f, indent=2)\n        print(f\"[+] Saved {len(alerts)} alerts to {filename}\")\n\nmonitor = PastebinMonitor(\n    keywords=[\"mycompany.com\", \"internal-project\", \"employee-name\"],\n)\nalerts = monitor.monitor_loop(interval=120, iterations=5)\n```\n\n### Step 2: GitHub Gist and Code Search Monitoring\n\n```python\nclass GitHubSecretMonitor:\n    def __init__(self, github_token, org_keywords):\n        self.token = github_token\n        self.keywords = org_keywords\n        self.headers = {\n            \"Authorization\": f\"token {github_token}\",\n            \"Accept\": \"application\u002Fvnd.github.v3+json\",\n        }\n\n    def search_code(self, query, per_page=30):\n        \"\"\"Search GitHub code for leaked secrets.\"\"\"\n        url = \"https:\u002F\u002Fapi.github.com\u002Fsearch\u002Fcode\"\n        params = {\"q\": query, \"per_page\": per_page}\n        resp = requests.get(url, headers=self.headers, params=params)\n        if resp.status_code == 200:\n            results = resp.json().get(\"items\", [])\n            print(f\"[+] GitHub code search: {len(results)} results for '{query}'\")\n            return results\n        return []\n\n    def search_gists(self, keyword):\n        \"\"\"Search public Gists for sensitive data.\"\"\"\n        url = \"https:\u002F\u002Fapi.github.com\u002Fgists\u002Fpublic\"\n        params = {\"per_page\": 100}\n        resp = requests.get(url, headers=self.headers, params=params)\n        matches = []\n        if resp.status_code == 200:\n            gists = resp.json()\n            for gist in gists:\n                description = (gist.get(\"description\") or \"\").lower()\n                files = gist.get(\"files\", {})\n                for filename, file_info in files.items():\n                    if keyword.lower() in description or keyword.lower() in filename.lower():\n                        matches.append({\n                            \"gist_id\": gist[\"id\"],\n                            \"description\": gist.get(\"description\", \"\"),\n                            \"filename\": filename,\n                            \"url\": gist[\"html_url\"],\n                            \"created_at\": gist[\"created_at\"],\n                        })\n        return matches\n\n    def monitor_org_secrets(self, org_domain):\n        \"\"\"Monitor for organization secrets leaked on GitHub.\"\"\"\n        queries = [\n            f'\"{org_domain}\" password',\n            f'\"{org_domain}\" api_key',\n            f'\"{org_domain}\" secret',\n            f'\"{org_domain}\" token',\n            f'\"{org_domain}\" credentials',\n        ]\n        all_findings = []\n        for query in queries:\n            results = self.search_code(query)\n            for result in results:\n                all_findings.append({\n                    \"query\": query,\n                    \"repo\": result.get(\"repository\", {}).get(\"full_name\", \"\"),\n                    \"path\": result.get(\"path\", \"\"),\n                    \"url\": result.get(\"html_url\", \"\"),\n                    \"score\": result.get(\"score\", 0),\n                })\n            time.sleep(10)  # GitHub rate limiting\n        return all_findings\n\ngh_monitor = GitHubSecretMonitor(\"YOUR_GITHUB_TOKEN\", [\"mycompany.com\"])\nfindings = gh_monitor.monitor_org_secrets(\"mycompany.com\")\n```\n\n### Step 3: Alert and Incident Response Integration\n\n```python\ndef generate_credential_leak_alert(alert_data):\n    \"\"\"Generate incident alert for credential leak detection.\"\"\"\n    alert = {\n        \"title\": f\"Credential Leak Detected - {alert_data.get('severity', 'unknown').upper()}\",\n        \"source\": alert_data.get(\"url\", \"\"),\n        \"detected_at\": alert_data.get(\"detected_at\", \"\"),\n        \"severity\": alert_data.get(\"severity\", \"medium\"),\n        \"summary\": f\"Paste containing organization keywords and credentials found\",\n        \"keyword_matches\": alert_data.get(\"findings\", {}).get(\"keyword_matches\", []),\n        \"credential_types\": list(alert_data.get(\"findings\", {}).get(\"credential_matches\", {}).keys()),\n        \"recommended_actions\": [\n            \"Verify if leaked credentials are valid\",\n            \"Force password reset for affected accounts\",\n            \"Rotate exposed API keys and tokens\",\n            \"Check access logs for unauthorized usage\",\n            \"Report paste for takedown\",\n            \"Update monitoring keywords if new patterns found\",\n        ],\n    }\n    return alert\n```\n\n## Validation Criteria\n\n- Pastebin Scraping API queried successfully with rate limiting\n- Credential patterns detected (email:password, API keys, private keys)\n- Organization-specific keywords matched with context\n- GitHub code search identifies exposed secrets\n- Alerts generated with severity classification\n- Integration with incident response workflow\n\n## References\n\n- [Authentic8: Pastebin for CTI Research](https:\u002F\u002Fwww.authentic8.com\u002Fblog\u002Fwhat-is-pastebin-cyberthreat-intelligence)\n- [PasteHunter GitHub](https:\u002F\u002Fgithub.com\u002Fdibsy\u002Fpastehunter)\n- [Scavenger Credential Crawler](https:\u002F\u002Fgithub.com\u002Frndinfosecguy\u002FScavenger)\n- [Bitdefender: Credentials on Pastebin](https:\u002F\u002Fwww.bitdefender.com\u002Fen-us\u002Fblog\u002Fhotforsecurity\u002Fmore-than-300000-user-credentials-posted-on-pastebin-over-the-last-year)\n- [zSecurity: Pastebin Monitoring](https:\u002F\u002Fzsecurity.org\u002Fglossary\u002Fpastebin-monitoring\u002F)\n- [SecurityBoulevard: Need to Monitor Paste Sites](https:\u002F\u002Fsecurityboulevard.com\u002F2019\u002F11\u002Forvis-data-leak-and-the-need-to-monitor-paste-sites\u002F)\n","# Performing Paste Site Monitoring for Credentials\n\n## Overview\n\nPaste 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.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing paste site monitoring for credentials\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Python 3.9+ with `requests`, `beautifulsoup4`, `regex`, `pymisp` libraries\n- Pastebin PRO account with Scraping API access ($49.95\u002Fmonth for programmatic access)\n- GitHub API token for Gist monitoring\n- Keyword lists specific to your organization (domains, project names, internal terms)\n- Elasticsearch or database for paste storage and search\n\n## Key Concepts\n\n### Paste Site Threat Landscape\n\nOver 300,000 user credentials are posted on Pastebin annually, averaging 1,000 username\u002Fpassword 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).\n\n### Monitoring Approaches\n\nActive 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.\n\n### Credential Pattern Detection\n\nEffective 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\u002FURLs. Organization-specific keywords (domain names, product names, employee names) reduce false positives.\n\n## Workflow\n\n### Step 1: Pastebin Scraping API Monitor\n\n```python\nimport requests\nimport re\nimport json\nimport time\nfrom datetime import datetime\n\nclass PastebinMonitor:\n    SCRAPING_URL = \"https:\u002F\u002Fscrape.pastebin.com\u002Fapi_scraping.php\"\n    RAW_URL = \"https:\u002F\u002Fscrape.pastebin.com\u002Fapi_scrape_item.php\"\n\n    def __init__(self, keywords, output_dir=\"paste_alerts\"):\n        self.keywords = [k.lower() for k in keywords]\n        self.output_dir = output_dir\n        self.seen_keys = set()\n        self.credential_patterns = {\n            \"email_password\": re.compile(\n                r'[\\w.+-]+@[\\w-]+\\.[\\w.]+[\\s:;|,]+[\\S]{6,}', re.IGNORECASE),\n            \"aws_key\": re.compile(\n                r'AKIA[0-9A-Z]{16}'),\n            \"aws_secret\": re.compile(\n                r'[0-9a-zA-Z\u002F+=]{40}'),\n            \"github_token\": re.compile(\n                r'ghp_[0-9a-zA-Z]{36}'),\n            \"slack_token\": re.compile(\n                r'xox[baprs]-[0-9a-zA-Z-]+'),\n            \"private_key\": re.compile(\n                r'-----BEGIN (?:RSA |EC |DSA )?PRIVATE KEY-----'),\n            \"jwt_token\": re.compile(\n                r'eyJ[A-Za-z0-9-_]+\\.eyJ[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+'),\n            \"connection_string\": re.compile(\n                r'(?:mongodb|postgres|mysql|redis):\u002F\u002F[^\\s]+'),\n            \"api_key_generic\": re.compile(\n                r'(?:api[_-]?key|apikey|access[_-]?token)[\\s]*[=:]\\s*[\"\\']?[\\w-]{20,}',\n                re.IGNORECASE),\n        }\n\n    def fetch_recent_pastes(self, limit=100):\n        \"\"\"Fetch recent public pastes from Pastebin Scraping API.\"\"\"\n        params = {\"limit\": limit}\n        try:\n            resp = requests.get(self.SCRAPING_URL, params=params, timeout=30)\n            if resp.status_code == 200:\n                pastes = resp.json()\n                print(f\"[+] Fetched {len(pastes)} recent pastes\")\n                return pastes\n            else:\n                print(f\"[-] API error: {resp.status_code}\")\n                return []\n        except Exception as e:\n            print(f\"[-] Fetch error: {e}\")\n            return []\n\n    def get_paste_content(self, paste_key):\n        \"\"\"Get the raw content of a paste.\"\"\"\n        params = {\"i\": paste_key}\n        try:\n            resp = requests.get(self.RAW_URL, params=params, timeout=15)\n            if resp.status_code == 200:\n                return resp.text\n            return \"\"\n        except Exception:\n            return \"\"\n\n    def analyze_paste(self, content, paste_metadata):\n        \"\"\"Analyze paste content for credentials and keywords.\"\"\"\n        findings = {\n            \"keyword_matches\": [],\n            \"credential_matches\": {},\n            \"severity\": \"low\",\n        }\n\n        content_lower = content.lower()\n\n        # Check keywords\n        for keyword in self.keywords:\n            if keyword in content_lower:\n                count = content_lower.count(keyword)\n                findings[\"keyword_matches\"].append({\n                    \"keyword\": keyword,\n                    \"count\": count,\n                })\n\n        # Check credential patterns\n        for pattern_name, pattern in self.credential_patterns.items():\n            matches = pattern.findall(content)\n            if matches:\n                findings[\"credential_matches\"][pattern_name] = {\n                    \"count\": len(matches),\n                    \"samples\": matches[:3],\n                }\n\n        # Calculate severity\n        cred_count = sum(\n            m[\"count\"] for m in findings[\"credential_matches\"].values()\n        )\n        if findings[\"keyword_matches\"] and cred_count > 0:\n            findings[\"severity\"] = \"critical\"\n        elif findings[\"keyword_matches\"]:\n            findings[\"severity\"] = \"high\"\n        elif cred_count > 10:\n            findings[\"severity\"] = \"high\"\n        elif cred_count > 0:\n            findings[\"severity\"] = \"medium\"\n\n        return findings\n\n    def monitor_loop(self, interval=120, iterations=None):\n        \"\"\"Continuous monitoring loop.\"\"\"\n        count = 0\n        while iterations is None or count \u003C iterations:\n            pastes = self.fetch_recent_pastes()\n            alerts = []\n\n            for paste in pastes:\n                paste_key = paste.get(\"key\", \"\")\n                if paste_key in self.seen_keys:\n                    continue\n                self.seen_keys.add(paste_key)\n\n                content = self.get_paste_content(paste_key)\n                if not content:\n                    continue\n\n                findings = self.analyze_paste(content, paste)\n                if findings[\"severity\"] != \"low\":\n                    alert = {\n                        \"paste_key\": paste_key,\n                        \"title\": paste.get(\"title\", \"Untitled\"),\n                        \"user\": paste.get(\"user\", \"Anonymous\"),\n                        \"date\": paste.get(\"date\", \"\"),\n                        \"size\": paste.get(\"size\", 0),\n                        \"url\": f\"https:\u002F\u002Fpastebin.com\u002F{paste_key}\",\n                        \"findings\": findings,\n                        \"detected_at\": datetime.now().isoformat(),\n                    }\n                    alerts.append(alert)\n                    print(f\"  [ALERT-{findings['severity'].upper()}] \"\n                          f\"{paste_key}: {findings['keyword_matches']}\")\n\n            if alerts:\n                self._save_alerts(alerts)\n\n            count += 1\n            if iterations is None or count \u003C iterations:\n                time.sleep(interval)\n\n        return alerts\n\n    def _save_alerts(self, alerts):\n        \"\"\"Save alerts to JSON file.\"\"\"\n        filename = f\"{self.output_dir}\u002Falerts_{datetime.now().strftime('%Y%m%d_%H%M%S')}.json\"\n        import os\n        os.makedirs(self.output_dir, exist_ok=True)\n        with open(filename, \"w\") as f:\n            json.dump(alerts, f, indent=2)\n        print(f\"[+] Saved {len(alerts)} alerts to {filename}\")\n\nmonitor = PastebinMonitor(\n    keywords=[\"mycompany.com\", \"internal-project\", \"employee-name\"],\n)\nalerts = monitor.monitor_loop(interval=120, iterations=5)\n```\n\n### Step 2: GitHub Gist and Code Search Monitoring\n\n```python\nclass GitHubSecretMonitor:\n    def __init__(self, github_token, org_keywords):\n        self.token = github_token\n        self.keywords = org_keywords\n        self.headers = {\n            \"Authorization\": f\"token {github_token}\",\n            \"Accept\": \"application\u002Fvnd.github.v3+json\",\n        }\n\n    def search_code(self, query, per_page=30):\n        \"\"\"Search GitHub code for leaked secrets.\"\"\"\n        url = \"https:\u002F\u002Fapi.github.com\u002Fsearch\u002Fcode\"\n        params = {\"q\": query, \"per_page\": per_page}\n        resp = requests.get(url, headers=self.headers, params=params)\n        if resp.status_code == 200:\n            results = resp.json().get(\"items\", [])\n            print(f\"[+] GitHub code search: {len(results)} results for '{query}'\")\n            return results\n        return []\n\n    def search_gists(self, keyword):\n        \"\"\"Search public Gists for sensitive data.\"\"\"\n        url = \"https:\u002F\u002Fapi.github.com\u002Fgists\u002Fpublic\"\n        params = {\"per_page\": 100}\n        resp = requests.get(url, headers=self.headers, params=params)\n        matches = []\n        if resp.status_code == 200:\n            gists = resp.json()\n            for gist in gists:\n                description = (gist.get(\"description\") or \"\").lower()\n                files = gist.get(\"files\", {})\n                for filename, file_info in files.items():\n                    if keyword.lower() in description or keyword.lower() in filename.lower():\n                        matches.append({\n                            \"gist_id\": gist[\"id\"],\n                            \"description\": gist.get(\"description\", \"\"),\n                            \"filename\": filename,\n                            \"url\": gist[\"html_url\"],\n                            \"created_at\": gist[\"created_at\"],\n                        })\n        return matches\n\n    def monitor_org_secrets(self, org_domain):\n        \"\"\"Monitor for organization secrets leaked on GitHub.\"\"\"\n        queries = [\n            f'\"{org_domain}\" password',\n            f'\"{org_domain}\" api_key',\n            f'\"{org_domain}\" secret',\n            f'\"{org_domain}\" token',\n            f'\"{org_domain}\" credentials',\n        ]\n        all_findings = []\n        for query in queries:\n            results = self.search_code(query)\n            for result in results:\n                all_findings.append({\n                    \"query\": query,\n                    \"repo\": result.get(\"repository\", {}).get(\"full_name\", \"\"),\n                    \"path\": result.get(\"path\", \"\"),\n                    \"url\": result.get(\"html_url\", \"\"),\n                    \"score\": result.get(\"score\", 0),\n                })\n            time.sleep(10)  # GitHub rate limiting\n        return all_findings\n\ngh_monitor = GitHubSecretMonitor(\"YOUR_GITHUB_TOKEN\", [\"mycompany.com\"])\nfindings = gh_monitor.monitor_org_secrets(\"mycompany.com\")\n```\n\n### Step 3: Alert and Incident Response Integration\n\n```python\ndef generate_credential_leak_alert(alert_data):\n    \"\"\"Generate incident alert for credential leak detection.\"\"\"\n    alert = {\n        \"title\": f\"Credential Leak Detected - {alert_data.get('severity', 'unknown').upper()}\",\n        \"source\": alert_data.get(\"url\", \"\"),\n        \"detected_at\": alert_data.get(\"detected_at\", \"\"),\n        \"severity\": alert_data.get(\"severity\", \"medium\"),\n        \"summary\": f\"Paste containing organization keywords and credentials found\",\n        \"keyword_matches\": alert_data.get(\"findings\", {}).get(\"keyword_matches\", []),\n        \"credential_types\": list(alert_data.get(\"findings\", {}).get(\"credential_matches\", {}).keys()),\n        \"recommended_actions\": [\n            \"Verify if leaked credentials are valid\",\n            \"Force password reset for affected accounts\",\n            \"Rotate exposed API keys and tokens\",\n            \"Check access logs for unauthorized usage\",\n            \"Report paste for takedown\",\n            \"Update monitoring keywords if new patterns found\",\n        ],\n    }\n    return alert\n```\n\n## Validation Criteria\n\n- Pastebin Scraping API queried successfully with rate limiting\n- Credential patterns detected (email:password, API keys, private keys)\n- Organization-specific keywords matched with context\n- GitHub code search identifies exposed secrets\n- Alerts generated with severity classification\n- Integration with incident response workflow\n\n## References\n\n- [Authentic8: Pastebin for CTI Research](https:\u002F\u002Fwww.authentic8.com\u002Fblog\u002Fwhat-is-pastebin-cyberthreat-intelligence)\n- [PasteHunter GitHub](https:\u002F\u002Fgithub.com\u002Fdibsy\u002Fpastehunter)\n- [Scavenger Credential Crawler](https:\u002F\u002Fgithub.com\u002Frndinfosecguy\u002FScavenger)\n- [Bitdefender: Credentials on Pastebin](https:\u002F\u002Fwww.bitdefender.com\u002Fen-us\u002Fblog\u002Fhotforsecurity\u002Fmore-than-300000-user-credentials-posted-on-pastebin-over-the-last-year)\n- [zSecurity: Pastebin Monitoring](https:\u002F\u002Fzsecurity.org\u002Fglossary\u002Fpastebin-monitoring\u002F)\n- [SecurityBoulevard: Need to Monitor Paste Sites](https:\u002F\u002Fsecurityboulevard.com\u002F2019\u002F11\u002Forvis-data-leak-and-the-need-to-monitor-paste-sites\u002F)\n",{"name":5,"tags":24,"author":32,"domain":33,"license":14,"version":34,"mitre_f3":35,"nist_csf":62,"subdomain":29,"description":7,"mitre_attack":67},[25,26,27,28,29,30,31],"paste-monitoring","credential-leak","pastebin","data-breach","threat-intelligence","osint","early-warning","mahipal","cybersecurity","1.0",{"tactics":36,"version":40,"techniques":41},[37,38,39],"reconnaissance","resource-development","initial-access","1.1",[42,46,49,52,55,58],{"id":43,"name":44,"source":45,"tactic":37},"T1593","Search Open Websites\u002FDomains","attack",{"id":47,"name":48,"source":45,"tactic":37},"T1593.002","Search Open Websites\u002FDomains: Search Engines",{"id":50,"name":51,"source":45,"tactic":38},"T1650","Acquire Access",{"id":53,"name":54,"source":45,"tactic":37},"T1555.003","Credentials from Password Stores: Credentials from Web Browsers",{"id":56,"name":57,"source":45,"tactic":39},"T1110.004","Brute Force:  Credential Stuffing",{"id":59,"name":60,"source":61,"tactic":37},"F1029","Gather Customer Information","f3",[63,64,65,66],"ID.RA-01","ID.RA-05","DE.CM-01","DE.AE-02",[68,69,43,70,71],"T1591","T1592","T1589","T1003","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-paste-site-monitoring-for-credentials","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":79,"prompt":89,"zipAvailable":90},[80,83,86],{"tool":81,"command":82},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill performing-paste-site-monitoring-for-credentials",{"tool":84,"command":85},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill performing-paste-site-monitoring-for-credentials",{"tool":87,"command":88},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill performing-paste-site-monitoring-for-credentials","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-paste-site-monitoring-for-credentials\u002FSKILL.md",true,[92,96,102],{"path":93,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fapi-reference.md","REFERENCE","参考文档",1470,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-paste-site-monitoring-for-credentials\u002Freferences\u002Fapi-reference.md",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fagent.py","SCRIPT","脚本",7138,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-paste-site-monitoring-for-credentials\u002Fscripts\u002Fagent.py",[109,117,124,131,138,145],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":113,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":113,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":113,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":113,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":113,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":113,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]