[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B6B5V7DQYDSC0HVSA2S1W4":3,"skill-same:01M7B6B5V7DQYDSC0HVSA2S1W4":80},{"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":40,"commitSha":41,"skillDirectory":42,"forksCount":13,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M7B6B5V7DQYDSC0HVSA2S1W4","detecting-typosquatting-packages",null,"Flag misspelled, brandjacked, and typosquatted package names across npm, PyPI, and crates.io before installation, using edit-distance, keyboard-proximity, and known-target corpus matching with typomania, Microsoft OSSGadget's oss-find-squats, and pypi-scan. Use before adding a new dependency, as a CI\u002FCD gate on pull requests, when reviewing an AI-generated (\"slopsquatting\") dependency list, or when auditing a lockfile diff for a swapped package.","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\u002Fdetecting-typosquatting-packages\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: detecting-typosquatting-packages\ndescription: Flag misspelled, brandjacked, and typosquatted package names across npm, PyPI, and crates.io before installation, using edit-distance, keyboard-proximity, and known-target corpus matching with typomania, Microsoft OSSGadget's oss-find-squats, and pypi-scan. Use before adding a new dependency, as a CI\u002FCD gate on pull requests, when reviewing an AI-generated (\"slopsquatting\") dependency list, or when auditing a lockfile diff for a swapped package.\ndomain: cybersecurity\nsubdomain: supply-chain-security\ntags:\n- supply-chain-security\n- typosquatting\n- package-registry\n- npm\n- pypi\n- typomania\n- ossgadget\n- dependency-screening\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-09\nmitre_attack:\n- T1195.002\n---\n# Detecting Typosquatting Packages\n\n> **Authorized Use Only:** This skill is for defensive software-supply-chain security, package screening, and authorized research. Use the corpus-matching and registry-query techniques here only against registries you are permitted to query at scale and packages you intend to evaluate for your own organization. Mass automated registry scraping may violate registry terms of service.\n\n## Overview\n\nTyposquatting is a software-supply-chain attack (MITRE ATT&CK **T1195.002 — Supply Chain Compromise: Compromise Software Supply Chain**) in which an adversary publishes a malicious package whose name is a near-miss of a popular legitimate package — `reqeusts` for `requests`, `python-sqlite` for `sqlite3`, `crossenv` for `cross-env`. A developer who fat-fingers the name, copies a name from a poisoned tutorial, or trusts an AI-generated dependency list (the \"slopsquatting\" variant, where models hallucinate package names attackers then register) installs the squat instead. Because most ecosystems execute install-time scripts (`postinstall` in npm, `setup.py`\u002Fbuild hooks in PyPI), the payload runs immediately with the developer's privileges.\n\nThis skill covers proactive, pre-installation detection: screening a candidate package name against a corpus of popular\u002Fknown-good names using the same name-mutation primitives attackers use, then triaging high-risk matches. The canonical open-source detector is **typomania** (Rust Foundation), a Rust port of the academic **typogard** tool (\"Defending Against Package Typosquatting\", University of Kansas); typomania powers crates.io's live typosquatting checks. Cross-ecosystem coverage comes from **Microsoft OSSGadget's `oss-find-squats`** and, for PyPI, **IQTLabs `pypi-scan`**. The ecosyste-ms **typosquatting-dataset** provides a curated ground-truth corpus of known squats mapped to their legitimate targets.\n\nSources: Rust Foundation `typomania` (https:\u002F\u002Fgithub.com\u002Frustfoundation\u002Ftypomania), Microsoft OSSGadget, ecosyste-ms typosquatting-dataset, and OWASP CI\u002FCD \u002F SLSA supply-chain guidance.\n\n## When to Use\n\n- Before adding a new dependency to `package.json`, `requirements.txt`, `pyproject.toml`, or `Cargo.toml`\n- As a CI\u002FCD gate that screens every newly introduced dependency name in a pull request\n- When triaging an AI-generated or tutorial-sourced dependency list (\"slopsquatting\" review)\n- During security review of a lockfile diff to catch a swapped or newly-pinned squat\n- When building a registry-side or proxy-side guardrail that blocks installs of suspected squats\n\n## Prerequisites\n\n- Rust toolchain (`cargo`) to build\u002Fuse typomania, or a prebuilt OSSGadget release\n- Python 3.8+ for pypi-scan and the helper script in this skill\n- Network access to the target registry's public API (npmjs.org, pypi.org, crates.io)\n- A corpus of \"popular\" package names for the ecosystem (download counts or a top-N list)\n\nInstall the tooling:\n\n```bash\n# typomania (library + example harness) — Rust Foundation\ngit clone https:\u002F\u002Fgithub.com\u002Frustfoundation\u002Ftypomania\ncd typomania\ncargo build --release\ncargo run --example registry   # demonstrates the Harness against a fake registry\n\n# OSSGadget (Microsoft) — cross-ecosystem squat finder\n# Download a release binary, then:\noss-find-squats pkg:npm\u002Frequests          # purl syntax\noss-find-squats pkg:pypi\u002Freqeusts\n\n# pypi-scan (IQTLabs) — PyPI typosquat enumerator\ngit clone https:\u002F\u002Fgithub.com\u002FIQTLabs\u002Fpypi-scan\ncd pypi-scan\npip install -r requirements.txt\n\n# ecosyste-ms ground-truth dataset of known squats\ngit clone https:\u002F\u002Fgithub.com\u002Fecosyste-ms\u002Ftyposquatting-dataset\n```\n\n## Objectives\n\n- Generate the candidate squat set for a given legitimate name using the standard mutation primitives\n- Screen a candidate package name against a popular-name corpus and flag near-misses\n- Enrich each suspected squat with registry metadata (age, downloads, maintainer, install scripts)\n- Score and triage findings to suppress false positives (legitimate forks, scoped packages)\n- Wire the check into CI\u002FCD as a blocking gate on new dependencies\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Tactic |\n|--------------|------|--------|\n| T1195.002 | Supply Chain Compromise: Compromise Software Supply Chain | Initial Access |\n\nA typosquatted dependency is the delivery vehicle for T1195.002: the attacker compromises the victim's supply chain not by breaching a real package but by getting a malicious look-alike installed in its place. Related downstream behavior frequently includes T1059 (Command and Scripting Interpreter) via install hooks and T1041\u002FT1567 (Exfiltration) of tokens and environment variables.\n\n## Workflow\n\n### Step 1: Build the popular-name corpus\nThe detector needs a reference set of legitimate names to compare against. Pull top packages by download count for the ecosystem.\n\n```bash\n# PyPI: top packages dataset (Hugo van Kemenade's top-pypi-packages)\ncurl -s https:\u002F\u002Fhugovk.github.io\u002Ftop-pypi-packages\u002Ftop-pypi-packages.min.json \\\n  -o top-pypi-packages.json\n\n# npm: query the registry's most-depended-upon search\ncurl -s 'https:\u002F\u002Fregistry.npmjs.org\u002F-\u002Fv1\u002Fsearch?text=not:unstable&popularity=1.0&size=250' \\\n  -o npm-top.json\n\n# crates.io: top crates by downloads\ncurl -s 'https:\u002F\u002Fcrates.io\u002Fapi\u002Fv1\u002Fcrates?sort=downloads&per_page=100' \\\n  -H 'User-Agent: typosquat-screen (security@example.com)' -o crates-top.json\n```\n\n### Step 2: Generate candidate squats with the standard mutation primitives\ntypomania\u002Ftypogard apply a fixed set of name transformations that mirror real attacker behavior. Reproduce them to understand what a screen must catch:\n\n```text\n1. Repeated characters     requests  -> reqquests\n2. Omitted characters      requests  -> requsts\n3. Swapped\u002Ftransposed      requests  -> reqeusts\n4. Swapped words           python-dateutil -> dateutil-python\n5. Common typos (1-edit)   requests  -> rewuests   (keyboard adjacency)\n6. Homophones \u002F vowel swap requests  -> requeasts\n7. Version \u002F suffix tricks lodash    -> lodashs, lodash-js\n8. Delimiter swaps         cross-env -> crossenv, cross_env\n9. Scope confusion (npm)   @types\u002Fnode -> types-node\n```\n\nRun typomania's harness, which implements these as reusable primitives behind the `Corpus` and `Harness` traits:\n\n```bash\n# In the typomania checkout: feed your popular corpus, then check a name.\n# The Harness::check method (parallelized via rayon) compares the candidate\n# against every corpus entry using the squatting primitives.\ncargo run --example registry -- --corpus top-pypi-packages.json --name reqeusts\n```\n\n### Step 3: Screen with OSSGadget oss-find-squats\nOSSGadget queries the live registry, generates mutations of the supplied package, and reports which mutated names actually exist as published packages.\n\n```bash\n# Find names that squat on a legitimate package, checking which exist in the registry\noss-find-squats pkg:npm\u002Flodash\noss-find-squats pkg:pypi\u002Frequests\n\n# Reverse direction: given a SUSPECT name, find the legitimate package it mimics\noss-find-squats --quiet pkg:npm\u002Floadsh\n```\n\n### Step 4: Enumerate PyPI squats with pypi-scan\n```bash\ncd pypi-scan\n# Find candidate typosquats of a specific package\npython pypi_scan.py -p requests\n\n# Scan the top-N most-downloaded PyPI packages for existing squats\npython pypi_scan.py -n 50\n```\n\n### Step 5: Enrich suspected squats with registry metadata\nA near-miss name is only suspicious if it is also young, low-download, or ships install scripts. Pull metadata to triage:\n\n```bash\n# npm package metadata: creation time, maintainers, scripts\ncurl -s https:\u002F\u002Fregistry.npmjs.org\u002Floadsh | \\\n  python -c 'import sys,json;d=json.load(sys.stdin);v=d[\"dist-tags\"][\"latest\"];print(\"created:\",d[\"time\"][\"created\"]);print(\"scripts:\",d[\"versions\"][v].get(\"scripts\",{}))'\n\n# npm download counts (last week)\ncurl -s https:\u002F\u002Fapi.npmjs.org\u002Fdownloads\u002Fpoint\u002Flast-week\u002Floadsh\n\n# PyPI JSON API: release history and author\ncurl -s https:\u002F\u002Fpypi.org\u002Fpypi\u002Freqeusts\u002Fjson | \\\n  python -c 'import sys,json;d=json.load(sys.stdin);i=d[\"info\"];print(i[\"name\"],i[\"author\"],i[\"home_page\"]);print(\"releases:\",list(d[\"releases\"].keys()))'\n```\n\n### Step 6: Score, triage, and confirm\nCombine signals into a risk score. High risk = small edit distance to a popular name AND (package age \u003C 90 days OR downloads \u003C 1000 OR presence of `postinstall`\u002F`preinstall`\u002Fsetup-time network calls). Cross-check against the ecosyste-ms known-squats dataset:\n\n```bash\n# Is this name a documented squat?\ngrep -i 'loadsh' typosquatting-dataset\u002Fdata\u002F*.csv\n```\n\nConfirm malicious intent by inspecting (in a sandbox\u002FVM only) the install scripts and source tarball — never `npm install` or `pip install` a suspect on your workstation.\n\n### Step 7: Enforce in CI\u002FCD\nAdd a blocking gate that screens every new dependency name introduced by a PR:\n\n```yaml\n# .github\u002Fworkflows\u002Ftyposquat-gate.yml\nname: typosquat-gate\non: [pull_request]\njobs:\n  screen:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Screen new dependencies\n        run: |\n          git diff origin\u002F${{ github.base_ref }}...HEAD -- package.json requirements.txt \\\n            | grep '^+' | python scripts\u002Fagent.py screen --ecosystem npm --corpus top.json --stdin\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| typomania | Rust typosquat-detection library (powers crates.io) | https:\u002F\u002Fgithub.com\u002Frustfoundation\u002Ftypomania |\n| OSSGadget `oss-find-squats` | Cross-ecosystem squat finder (purl) | https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FOSSGadget |\n| pypi-scan | PyPI typosquat enumerator | https:\u002F\u002Fgithub.com\u002FIQTLabs\u002Fpypi-scan |\n| ecosyste-ms typosquatting-dataset | Curated known-squat ground truth | https:\u002F\u002Fgithub.com\u002Fecosyste-ms\u002Ftyposquatting-dataset |\n| top-pypi-packages | PyPI popular-name corpus | https:\u002F\u002Fhugovk.github.io\u002Ftop-pypi-packages\u002F |\n| OWASP CI\u002FCD Security Top 10 | Supply-chain control guidance | https:\u002F\u002Fowasp.org\u002Fwww-project-top-10-ci-cd-security-risks\u002F |\n\n## Mutation Primitives Reference\n\n| Primitive | Legit | Squat | Why it works |\n|-----------|-------|-------|--------------|\n| Transposition | requests | reqeusts | Common typing slip |\n| Omission | requests | requsts | Dropped character |\n| Repetition | requests | reqquests | Stuck key |\n| Delimiter swap | cross-env | crossenv | Hyphen vs none ambiguity |\n| Word order | python-dateutil | dateutil-python | Reordered compound name |\n| Homoglyph\u002Fvowel | requests | requeasts | Visual\u002Fphonetic similarity |\n| Suffix\u002Fscope | lodash | lodash-js, loadsh | Plausible \"official\" variant |\n\n## Validation Criteria\n\n- [ ] Popular-name corpus downloaded for each in-scope ecosystem\n- [ ] Mutation primitives reproduced and a known squat (e.g., `loadsh`) is correctly flagged\n- [ ] typomania \u002F OSSGadget \u002F pypi-scan run against at least one real package\n- [ ] Suspected squats enriched with age, download, and install-script metadata\n- [ ] Findings cross-checked against the ecosyste-ms known-squats dataset\n- [ ] Risk scoring suppresses obvious false positives (legit scoped\u002Fforked packages)\n- [ ] CI\u002FCD gate screens new dependency names on every pull request\n- [ ] No suspect package installed outside a disposable sandbox\n","# Detecting Typosquatting Packages\n\n> **Authorized Use Only:** This skill is for defensive software-supply-chain security, package screening, and authorized research. Use the corpus-matching and registry-query techniques here only against registries you are permitted to query at scale and packages you intend to evaluate for your own organization. Mass automated registry scraping may violate registry terms of service.\n\n## Overview\n\nTyposquatting is a software-supply-chain attack (MITRE ATT&CK **T1195.002 — Supply Chain Compromise: Compromise Software Supply Chain**) in which an adversary publishes a malicious package whose name is a near-miss of a popular legitimate package — `reqeusts` for `requests`, `python-sqlite` for `sqlite3`, `crossenv` for `cross-env`. A developer who fat-fingers the name, copies a name from a poisoned tutorial, or trusts an AI-generated dependency list (the \"slopsquatting\" variant, where models hallucinate package names attackers then register) installs the squat instead. Because most ecosystems execute install-time scripts (`postinstall` in npm, `setup.py`\u002Fbuild hooks in PyPI), the payload runs immediately with the developer's privileges.\n\nThis skill covers proactive, pre-installation detection: screening a candidate package name against a corpus of popular\u002Fknown-good names using the same name-mutation primitives attackers use, then triaging high-risk matches. The canonical open-source detector is **typomania** (Rust Foundation), a Rust port of the academic **typogard** tool (\"Defending Against Package Typosquatting\", University of Kansas); typomania powers crates.io's live typosquatting checks. Cross-ecosystem coverage comes from **Microsoft OSSGadget's `oss-find-squats`** and, for PyPI, **IQTLabs `pypi-scan`**. The ecosyste-ms **typosquatting-dataset** provides a curated ground-truth corpus of known squats mapped to their legitimate targets.\n\nSources: Rust Foundation `typomania` (https:\u002F\u002Fgithub.com\u002Frustfoundation\u002Ftypomania), Microsoft OSSGadget, ecosyste-ms typosquatting-dataset, and OWASP CI\u002FCD \u002F SLSA supply-chain guidance.\n\n## When to Use\n\n- Before adding a new dependency to `package.json`, `requirements.txt`, `pyproject.toml`, or `Cargo.toml`\n- As a CI\u002FCD gate that screens every newly introduced dependency name in a pull request\n- When triaging an AI-generated or tutorial-sourced dependency list (\"slopsquatting\" review)\n- During security review of a lockfile diff to catch a swapped or newly-pinned squat\n- When building a registry-side or proxy-side guardrail that blocks installs of suspected squats\n\n## Prerequisites\n\n- Rust toolchain (`cargo`) to build\u002Fuse typomania, or a prebuilt OSSGadget release\n- Python 3.8+ for pypi-scan and the helper script in this skill\n- Network access to the target registry's public API (npmjs.org, pypi.org, crates.io)\n- A corpus of \"popular\" package names for the ecosystem (download counts or a top-N list)\n\nInstall the tooling:\n\n```bash\n# typomania (library + example harness) — Rust Foundation\ngit clone https:\u002F\u002Fgithub.com\u002Frustfoundation\u002Ftypomania\ncd typomania\ncargo build --release\ncargo run --example registry   # demonstrates the Harness against a fake registry\n\n# OSSGadget (Microsoft) — cross-ecosystem squat finder\n# Download a release binary, then:\noss-find-squats pkg:npm\u002Frequests          # purl syntax\noss-find-squats pkg:pypi\u002Freqeusts\n\n# pypi-scan (IQTLabs) — PyPI typosquat enumerator\ngit clone https:\u002F\u002Fgithub.com\u002FIQTLabs\u002Fpypi-scan\ncd pypi-scan\npip install -r requirements.txt\n\n# ecosyste-ms ground-truth dataset of known squats\ngit clone https:\u002F\u002Fgithub.com\u002Fecosyste-ms\u002Ftyposquatting-dataset\n```\n\n## Objectives\n\n- Generate the candidate squat set for a given legitimate name using the standard mutation primitives\n- Screen a candidate package name against a popular-name corpus and flag near-misses\n- Enrich each suspected squat with registry metadata (age, downloads, maintainer, install scripts)\n- Score and triage findings to suppress false positives (legitimate forks, scoped packages)\n- Wire the check into CI\u002FCD as a blocking gate on new dependencies\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Tactic |\n|--------------|------|--------|\n| T1195.002 | Supply Chain Compromise: Compromise Software Supply Chain | Initial Access |\n\nA typosquatted dependency is the delivery vehicle for T1195.002: the attacker compromises the victim's supply chain not by breaching a real package but by getting a malicious look-alike installed in its place. Related downstream behavior frequently includes T1059 (Command and Scripting Interpreter) via install hooks and T1041\u002FT1567 (Exfiltration) of tokens and environment variables.\n\n## Workflow\n\n### Step 1: Build the popular-name corpus\nThe detector needs a reference set of legitimate names to compare against. Pull top packages by download count for the ecosystem.\n\n```bash\n# PyPI: top packages dataset (Hugo van Kemenade's top-pypi-packages)\ncurl -s https:\u002F\u002Fhugovk.github.io\u002Ftop-pypi-packages\u002Ftop-pypi-packages.min.json \\\n  -o top-pypi-packages.json\n\n# npm: query the registry's most-depended-upon search\ncurl -s 'https:\u002F\u002Fregistry.npmjs.org\u002F-\u002Fv1\u002Fsearch?text=not:unstable&popularity=1.0&size=250' \\\n  -o npm-top.json\n\n# crates.io: top crates by downloads\ncurl -s 'https:\u002F\u002Fcrates.io\u002Fapi\u002Fv1\u002Fcrates?sort=downloads&per_page=100' \\\n  -H 'User-Agent: typosquat-screen (security@example.com)' -o crates-top.json\n```\n\n### Step 2: Generate candidate squats with the standard mutation primitives\ntypomania\u002Ftypogard apply a fixed set of name transformations that mirror real attacker behavior. Reproduce them to understand what a screen must catch:\n\n```text\n1. Repeated characters     requests  -> reqquests\n2. Omitted characters      requests  -> requsts\n3. Swapped\u002Ftransposed      requests  -> reqeusts\n4. Swapped words           python-dateutil -> dateutil-python\n5. Common typos (1-edit)   requests  -> rewuests   (keyboard adjacency)\n6. Homophones \u002F vowel swap requests  -> requeasts\n7. Version \u002F suffix tricks lodash    -> lodashs, lodash-js\n8. Delimiter swaps         cross-env -> crossenv, cross_env\n9. Scope confusion (npm)   @types\u002Fnode -> types-node\n```\n\nRun typomania's harness, which implements these as reusable primitives behind the `Corpus` and `Harness` traits:\n\n```bash\n# In the typomania checkout: feed your popular corpus, then check a name.\n# The Harness::check method (parallelized via rayon) compares the candidate\n# against every corpus entry using the squatting primitives.\ncargo run --example registry -- --corpus top-pypi-packages.json --name reqeusts\n```\n\n### Step 3: Screen with OSSGadget oss-find-squats\nOSSGadget queries the live registry, generates mutations of the supplied package, and reports which mutated names actually exist as published packages.\n\n```bash\n# Find names that squat on a legitimate package, checking which exist in the registry\noss-find-squats pkg:npm\u002Flodash\noss-find-squats pkg:pypi\u002Frequests\n\n# Reverse direction: given a SUSPECT name, find the legitimate package it mimics\noss-find-squats --quiet pkg:npm\u002Floadsh\n```\n\n### Step 4: Enumerate PyPI squats with pypi-scan\n```bash\ncd pypi-scan\n# Find candidate typosquats of a specific package\npython pypi_scan.py -p requests\n\n# Scan the top-N most-downloaded PyPI packages for existing squats\npython pypi_scan.py -n 50\n```\n\n### Step 5: Enrich suspected squats with registry metadata\nA near-miss name is only suspicious if it is also young, low-download, or ships install scripts. Pull metadata to triage:\n\n```bash\n# npm package metadata: creation time, maintainers, scripts\ncurl -s https:\u002F\u002Fregistry.npmjs.org\u002Floadsh | \\\n  python -c 'import sys,json;d=json.load(sys.stdin);v=d[\"dist-tags\"][\"latest\"];print(\"created:\",d[\"time\"][\"created\"]);print(\"scripts:\",d[\"versions\"][v].get(\"scripts\",{}))'\n\n# npm download counts (last week)\ncurl -s https:\u002F\u002Fapi.npmjs.org\u002Fdownloads\u002Fpoint\u002Flast-week\u002Floadsh\n\n# PyPI JSON API: release history and author\ncurl -s https:\u002F\u002Fpypi.org\u002Fpypi\u002Freqeusts\u002Fjson | \\\n  python -c 'import sys,json;d=json.load(sys.stdin);i=d[\"info\"];print(i[\"name\"],i[\"author\"],i[\"home_page\"]);print(\"releases:\",list(d[\"releases\"].keys()))'\n```\n\n### Step 6: Score, triage, and confirm\nCombine signals into a risk score. High risk = small edit distance to a popular name AND (package age \u003C 90 days OR downloads \u003C 1000 OR presence of `postinstall`\u002F`preinstall`\u002Fsetup-time network calls). Cross-check against the ecosyste-ms known-squats dataset:\n\n```bash\n# Is this name a documented squat?\ngrep -i 'loadsh' typosquatting-dataset\u002Fdata\u002F*.csv\n```\n\nConfirm malicious intent by inspecting (in a sandbox\u002FVM only) the install scripts and source tarball — never `npm install` or `pip install` a suspect on your workstation.\n\n### Step 7: Enforce in CI\u002FCD\nAdd a blocking gate that screens every new dependency name introduced by a PR:\n\n```yaml\n# .github\u002Fworkflows\u002Ftyposquat-gate.yml\nname: typosquat-gate\non: [pull_request]\njobs:\n  screen:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Screen new dependencies\n        run: |\n          git diff origin\u002F${{ github.base_ref }}...HEAD -- package.json requirements.txt \\\n            | grep '^+' | python scripts\u002Fagent.py screen --ecosystem npm --corpus top.json --stdin\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| typomania | Rust typosquat-detection library (powers crates.io) | https:\u002F\u002Fgithub.com\u002Frustfoundation\u002Ftypomania |\n| OSSGadget `oss-find-squats` | Cross-ecosystem squat finder (purl) | https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FOSSGadget |\n| pypi-scan | PyPI typosquat enumerator | https:\u002F\u002Fgithub.com\u002FIQTLabs\u002Fpypi-scan |\n| ecosyste-ms typosquatting-dataset | Curated known-squat ground truth | https:\u002F\u002Fgithub.com\u002Fecosyste-ms\u002Ftyposquatting-dataset |\n| top-pypi-packages | PyPI popular-name corpus | https:\u002F\u002Fhugovk.github.io\u002Ftop-pypi-packages\u002F |\n| OWASP CI\u002FCD Security Top 10 | Supply-chain control guidance | https:\u002F\u002Fowasp.org\u002Fwww-project-top-10-ci-cd-security-risks\u002F |\n\n## Mutation Primitives Reference\n\n| Primitive | Legit | Squat | Why it works |\n|-----------|-------|-------|--------------|\n| Transposition | requests | reqeusts | Common typing slip |\n| Omission | requests | requsts | Dropped character |\n| Repetition | requests | reqquests | Stuck key |\n| Delimiter swap | cross-env | crossenv | Hyphen vs none ambiguity |\n| Word order | python-dateutil | dateutil-python | Reordered compound name |\n| Homoglyph\u002Fvowel | requests | requeasts | Visual\u002Fphonetic similarity |\n| Suffix\u002Fscope | lodash | lodash-js, loadsh | Plausible \"official\" variant |\n\n## Validation Criteria\n\n- [ ] Popular-name corpus downloaded for each in-scope ecosystem\n- [ ] Mutation primitives reproduced and a known squat (e.g., `loadsh`) is correctly flagged\n- [ ] typomania \u002F OSSGadget \u002F pypi-scan run against at least one real package\n- [ ] Suspected squats enriched with age, download, and install-script metadata\n- [ ] Findings cross-checked against the ecosyste-ms known-squats dataset\n- [ ] Risk scoring suppresses obvious false positives (legit scoped\u002Fforked packages)\n- [ ] CI\u002FCD gate screens new dependency names on every pull request\n- [ ] No suspect package installed outside a disposable sandbox\n",{"name":5,"tags":24,"author":33,"domain":34,"license":14,"version":35,"nist_csf":36,"subdomain":25,"description":7,"mitre_attack":38},[25,26,27,28,29,30,31,32],"supply-chain-security","typosquatting","package-registry","npm","pypi","typomania","ossgadget","dependency-screening","mahipal","cybersecurity","1.0",[37],"ID.RA-09",[39],"T1195.002","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-typosquatting-packages","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill detecting-typosquatting-packages",{"tool":52,"command":53},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill detecting-typosquatting-packages",{"tool":55,"command":56},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill detecting-typosquatting-packages","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002FSKILL.md",true,[60,64,70,74],{"path":61,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fapi-reference.md","REFERENCE","参考文档",2166,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002Freferences\u002Fapi-reference.md",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fstandards.md",1582,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002Freferences\u002Fstandards.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fagent.py","SCRIPT","脚本",7505,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002Fscripts\u002Fagent.py",[81,89,96,103,110,117],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"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":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"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":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"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",[],[]]