[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B5ZCFBGYV1APQWYE5HV3HC":3,"skill-same:01M7B5ZCFBGYV1APQWYE5HV3HC":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},"01M7B5ZCFBGYV1APQWYE5HV3HC","detecting-dependency-confusion",null,"Detect and prevent dependency confusion (public-over-private package name resolution) in npm, PyPI, and Maven by enumerating claimable internal package names with tools like `confused` and OWASP `dep-scan`, then enforcing source restrictions via `.npmrc`, `pip.conf`\u002F`pyproject.toml`, and Maven `settings.xml`. Use when onboarding a repo to a supply-chain security program, auditing lockfiles\u002Fmanifests for confusable dependencies, or after an incident that may have leaked internal package names.","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-dependency-confusion\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-dependency-confusion\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: detecting-dependency-confusion\ndescription: Detect and prevent dependency confusion (public-over-private package name resolution) in npm, PyPI, and Maven by enumerating claimable internal package names with tools like `confused` and OWASP `dep-scan`, then enforcing source restrictions via `.npmrc`, `pip.conf`\u002F`pyproject.toml`, and Maven `settings.xml`. Use when onboarding a repo to a supply-chain security program, auditing lockfiles\u002Fmanifests for confusable dependencies, or after an incident that may have leaked internal package names.\ndomain: cybersecurity\nsubdomain: supply-chain-security\ntags:\n- supply-chain-security\n- dependency-confusion\n- npm\n- pypi\n- maven\n- package-management\n- devsecops\n- namespace-hijacking\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-09\nmitre_attack:\n- T1195.001\n---\n# Detecting Dependency Confusion\n\n> **Legal Notice:** This skill is for authorized security testing, defensive engineering, and educational purposes only. Registering or claiming package namespaces you do not own, or testing build pipelines without written authorization, may be illegal and may violate the terms of service of public registries. Only run namespace-claiming or resolution-testing activities against names and infrastructure you control or are explicitly authorized to assess.\n\n## Overview\n\nDependency confusion (also called a substitution or namespace-shadowing attack) was popularized by Alex Birsan in 2021 when he forced malicious code into the internal build systems of Apple, Microsoft, PayPal, and dozens of others. The root cause is that many package managers, when configured to resolve from both an internal\u002Fprivate registry and a public one, will prefer whichever copy has the **higher version number** rather than honoring the source. An attacker who learns the name of a private package (`@acme\u002Finternal-utils`, `acme-billing-sdk`) can publish a malicious package of the **same name** to the public registry (npmjs.com, PyPI, Maven Central) with a very high version (e.g. `99.0.0`). When the victim's CI\u002FCD runner or a developer machine resolves dependencies, it pulls the attacker's public package, executes its install scripts, and the supply chain is compromised.\n\nThis skill covers both halves of the problem: **detection** — enumerating internal package names that are not registered (squatted defensively) on public registries and are therefore claimable, using `confused` and OWASP `dep-scan` — and **prevention** — pinning scopes\u002Fnamespaces to private registries, registering placeholder packages, and enforcing source restrictions in `.npmrc`, `pip.conf`\u002F`pyproject.toml`, and Maven `settings.xml`. Internal package names leak constantly: in committed lockfiles, sourcemaps, public JS bundles, Docker layers, and error stack traces, so this is treated as an attack-surface management problem, not a one-time check.\n\n## When to Use\n\n- When onboarding a repository or organization to a supply-chain security program and you need to baseline which internal packages are claimable on public registries.\n- When CI\u002FCD pipelines resolve dependencies from both private and public registries (mixed\u002Fhybrid feeds).\n- After any incident where internal package names may have been exposed (leaked source, public bundle, breached repo).\n- When auditing `package.json`, `requirements.txt`, `pom.xml`, `composer.json`, or `Gemfile.lock` files for confusable dependencies.\n- As a recurring scheduled control to detect newly added internal packages that have not yet been defensively registered.\n\n## Prerequisites\n\n- Go 1.20+ to install `confused`:\n  ```bash\n  go install github.com\u002Fvisma-prodsec\u002Fconfused@latest\n  # binary lands in $(go env GOPATH)\u002Fbin\u002Fconfused\n  ```\n- Python 3.10+ for OWASP dep-scan:\n  ```bash\n  pip install owasp-depscan\n  # or container: docker pull ghcr.io\u002Fowasp-dep-scan\u002Fdep-scan\n  ```\n- Node.js + npm (for `.npmrc` and `npm config` remediation) and access to your private registry (Artifactory, Nexus, Azure Artifacts, GitHub Packages, AWS CodeArtifact).\n- Read access to the repositories \u002F lockfiles being assessed and write access to your private registry for defensive registration.\n\n## Objectives\n\n- Enumerate every internal dependency declared in project manifests across npm, PyPI, Maven, Composer, and RubyGems.\n- Determine which internal names are **not** present on the corresponding public registry and are therefore claimable.\n- Distinguish true exposure from false positives (scoped packages, already-mirrored names).\n- Apply registry-pinning and scope-restriction controls that make public substitution impossible.\n- Defensively register placeholder packages for unclaimed internal names.\n- Establish a recurring detection control in CI to catch newly introduced confusable dependencies.\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Technique Name | Relevance |\n|--------------|----------------|-----------|\n| T1195.001 | Supply Chain Compromise: Compromise Software Dependencies and Development Tools | Core technique — attacker substitutes a malicious public package for an internal dependency. |\n| T1195.002 | Supply Chain Compromise: Compromise Software Supply Chain | Broader category covering the compromised build artifacts produced once confusion succeeds. |\n| T1059.007 | Command and Scripting Interpreter: JavaScript | npm `preinstall`\u002F`postinstall` lifecycle scripts execute attacker JavaScript on resolution. |\n| T1071.001 | Application Layer Protocol: Web Protocols | Substituted package beacons stolen environment\u002Fcredentials to attacker HTTP(S) endpoint. |\n\n## Workflow\n\n### 1. Inventory manifests across the codebase\nLocate every dependency manifest so nothing is missed.\n```bash\n# Find all supported manifests in a monorepo\nfind . -type f \\( \\\n  -name package.json -o \\\n  -name requirements.txt -o \\\n  -name pom.xml -o \\\n  -name composer.json -o \\\n  -name Gemfile.lock \\\n\\) -not -path '*\u002Fnode_modules\u002F*' -print\n```\n\n### 2. Scan npm manifests with confused\n`confused` reads the manifest and reports every dependency name **not found** on the public registry — those are candidates for confusion.\n```bash\n# npm (default language is npm)\nconfused -l npm package.json\n\n# Treat your known-good scopes as secure to suppress false positives (supports wildcards)\nconfused -l npm -s '@acme\u002F*,@acme-internal\u002F*' package.json\n\n# Verbose, to see each lookup\nconfused -l npm -v package.json\n```\n\n### 3. Scan PyPI, Maven, Composer, and RubyGems manifests\nThe `-l` flag selects the ecosystem; each maps to its standard manifest file.\n```bash\nconfused -l pip requirements.txt          # PyPI  -> requirements.txt\nconfused -l mvn pom.xml                    # Maven -> pom.xml\nconfused -l composer composer.json        # PHP   -> composer.json\nconfused -l rubygems Gemfile.lock         # Ruby  -> Gemfile.lock\n```\n\n### 4. Cross-check with OWASP dep-scan private-namespace mode\ndep-scan confirms confusion exposure for declared private namespaces and folds it into a broader risk audit.\n```bash\n# Flag private namespaces accidentally claimable on public registries\ndepscan --src $PWD --reports-dir .\u002Freports \\\n  --private-ns acme,acme_internal,@acme\n\n# Enable deep package risk audit (npm + pypi): typosquats, takeover risk, etc.\ndepscan --src $PWD --reports-dir .\u002Freports --risk-audit\n```\n\n### 5. Triage candidates and confirm claimability\nFor each flagged name, verify it is genuinely absent on the public registry (a 404 means claimable).\n```bash\n# npm: a 404 status means the name is unregistered on the public registry\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\\n\" https:\u002F\u002Fregistry.npmjs.org\u002F@acme%2finternal-utils\n\n# PyPI: 404 from the JSON API means the project name is free\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\\n\" https:\u002F\u002Fpypi.org\u002Fpypi\u002Facme-billing-sdk\u002Fjson\n```\n\n### 6. Remediate npm with scope-to-registry pinning\nBind every internal scope to the private registry so a public package of the same name can never be resolved.\n```ini\n# .npmrc (project root, committed)\n@acme:registry=https:\u002F\u002Fartifactory.example.com\u002Fapi\u002Fnpm\u002Fnpm-internal\u002F\n\u002F\u002Fartifactory.example.com\u002Fapi\u002Fnpm\u002Fnpm-internal\u002F:_authToken=${NPM_TOKEN}\n\n# Force the default registry to a single proxy that does NOT merge public + private\nregistry=https:\u002F\u002Fartifactory.example.com\u002Fapi\u002Fnpm\u002Fnpm-virtual\u002F\n```\nVerify the resolution source before installing:\n```bash\nnpm config get @acme:registry\nnpm install --dry-run   # confirm @acme\u002F* resolves from the private host\n```\n\n### 7. Remediate PyPI and Maven\nPin Python index resolution and Maven mirroring so public sources cannot shadow internal artifacts.\n```toml\n# pyproject.toml (PEP 621 \u002F pip >= 23): explicit index pinning\n[tool.pip]\nindex-url = \"https:\u002F\u002Fartifactory.example.com\u002Fapi\u002Fpypi\u002Fpypi-internal\u002Fsimple\u002F\"\n# Do NOT use extra-index-url for internal packages — pip merges and picks highest version.\n```\n```xml\n\u003C!-- ~\u002F.m2\u002Fsettings.xml: mirror everything through a single virtual repo -->\n\u003Cmirrors>\n  \u003Cmirror>\n    \u003Cid>internal-virtual\u003C\u002Fid>\n    \u003CmirrorOf>*\u003C\u002FmirrorOf>\n    \u003Curl>https:\u002F\u002Fartifactory.example.com\u002Fartifactory\u002Fmaven-virtual\u003C\u002Furl>\n  \u003C\u002Fmirror>\n\u003C\u002Fmirrors>\n```\n\n### 8. Defensively register placeholder packages\nFor names you cannot fully isolate, claim the public name yourself with an empty, non-functional placeholder so an attacker cannot.\n```bash\n# npm placeholder claim (scoped, public)\nmkdir acme-internal-utils && cd acme-internal-utils\nnpm init -y\nnpm pkg set version=0.0.1-placeholder description=\"Reserved internal name. Do not use.\"\nnpm publish --access public\n```\n\n### 9. Wire detection into CI\nFail the pipeline if any new confusable dependency appears.\n```yaml\n# .github\u002Fworkflows\u002Fdepconfusion.yml\nname: dependency-confusion\non: [push, pull_request]\njobs:\n  confused:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-go@v5\n        with: { go-version: '1.22' }\n      - run: go install github.com\u002Fvisma-prodsec\u002Fconfused@latest\n      - name: Scan npm manifest\n        run: $(go env GOPATH)\u002Fbin\u002Fconfused -l npm -s '@acme\u002F*' package.json\n```\n\n### 10. Run the bundled helper for batch triage\nUse the included `agent.py` to scan a tree and emit a structured report combining `confused` and live registry probes.\n```bash\npython scripts\u002Fagent.py --path . --ecosystem npm \\\n  --secure-namespaces '@acme\u002F*,@acme-internal\u002F*' \\\n  --output report.json\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| confused | Detect lingering free namespaces for declared dependencies | https:\u002F\u002Fgithub.com\u002Fvisma-prodsec\u002Fconfused |\n| ConfusedDotnet | Same check for NuGet\u002F.NET | https:\u002F\u002Fgithub.com\u002Fvisma-prodsec\u002FConfusedDotnet |\n| OWASP dep-scan | Risk audit incl. `--private-ns` confusion check | https:\u002F\u002Fgithub.com\u002Fowasp-dep-scan\u002Fdep-scan |\n| OWASP CI\u002FCD Top 10 | CICD-SEC-03 Dependency Chain Abuse | https:\u002F\u002Fowasp.org\u002Fwww-project-top-10-ci-cd-security-risks\u002F |\n| Birsan research | Original dependency confusion writeup | https:\u002F\u002Fmedium.com\u002F@alex.birsan\u002Fdependency-confusion-4a5d60fec610 |\n| npm scopes docs | Scope-to-registry pinning reference | https:\u002F\u002Fdocs.npmjs.com\u002Fcli\u002Fv10\u002Fusing-npm\u002Fscope |\n\n## Validation Criteria\n\n- [ ] All dependency manifests in the codebase enumerated.\n- [ ] `confused` run for every relevant ecosystem with secure namespaces supplied.\n- [ ] OWASP dep-scan `--private-ns` run and reconciled with `confused` output.\n- [ ] Each flagged name confirmed claimable (404) or dismissed as a false positive.\n- [ ] Internal scopes pinned to the private registry in `.npmrc` \u002F `pip` config \u002F Maven mirror.\n- [ ] `extra-index-url` and merged virtual feeds reviewed for highest-version pull risk.\n- [ ] Placeholder packages registered for names that cannot be isolated.\n- [ ] CI job enforces the check on every push\u002FPR.\n- [ ] Findings documented with owner and remediation status.\n","# Detecting Dependency Confusion\n\n> **Legal Notice:** This skill is for authorized security testing, defensive engineering, and educational purposes only. Registering or claiming package namespaces you do not own, or testing build pipelines without written authorization, may be illegal and may violate the terms of service of public registries. Only run namespace-claiming or resolution-testing activities against names and infrastructure you control or are explicitly authorized to assess.\n\n## Overview\n\nDependency confusion (also called a substitution or namespace-shadowing attack) was popularized by Alex Birsan in 2021 when he forced malicious code into the internal build systems of Apple, Microsoft, PayPal, and dozens of others. The root cause is that many package managers, when configured to resolve from both an internal\u002Fprivate registry and a public one, will prefer whichever copy has the **higher version number** rather than honoring the source. An attacker who learns the name of a private package (`@acme\u002Finternal-utils`, `acme-billing-sdk`) can publish a malicious package of the **same name** to the public registry (npmjs.com, PyPI, Maven Central) with a very high version (e.g. `99.0.0`). When the victim's CI\u002FCD runner or a developer machine resolves dependencies, it pulls the attacker's public package, executes its install scripts, and the supply chain is compromised.\n\nThis skill covers both halves of the problem: **detection** — enumerating internal package names that are not registered (squatted defensively) on public registries and are therefore claimable, using `confused` and OWASP `dep-scan` — and **prevention** — pinning scopes\u002Fnamespaces to private registries, registering placeholder packages, and enforcing source restrictions in `.npmrc`, `pip.conf`\u002F`pyproject.toml`, and Maven `settings.xml`. Internal package names leak constantly: in committed lockfiles, sourcemaps, public JS bundles, Docker layers, and error stack traces, so this is treated as an attack-surface management problem, not a one-time check.\n\n## When to Use\n\n- When onboarding a repository or organization to a supply-chain security program and you need to baseline which internal packages are claimable on public registries.\n- When CI\u002FCD pipelines resolve dependencies from both private and public registries (mixed\u002Fhybrid feeds).\n- After any incident where internal package names may have been exposed (leaked source, public bundle, breached repo).\n- When auditing `package.json`, `requirements.txt`, `pom.xml`, `composer.json`, or `Gemfile.lock` files for confusable dependencies.\n- As a recurring scheduled control to detect newly added internal packages that have not yet been defensively registered.\n\n## Prerequisites\n\n- Go 1.20+ to install `confused`:\n  ```bash\n  go install github.com\u002Fvisma-prodsec\u002Fconfused@latest\n  # binary lands in $(go env GOPATH)\u002Fbin\u002Fconfused\n  ```\n- Python 3.10+ for OWASP dep-scan:\n  ```bash\n  pip install owasp-depscan\n  # or container: docker pull ghcr.io\u002Fowasp-dep-scan\u002Fdep-scan\n  ```\n- Node.js + npm (for `.npmrc` and `npm config` remediation) and access to your private registry (Artifactory, Nexus, Azure Artifacts, GitHub Packages, AWS CodeArtifact).\n- Read access to the repositories \u002F lockfiles being assessed and write access to your private registry for defensive registration.\n\n## Objectives\n\n- Enumerate every internal dependency declared in project manifests across npm, PyPI, Maven, Composer, and RubyGems.\n- Determine which internal names are **not** present on the corresponding public registry and are therefore claimable.\n- Distinguish true exposure from false positives (scoped packages, already-mirrored names).\n- Apply registry-pinning and scope-restriction controls that make public substitution impossible.\n- Defensively register placeholder packages for unclaimed internal names.\n- Establish a recurring detection control in CI to catch newly introduced confusable dependencies.\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Technique Name | Relevance |\n|--------------|----------------|-----------|\n| T1195.001 | Supply Chain Compromise: Compromise Software Dependencies and Development Tools | Core technique — attacker substitutes a malicious public package for an internal dependency. |\n| T1195.002 | Supply Chain Compromise: Compromise Software Supply Chain | Broader category covering the compromised build artifacts produced once confusion succeeds. |\n| T1059.007 | Command and Scripting Interpreter: JavaScript | npm `preinstall`\u002F`postinstall` lifecycle scripts execute attacker JavaScript on resolution. |\n| T1071.001 | Application Layer Protocol: Web Protocols | Substituted package beacons stolen environment\u002Fcredentials to attacker HTTP(S) endpoint. |\n\n## Workflow\n\n### 1. Inventory manifests across the codebase\nLocate every dependency manifest so nothing is missed.\n```bash\n# Find all supported manifests in a monorepo\nfind . -type f \\( \\\n  -name package.json -o \\\n  -name requirements.txt -o \\\n  -name pom.xml -o \\\n  -name composer.json -o \\\n  -name Gemfile.lock \\\n\\) -not -path '*\u002Fnode_modules\u002F*' -print\n```\n\n### 2. Scan npm manifests with confused\n`confused` reads the manifest and reports every dependency name **not found** on the public registry — those are candidates for confusion.\n```bash\n# npm (default language is npm)\nconfused -l npm package.json\n\n# Treat your known-good scopes as secure to suppress false positives (supports wildcards)\nconfused -l npm -s '@acme\u002F*,@acme-internal\u002F*' package.json\n\n# Verbose, to see each lookup\nconfused -l npm -v package.json\n```\n\n### 3. Scan PyPI, Maven, Composer, and RubyGems manifests\nThe `-l` flag selects the ecosystem; each maps to its standard manifest file.\n```bash\nconfused -l pip requirements.txt          # PyPI  -> requirements.txt\nconfused -l mvn pom.xml                    # Maven -> pom.xml\nconfused -l composer composer.json        # PHP   -> composer.json\nconfused -l rubygems Gemfile.lock         # Ruby  -> Gemfile.lock\n```\n\n### 4. Cross-check with OWASP dep-scan private-namespace mode\ndep-scan confirms confusion exposure for declared private namespaces and folds it into a broader risk audit.\n```bash\n# Flag private namespaces accidentally claimable on public registries\ndepscan --src $PWD --reports-dir .\u002Freports \\\n  --private-ns acme,acme_internal,@acme\n\n# Enable deep package risk audit (npm + pypi): typosquats, takeover risk, etc.\ndepscan --src $PWD --reports-dir .\u002Freports --risk-audit\n```\n\n### 5. Triage candidates and confirm claimability\nFor each flagged name, verify it is genuinely absent on the public registry (a 404 means claimable).\n```bash\n# npm: a 404 status means the name is unregistered on the public registry\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\\n\" https:\u002F\u002Fregistry.npmjs.org\u002F@acme%2finternal-utils\n\n# PyPI: 404 from the JSON API means the project name is free\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\\n\" https:\u002F\u002Fpypi.org\u002Fpypi\u002Facme-billing-sdk\u002Fjson\n```\n\n### 6. Remediate npm with scope-to-registry pinning\nBind every internal scope to the private registry so a public package of the same name can never be resolved.\n```ini\n# .npmrc (project root, committed)\n@acme:registry=https:\u002F\u002Fartifactory.example.com\u002Fapi\u002Fnpm\u002Fnpm-internal\u002F\n\u002F\u002Fartifactory.example.com\u002Fapi\u002Fnpm\u002Fnpm-internal\u002F:_authToken=${NPM_TOKEN}\n\n# Force the default registry to a single proxy that does NOT merge public + private\nregistry=https:\u002F\u002Fartifactory.example.com\u002Fapi\u002Fnpm\u002Fnpm-virtual\u002F\n```\nVerify the resolution source before installing:\n```bash\nnpm config get @acme:registry\nnpm install --dry-run   # confirm @acme\u002F* resolves from the private host\n```\n\n### 7. Remediate PyPI and Maven\nPin Python index resolution and Maven mirroring so public sources cannot shadow internal artifacts.\n```toml\n# pyproject.toml (PEP 621 \u002F pip >= 23): explicit index pinning\n[tool.pip]\nindex-url = \"https:\u002F\u002Fartifactory.example.com\u002Fapi\u002Fpypi\u002Fpypi-internal\u002Fsimple\u002F\"\n# Do NOT use extra-index-url for internal packages — pip merges and picks highest version.\n```\n```xml\n\u003C!-- ~\u002F.m2\u002Fsettings.xml: mirror everything through a single virtual repo -->\n\u003Cmirrors>\n  \u003Cmirror>\n    \u003Cid>internal-virtual\u003C\u002Fid>\n    \u003CmirrorOf>*\u003C\u002FmirrorOf>\n    \u003Curl>https:\u002F\u002Fartifactory.example.com\u002Fartifactory\u002Fmaven-virtual\u003C\u002Furl>\n  \u003C\u002Fmirror>\n\u003C\u002Fmirrors>\n```\n\n### 8. Defensively register placeholder packages\nFor names you cannot fully isolate, claim the public name yourself with an empty, non-functional placeholder so an attacker cannot.\n```bash\n# npm placeholder claim (scoped, public)\nmkdir acme-internal-utils && cd acme-internal-utils\nnpm init -y\nnpm pkg set version=0.0.1-placeholder description=\"Reserved internal name. Do not use.\"\nnpm publish --access public\n```\n\n### 9. Wire detection into CI\nFail the pipeline if any new confusable dependency appears.\n```yaml\n# .github\u002Fworkflows\u002Fdepconfusion.yml\nname: dependency-confusion\non: [push, pull_request]\njobs:\n  confused:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-go@v5\n        with: { go-version: '1.22' }\n      - run: go install github.com\u002Fvisma-prodsec\u002Fconfused@latest\n      - name: Scan npm manifest\n        run: $(go env GOPATH)\u002Fbin\u002Fconfused -l npm -s '@acme\u002F*' package.json\n```\n\n### 10. Run the bundled helper for batch triage\nUse the included `agent.py` to scan a tree and emit a structured report combining `confused` and live registry probes.\n```bash\npython scripts\u002Fagent.py --path . --ecosystem npm \\\n  --secure-namespaces '@acme\u002F*,@acme-internal\u002F*' \\\n  --output report.json\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| confused | Detect lingering free namespaces for declared dependencies | https:\u002F\u002Fgithub.com\u002Fvisma-prodsec\u002Fconfused |\n| ConfusedDotnet | Same check for NuGet\u002F.NET | https:\u002F\u002Fgithub.com\u002Fvisma-prodsec\u002FConfusedDotnet |\n| OWASP dep-scan | Risk audit incl. `--private-ns` confusion check | https:\u002F\u002Fgithub.com\u002Fowasp-dep-scan\u002Fdep-scan |\n| OWASP CI\u002FCD Top 10 | CICD-SEC-03 Dependency Chain Abuse | https:\u002F\u002Fowasp.org\u002Fwww-project-top-10-ci-cd-security-risks\u002F |\n| Birsan research | Original dependency confusion writeup | https:\u002F\u002Fmedium.com\u002F@alex.birsan\u002Fdependency-confusion-4a5d60fec610 |\n| npm scopes docs | Scope-to-registry pinning reference | https:\u002F\u002Fdocs.npmjs.com\u002Fcli\u002Fv10\u002Fusing-npm\u002Fscope |\n\n## Validation Criteria\n\n- [ ] All dependency manifests in the codebase enumerated.\n- [ ] `confused` run for every relevant ecosystem with secure namespaces supplied.\n- [ ] OWASP dep-scan `--private-ns` run and reconciled with `confused` output.\n- [ ] Each flagged name confirmed claimable (404) or dismissed as a false positive.\n- [ ] Internal scopes pinned to the private registry in `.npmrc` \u002F `pip` config \u002F Maven mirror.\n- [ ] `extra-index-url` and merged virtual feeds reviewed for highest-version pull risk.\n- [ ] Placeholder packages registered for names that cannot be isolated.\n- [ ] CI job enforces the check on every push\u002FPR.\n- [ ] Findings documented with owner and remediation status.\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","dependency-confusion","npm","pypi","maven","package-management","devsecops","namespace-hijacking","mahipal","cybersecurity","1.0",[37],"ID.RA-09",[39],"T1195.001","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-dependency-confusion","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-dependency-confusion",{"tool":52,"command":53},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill detecting-dependency-confusion",{"tool":55,"command":56},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill detecting-dependency-confusion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-dependency-confusion\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","参考文档",2275,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-dependency-confusion\u002Freferences\u002Fapi-reference.md",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fstandards.md",1643,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-dependency-confusion\u002Freferences\u002Fstandards.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fagent.py","SCRIPT","脚本",5913,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-dependency-confusion\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",[],[]]