[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E3MSMW29M5J756SC53Q0K3":3,"skill-same:01M7E3MSMW29M5J756SC53Q0K3":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M7E3MSMW29M5J756SC53Q0K3","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.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-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":25,"author":34,"domain":35,"license":15,"version":36,"nist_csf":37,"subdomain":26,"description":7,"mitre_attack":39},[26,27,28,29,30,31,32,33],"supply-chain-security","typosquatting","package-registry","npm","pypi","typomania","ossgadget","dependency-screening","mahipal","cybersecurity","1.0",[38],"ID.RA-09",[40],"T1195.002","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fdetecting-typosquatting-packages",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill detecting-typosquatting-packages",{"tool":55,"command":56},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill detecting-typosquatting-packages",{"tool":58,"command":59},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill detecting-typosquatting-packages","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002FSKILL.md",true,[63,67,73,77],{"path":64,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fapi-reference.md","REFERENCE","参考文档",2166,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002Freferences\u002Fapi-reference.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fstandards.md",1582,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002Freferences\u002Fstandards.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",7505,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fdetecting-typosquatting-packages\u002Fscripts\u002Fagent.py",[84,92,100,108,116,123],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]