[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B4ZF82K7VXWMJM8FHWWKHW":3,"skill-same:01M7B4ZF82K7VXWMJM8FHWWKHW":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},"01M7B4ZF82K7VXWMJM8FHWWKHW","analyzing-typosquatting-domains-with-dnstwist",null,"Generate domain permutations with dnstwist and check DNS resolution to detect typosquatting, homograph phishing, and brand impersonation domains registered against your organization. Use when asked to monitor for lookalike domains, investigate a phishing domain, or assess brand-impersonation risk.","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\u002Fanalyzing-typosquatting-domains-with-dnstwist\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-typosquatting-domains-with-dnstwist\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: analyzing-typosquatting-domains-with-dnstwist\ndescription: Generate domain permutations with dnstwist and check DNS resolution\n  to detect typosquatting, homograph phishing, and brand impersonation domains registered\n  against your organization. Use when asked to monitor for lookalike domains, investigate\n  a phishing domain, or assess brand-impersonation risk.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags:\n- dnstwist\n- typosquatting\n- phishing\n- domain-monitoring\n- brand-protection\n- homograph\n- dns\n- threat-intelligence\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\natlas_techniques:\n- AML.T0073\n- AML.T0052\nnist_csf:\n- ID.RA-01\n- ID.RA-05\n- DE.CM-01\n- DE.AE-02\nmitre_attack:\n- T1583.001\n- T1566.002\n- T1598.003\n- T1583.006\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - resource-development\n  - reconnaissance\n  - initial-access\n  techniques:\n  - id: T1583.001\n    name: 'Acquire Infrastructure: Domains'\n    tactic: resource-development\n    source: attack\n  - id: F1020.002\n    name: 'Create Fake Materials: Fake Website'\n    tactic: resource-development\n    source: f3\n  - id: T1598\n    name: Phishing for Information\n    tactic: reconnaissance\n    source: attack\n  - id: T1593\n    name: Search Open Websites\u002FDomains\n    tactic: reconnaissance\n    source: attack\n  - id: T1660\n    name: Phishing\n    tactic: initial-access\n    source: attack\n---\n# Analyzing Typosquatting Domains with DNSTwist\n\n## Overview\n\nDNSTwist is a domain name permutation engine that generates similar-looking domain names to detect typosquatting, homograph phishing attacks, and brand impersonation. It creates thousands of domain permutations using techniques like character substitution, transposition, insertion, omission, and homoglyph replacement, then checks DNS records (A, AAAA, NS, MX), calculates web page similarity using fuzzy hashing (ssdeep) and perceptual hashing (pHash), and identifies potentially malicious registered domains.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing typosquatting domains with dnstwist\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Python 3.9+ with `dnstwist` installed (`pip install dnstwist[full]`)\n- Optional: GeoIP database for IP geolocation\n- Optional: Shodan API key for enrichment\n- Network access to perform DNS queries\n- Understanding of DNS record types and domain registration\n\n## Key Concepts\n\n### Domain Permutation Techniques\n\nDNSTwist generates permutations using: addition (appending characters), bitsquatting (bit-flip errors), homoglyph (visually similar Unicode characters like rn vs m), hyphenation (adding hyphens), insertion (inserting characters), omission (removing characters), repetition (repeating characters), replacement (replacing with adjacent keyboard keys), subdomain (inserting dots), transposition (swapping adjacent characters), vowel-swap (swapping vowels), and dictionary-based (appending common words).\n\n### Fuzzy Hashing and Visual Similarity\n\nDNSTwist uses ssdeep (locality-sensitive hash) to compare HTML content and pHash (perceptual hash) to compare screenshots of web pages. This helps identify cloned phishing sites that visually mimic the legitimate site. A high similarity score indicates a likely phishing page.\n\n### Detection Workflow\n\nThe typical workflow is: generate domain permutations -> resolve DNS records -> check for registered domains -> compare web page similarity -> flag suspicious domains -> alert security team -> request takedown. For a typical corporate domain, dnstwist generates 5,000-10,000 permutations.\n\n## Workflow\n\n### Step 1: Basic Domain Permutation Scan\n\n```python\nimport subprocess\nimport json\nimport csv\nfrom datetime import datetime\n\ndef run_dnstwist_scan(domain, output_file=None):\n    \"\"\"Run dnstwist scan against a target domain.\"\"\"\n    cmd = [\n        \"dnstwist\",\n        \"--registered\",     # Only show registered domains\n        \"--format\", \"json\", # Output in JSON\n        \"--nameservers\", \"8.8.8.8,1.1.1.1\",\n        \"--threads\", \"50\",\n        \"--mxcheck\",        # Check MX records\n        \"--ssdeep\",         # Fuzzy hash comparison\n        \"--geoip\",          # GeoIP lookup\n        domain,\n    ]\n\n    print(f\"[*] Scanning permutations for: {domain}\")\n    result = subprocess.run(cmd, capture_output=True, text=True, timeout=600)\n\n    if result.returncode == 0:\n        results = json.loads(result.stdout)\n        registered = [r for r in results if r.get(\"dns_a\") or r.get(\"dns_aaaa\")]\n        print(f\"[+] Found {len(registered)} registered lookalike domains\")\n\n        if output_file:\n            with open(output_file, \"w\") as f:\n                json.dump(registered, f, indent=2)\n            print(f\"[+] Results saved to {output_file}\")\n\n        return registered\n    else:\n        print(f\"[-] dnstwist error: {result.stderr}\")\n        return []\n\nresults = run_dnstwist_scan(\"example.com\", \"typosquat_results.json\")\n```\n\n### Step 2: Analyze and Prioritize Results\n\n```python\ndef analyze_results(results, legitimate_ips=None):\n    \"\"\"Analyze dnstwist results and prioritize threats.\"\"\"\n    legitimate_ips = legitimate_ips or set()\n    high_risk = []\n    medium_risk = []\n    low_risk = []\n\n    for entry in results:\n        domain = entry.get(\"domain\", \"\")\n        fuzzer = entry.get(\"fuzzer\", \"\")\n        dns_a = entry.get(\"dns_a\", [])\n        dns_mx = entry.get(\"dns_mx\", [])\n        ssdeep_score = entry.get(\"ssdeep_score\", 0)\n\n        risk_score = 0\n        risk_factors = []\n\n        # High similarity to legitimate site\n        if ssdeep_score and ssdeep_score > 50:\n            risk_score += 40\n            risk_factors.append(f\"high web similarity ({ssdeep_score}%)\")\n\n        # Has MX records (can receive email \u002F phishing)\n        if dns_mx:\n            risk_score += 20\n            risk_factors.append(\"has MX records (email capable)\")\n\n        # Recently registered (if whois data available)\n        whois_created = entry.get(\"whois_created\", \"\")\n        if whois_created:\n            try:\n                created = datetime.fromisoformat(whois_created.replace(\"Z\", \"+00:00\"))\n                age_days = (datetime.now(created.tzinfo) - created).days\n                if age_days \u003C 30:\n                    risk_score += 30\n                    risk_factors.append(f\"recently registered ({age_days} days)\")\n                elif age_days \u003C 90:\n                    risk_score += 15\n                    risk_factors.append(f\"registered {age_days} days ago\")\n            except (ValueError, TypeError):\n                pass\n\n        # Homoglyph attacks are highest risk\n        if fuzzer == \"homoglyph\":\n            risk_score += 25\n            risk_factors.append(\"homoglyph (visually identical)\")\n        elif fuzzer in (\"addition\", \"replacement\", \"transposition\"):\n            risk_score += 10\n            risk_factors.append(f\"permutation type: {fuzzer}\")\n\n        # Not pointing to legitimate infrastructure\n        if dns_a and not set(dns_a).intersection(legitimate_ips):\n            risk_score += 10\n            risk_factors.append(\"different IP from legitimate\")\n\n        entry[\"risk_score\"] = risk_score\n        entry[\"risk_factors\"] = risk_factors\n\n        if risk_score >= 50:\n            high_risk.append(entry)\n        elif risk_score >= 25:\n            medium_risk.append(entry)\n        else:\n            low_risk.append(entry)\n\n    high_risk.sort(key=lambda x: x[\"risk_score\"], reverse=True)\n    medium_risk.sort(key=lambda x: x[\"risk_score\"], reverse=True)\n\n    print(f\"\\n=== Typosquatting Analysis ===\")\n    print(f\"High Risk: {len(high_risk)}\")\n    print(f\"Medium Risk: {len(medium_risk)}\")\n    print(f\"Low Risk: {len(low_risk)}\")\n\n    if high_risk:\n        print(f\"\\n--- High Risk Domains ---\")\n        for entry in high_risk[:10]:\n            print(f\"  {entry['domain']} (score: {entry['risk_score']})\")\n            for factor in entry['risk_factors']:\n                print(f\"    - {factor}\")\n\n    return {\"high\": high_risk, \"medium\": medium_risk, \"low\": low_risk}\n\nanalysis = analyze_results(results, legitimate_ips={\"93.184.216.34\"})\n```\n\n### Step 3: Continuous Monitoring Pipeline\n\n```python\nimport time\nimport hashlib\n\nclass TyposquatMonitor:\n    def __init__(self, domains, known_domains_file=\"known_typosquats.json\"):\n        self.domains = domains\n        self.known_file = known_domains_file\n        self.known_domains = self._load_known()\n\n    def _load_known(self):\n        try:\n            with open(self.known_file, \"r\") as f:\n                return json.load(f)\n        except FileNotFoundError:\n            return {}\n\n    def _save_known(self):\n        with open(self.known_file, \"w\") as f:\n            json.dump(self.known_domains, f, indent=2)\n\n    def scan_all_domains(self):\n        \"\"\"Scan all monitored domains for new typosquats.\"\"\"\n        new_findings = []\n        for domain in self.domains:\n            results = run_dnstwist_scan(domain)\n            for entry in results:\n                domain_key = entry.get(\"domain\", \"\")\n                if domain_key not in self.known_domains:\n                    entry[\"first_seen\"] = datetime.now().isoformat()\n                    entry[\"monitored_domain\"] = domain\n                    self.known_domains[domain_key] = entry\n                    new_findings.append(entry)\n                    print(f\"  [NEW] {domain_key} ({entry.get('fuzzer', '')})\")\n\n        self._save_known()\n        print(f\"\\n[+] New typosquatting domains found: {len(new_findings)}\")\n        return new_findings\n\n    def generate_alert(self, findings):\n        \"\"\"Generate alert for new high-risk typosquatting domains.\"\"\"\n        analysis = analyze_results(findings)\n        alerts = []\n        for entry in analysis[\"high\"]:\n            alerts.append({\n                \"severity\": \"HIGH\",\n                \"domain\": entry[\"domain\"],\n                \"target\": entry.get(\"monitored_domain\", \"\"),\n                \"risk_score\": entry[\"risk_score\"],\n                \"risk_factors\": entry[\"risk_factors\"],\n                \"dns_a\": entry.get(\"dns_a\", []),\n                \"dns_mx\": entry.get(\"dns_mx\", []),\n                \"timestamp\": datetime.now().isoformat(),\n            })\n        return alerts\n\nmonitor = TyposquatMonitor([\"mycompany.com\", \"mycompany.org\"])\nnew_findings = monitor.scan_all_domains()\nalerts = monitor.generate_alert(new_findings)\n```\n\n### Step 4: Export for Blocklist and Takedown\n\n```python\ndef export_blocklist(analysis, output_file=\"blocklist.txt\"):\n    \"\"\"Export high-risk domains as blocklist for firewall\u002Fproxy.\"\"\"\n    domains = []\n    for entry in analysis[\"high\"] + analysis[\"medium\"]:\n        domain = entry.get(\"domain\", \"\")\n        if domain:\n            domains.append(domain)\n\n    with open(output_file, \"w\") as f:\n        f.write(f\"# Typosquatting blocklist generated {datetime.now().isoformat()}\\n\")\n        for d in sorted(set(domains)):\n            f.write(f\"{d}\\n\")\n\n    print(f\"[+] Blocklist saved: {len(domains)} domains -> {output_file}\")\n    return domains\n\ndef generate_takedown_report(high_risk_domains):\n    \"\"\"Generate takedown request report.\"\"\"\n    report = f\"\"\"# Domain Takedown Request\nGenerated: {datetime.now().isoformat()}\n\n## Summary\n{len(high_risk_domains)} domains identified as potential typosquatting\u002Fphishing.\n\n## Domains Requiring Takedown\n\"\"\"\n    for entry in high_risk_domains:\n        report += f\"\"\"\n### {entry['domain']}\n- **Permutation Type**: {entry.get('fuzzer', 'unknown')}\n- **IP Address**: {', '.join(entry.get('dns_a', ['N\u002FA']))}\n- **MX Records**: {', '.join(entry.get('dns_mx', ['N\u002FA']))}\n- **Risk Score**: {entry.get('risk_score', 0)}\n- **Risk Factors**: {'; '.join(entry.get('risk_factors', []))}\n- **Web Similarity**: {entry.get('ssdeep_score', 'N\u002FA')}%\n\"\"\"\n    with open(\"takedown_report.md\", \"w\") as f:\n        f.write(report)\n    print(\"[+] Takedown report generated: takedown_report.md\")\n\nexport_blocklist(analysis)\ngenerate_takedown_report(analysis[\"high\"])\n```\n\n## Validation Criteria\n\n- DNSTwist generates domain permutations for target domain\n- DNS resolution identifies registered lookalike domains\n- Web similarity scoring detects cloned phishing pages\n- Risk scoring prioritizes domains by threat level\n- Continuous monitoring detects newly registered typosquats\n- Blocklist and takedown reports generated correctly\n\n## References\n\n- [dnstwist GitHub Repository](https:\u002F\u002Fgithub.com\u002Felceef\u002Fdnstwist)\n- [dnstwister Online Service](https:\u002F\u002Fdnstwister.report\u002F)\n- [HawkEye: Detect Typosquatting with DNSTwist](https:\u002F\u002Fhawk-eye.io\u002F2022\u002F11\u002Fhow-to-detect-typosquatting-using-dnstwist\u002F)\n- [Darktrace: Monitoring Typosquatting Domains](https:\u002F\u002Fwww.darktrace.com\u002Fblog\u002Fvigilance-in-action-monitoring-typosquatting-domains)\n- [Security Risk Advisors: Domain Monitoring](https:\u002F\u002Fsra.io\u002Fblog\u002Fdomain-monitoring-fast-and-cheap\u002F)\n- [Conscia: How to Detect Typosquatting](https:\u002F\u002Fconscia.com\u002Fblog\u002Fdiving-deep-how-to-detect-typosquatting\u002F)\n","# Analyzing Typosquatting Domains with DNSTwist\n\n## Overview\n\nDNSTwist is a domain name permutation engine that generates similar-looking domain names to detect typosquatting, homograph phishing attacks, and brand impersonation. It creates thousands of domain permutations using techniques like character substitution, transposition, insertion, omission, and homoglyph replacement, then checks DNS records (A, AAAA, NS, MX), calculates web page similarity using fuzzy hashing (ssdeep) and perceptual hashing (pHash), and identifies potentially malicious registered domains.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing typosquatting domains with dnstwist\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Python 3.9+ with `dnstwist` installed (`pip install dnstwist[full]`)\n- Optional: GeoIP database for IP geolocation\n- Optional: Shodan API key for enrichment\n- Network access to perform DNS queries\n- Understanding of DNS record types and domain registration\n\n## Key Concepts\n\n### Domain Permutation Techniques\n\nDNSTwist generates permutations using: addition (appending characters), bitsquatting (bit-flip errors), homoglyph (visually similar Unicode characters like rn vs m), hyphenation (adding hyphens), insertion (inserting characters), omission (removing characters), repetition (repeating characters), replacement (replacing with adjacent keyboard keys), subdomain (inserting dots), transposition (swapping adjacent characters), vowel-swap (swapping vowels), and dictionary-based (appending common words).\n\n### Fuzzy Hashing and Visual Similarity\n\nDNSTwist uses ssdeep (locality-sensitive hash) to compare HTML content and pHash (perceptual hash) to compare screenshots of web pages. This helps identify cloned phishing sites that visually mimic the legitimate site. A high similarity score indicates a likely phishing page.\n\n### Detection Workflow\n\nThe typical workflow is: generate domain permutations -> resolve DNS records -> check for registered domains -> compare web page similarity -> flag suspicious domains -> alert security team -> request takedown. For a typical corporate domain, dnstwist generates 5,000-10,000 permutations.\n\n## Workflow\n\n### Step 1: Basic Domain Permutation Scan\n\n```python\nimport subprocess\nimport json\nimport csv\nfrom datetime import datetime\n\ndef run_dnstwist_scan(domain, output_file=None):\n    \"\"\"Run dnstwist scan against a target domain.\"\"\"\n    cmd = [\n        \"dnstwist\",\n        \"--registered\",     # Only show registered domains\n        \"--format\", \"json\", # Output in JSON\n        \"--nameservers\", \"8.8.8.8,1.1.1.1\",\n        \"--threads\", \"50\",\n        \"--mxcheck\",        # Check MX records\n        \"--ssdeep\",         # Fuzzy hash comparison\n        \"--geoip\",          # GeoIP lookup\n        domain,\n    ]\n\n    print(f\"[*] Scanning permutations for: {domain}\")\n    result = subprocess.run(cmd, capture_output=True, text=True, timeout=600)\n\n    if result.returncode == 0:\n        results = json.loads(result.stdout)\n        registered = [r for r in results if r.get(\"dns_a\") or r.get(\"dns_aaaa\")]\n        print(f\"[+] Found {len(registered)} registered lookalike domains\")\n\n        if output_file:\n            with open(output_file, \"w\") as f:\n                json.dump(registered, f, indent=2)\n            print(f\"[+] Results saved to {output_file}\")\n\n        return registered\n    else:\n        print(f\"[-] dnstwist error: {result.stderr}\")\n        return []\n\nresults = run_dnstwist_scan(\"example.com\", \"typosquat_results.json\")\n```\n\n### Step 2: Analyze and Prioritize Results\n\n```python\ndef analyze_results(results, legitimate_ips=None):\n    \"\"\"Analyze dnstwist results and prioritize threats.\"\"\"\n    legitimate_ips = legitimate_ips or set()\n    high_risk = []\n    medium_risk = []\n    low_risk = []\n\n    for entry in results:\n        domain = entry.get(\"domain\", \"\")\n        fuzzer = entry.get(\"fuzzer\", \"\")\n        dns_a = entry.get(\"dns_a\", [])\n        dns_mx = entry.get(\"dns_mx\", [])\n        ssdeep_score = entry.get(\"ssdeep_score\", 0)\n\n        risk_score = 0\n        risk_factors = []\n\n        # High similarity to legitimate site\n        if ssdeep_score and ssdeep_score > 50:\n            risk_score += 40\n            risk_factors.append(f\"high web similarity ({ssdeep_score}%)\")\n\n        # Has MX records (can receive email \u002F phishing)\n        if dns_mx:\n            risk_score += 20\n            risk_factors.append(\"has MX records (email capable)\")\n\n        # Recently registered (if whois data available)\n        whois_created = entry.get(\"whois_created\", \"\")\n        if whois_created:\n            try:\n                created = datetime.fromisoformat(whois_created.replace(\"Z\", \"+00:00\"))\n                age_days = (datetime.now(created.tzinfo) - created).days\n                if age_days \u003C 30:\n                    risk_score += 30\n                    risk_factors.append(f\"recently registered ({age_days} days)\")\n                elif age_days \u003C 90:\n                    risk_score += 15\n                    risk_factors.append(f\"registered {age_days} days ago\")\n            except (ValueError, TypeError):\n                pass\n\n        # Homoglyph attacks are highest risk\n        if fuzzer == \"homoglyph\":\n            risk_score += 25\n            risk_factors.append(\"homoglyph (visually identical)\")\n        elif fuzzer in (\"addition\", \"replacement\", \"transposition\"):\n            risk_score += 10\n            risk_factors.append(f\"permutation type: {fuzzer}\")\n\n        # Not pointing to legitimate infrastructure\n        if dns_a and not set(dns_a).intersection(legitimate_ips):\n            risk_score += 10\n            risk_factors.append(\"different IP from legitimate\")\n\n        entry[\"risk_score\"] = risk_score\n        entry[\"risk_factors\"] = risk_factors\n\n        if risk_score >= 50:\n            high_risk.append(entry)\n        elif risk_score >= 25:\n            medium_risk.append(entry)\n        else:\n            low_risk.append(entry)\n\n    high_risk.sort(key=lambda x: x[\"risk_score\"], reverse=True)\n    medium_risk.sort(key=lambda x: x[\"risk_score\"], reverse=True)\n\n    print(f\"\\n=== Typosquatting Analysis ===\")\n    print(f\"High Risk: {len(high_risk)}\")\n    print(f\"Medium Risk: {len(medium_risk)}\")\n    print(f\"Low Risk: {len(low_risk)}\")\n\n    if high_risk:\n        print(f\"\\n--- High Risk Domains ---\")\n        for entry in high_risk[:10]:\n            print(f\"  {entry['domain']} (score: {entry['risk_score']})\")\n            for factor in entry['risk_factors']:\n                print(f\"    - {factor}\")\n\n    return {\"high\": high_risk, \"medium\": medium_risk, \"low\": low_risk}\n\nanalysis = analyze_results(results, legitimate_ips={\"93.184.216.34\"})\n```\n\n### Step 3: Continuous Monitoring Pipeline\n\n```python\nimport time\nimport hashlib\n\nclass TyposquatMonitor:\n    def __init__(self, domains, known_domains_file=\"known_typosquats.json\"):\n        self.domains = domains\n        self.known_file = known_domains_file\n        self.known_domains = self._load_known()\n\n    def _load_known(self):\n        try:\n            with open(self.known_file, \"r\") as f:\n                return json.load(f)\n        except FileNotFoundError:\n            return {}\n\n    def _save_known(self):\n        with open(self.known_file, \"w\") as f:\n            json.dump(self.known_domains, f, indent=2)\n\n    def scan_all_domains(self):\n        \"\"\"Scan all monitored domains for new typosquats.\"\"\"\n        new_findings = []\n        for domain in self.domains:\n            results = run_dnstwist_scan(domain)\n            for entry in results:\n                domain_key = entry.get(\"domain\", \"\")\n                if domain_key not in self.known_domains:\n                    entry[\"first_seen\"] = datetime.now().isoformat()\n                    entry[\"monitored_domain\"] = domain\n                    self.known_domains[domain_key] = entry\n                    new_findings.append(entry)\n                    print(f\"  [NEW] {domain_key} ({entry.get('fuzzer', '')})\")\n\n        self._save_known()\n        print(f\"\\n[+] New typosquatting domains found: {len(new_findings)}\")\n        return new_findings\n\n    def generate_alert(self, findings):\n        \"\"\"Generate alert for new high-risk typosquatting domains.\"\"\"\n        analysis = analyze_results(findings)\n        alerts = []\n        for entry in analysis[\"high\"]:\n            alerts.append({\n                \"severity\": \"HIGH\",\n                \"domain\": entry[\"domain\"],\n                \"target\": entry.get(\"monitored_domain\", \"\"),\n                \"risk_score\": entry[\"risk_score\"],\n                \"risk_factors\": entry[\"risk_factors\"],\n                \"dns_a\": entry.get(\"dns_a\", []),\n                \"dns_mx\": entry.get(\"dns_mx\", []),\n                \"timestamp\": datetime.now().isoformat(),\n            })\n        return alerts\n\nmonitor = TyposquatMonitor([\"mycompany.com\", \"mycompany.org\"])\nnew_findings = monitor.scan_all_domains()\nalerts = monitor.generate_alert(new_findings)\n```\n\n### Step 4: Export for Blocklist and Takedown\n\n```python\ndef export_blocklist(analysis, output_file=\"blocklist.txt\"):\n    \"\"\"Export high-risk domains as blocklist for firewall\u002Fproxy.\"\"\"\n    domains = []\n    for entry in analysis[\"high\"] + analysis[\"medium\"]:\n        domain = entry.get(\"domain\", \"\")\n        if domain:\n            domains.append(domain)\n\n    with open(output_file, \"w\") as f:\n        f.write(f\"# Typosquatting blocklist generated {datetime.now().isoformat()}\\n\")\n        for d in sorted(set(domains)):\n            f.write(f\"{d}\\n\")\n\n    print(f\"[+] Blocklist saved: {len(domains)} domains -> {output_file}\")\n    return domains\n\ndef generate_takedown_report(high_risk_domains):\n    \"\"\"Generate takedown request report.\"\"\"\n    report = f\"\"\"# Domain Takedown Request\nGenerated: {datetime.now().isoformat()}\n\n## Summary\n{len(high_risk_domains)} domains identified as potential typosquatting\u002Fphishing.\n\n## Domains Requiring Takedown\n\"\"\"\n    for entry in high_risk_domains:\n        report += f\"\"\"\n### {entry['domain']}\n- **Permutation Type**: {entry.get('fuzzer', 'unknown')}\n- **IP Address**: {', '.join(entry.get('dns_a', ['N\u002FA']))}\n- **MX Records**: {', '.join(entry.get('dns_mx', ['N\u002FA']))}\n- **Risk Score**: {entry.get('risk_score', 0)}\n- **Risk Factors**: {'; '.join(entry.get('risk_factors', []))}\n- **Web Similarity**: {entry.get('ssdeep_score', 'N\u002FA')}%\n\"\"\"\n    with open(\"takedown_report.md\", \"w\") as f:\n        f.write(report)\n    print(\"[+] Takedown report generated: takedown_report.md\")\n\nexport_blocklist(analysis)\ngenerate_takedown_report(analysis[\"high\"])\n```\n\n## Validation Criteria\n\n- DNSTwist generates domain permutations for target domain\n- DNS resolution identifies registered lookalike domains\n- Web similarity scoring detects cloned phishing pages\n- Risk scoring prioritizes domains by threat level\n- Continuous monitoring detects newly registered typosquats\n- Blocklist and takedown reports generated correctly\n\n## References\n\n- [dnstwist GitHub Repository](https:\u002F\u002Fgithub.com\u002Felceef\u002Fdnstwist)\n- [dnstwister Online Service](https:\u002F\u002Fdnstwister.report\u002F)\n- [HawkEye: Detect Typosquatting with DNSTwist](https:\u002F\u002Fhawk-eye.io\u002F2022\u002F11\u002Fhow-to-detect-typosquatting-using-dnstwist\u002F)\n- [Darktrace: Monitoring Typosquatting Domains](https:\u002F\u002Fwww.darktrace.com\u002Fblog\u002Fvigilance-in-action-monitoring-typosquatting-domains)\n- [Security Risk Advisors: Domain Monitoring](https:\u002F\u002Fsra.io\u002Fblog\u002Fdomain-monitoring-fast-and-cheap\u002F)\n- [Conscia: How to Detect Typosquatting](https:\u002F\u002Fconscia.com\u002Fblog\u002Fdiving-deep-how-to-detect-typosquatting\u002F)\n",{"name":5,"tags":24,"author":33,"domain":34,"license":14,"version":35,"mitre_f3":36,"nist_csf":60,"subdomain":32,"description":7,"mitre_attack":65,"atlas_techniques":69},[25,26,27,28,29,30,31,32],"dnstwist","typosquatting","phishing","domain-monitoring","brand-protection","homograph","dns","threat-intelligence","mahipal","cybersecurity","1.0",{"tactics":37,"version":41,"techniques":42},[38,39,40],"resource-development","reconnaissance","initial-access","1.1",[43,47,51,54,57],{"id":44,"name":45,"source":46,"tactic":38},"T1583.001","Acquire Infrastructure: Domains","attack",{"id":48,"name":49,"source":50,"tactic":38},"F1020.002","Create Fake Materials: Fake Website","f3",{"id":52,"name":53,"source":46,"tactic":39},"T1598","Phishing for Information",{"id":55,"name":56,"source":46,"tactic":39},"T1593","Search Open Websites\u002FDomains",{"id":58,"name":59,"source":46,"tactic":40},"T1660","Phishing",[61,62,63,64],"ID.RA-01","ID.RA-05","DE.CM-01","DE.AE-02",[44,66,67,68],"T1566.002","T1598.003","T1583.006",[70,71],"AML.T0073","AML.T0052","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-typosquatting-domains-with-dnstwist","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 analyzing-typosquatting-domains-with-dnstwist",{"tool":84,"command":85},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill analyzing-typosquatting-domains-with-dnstwist",{"tool":87,"command":88},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill analyzing-typosquatting-domains-with-dnstwist","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-typosquatting-domains-with-dnstwist\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","参考文档",2155,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-typosquatting-domains-with-dnstwist\u002Freferences\u002Fapi-reference.md",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fagent.py","SCRIPT","脚本",3614,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-typosquatting-domains-with-dnstwist\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",[],[]]