reviewing-dependencies

tarafından bitwarden

Bu beceri, kullanıcı "Dependabot uyarılarını incele", "güvenlik açığı olan bağımlılıkları kontrol et", "üçüncü taraf paketleri denetle", "tedarik zincirini değerlendir" gibi taleplerde bulunduğunda kullanılmalıdır.

npx skills add https://github.com/bitwarden/ai-plugins --skill reviewing-dependencies

Dependency Vulnerability Workflow

Step 1: Gather Alerts

# List all open Dependabot alerts sorted by severity
gh api /repos/{owner}/{repo}/dependabot/alerts --jq '.[] | select(.state == "open") | {number, severity: .security_vulnerability.severity, package: .security_vulnerability.package.name, ecosystem: .security_vulnerability.package.ecosystem, summary: .security_advisory.summary}'

# Filter by severity
gh api "/repos/{owner}/{repo}/dependabot/alerts?severity=critical&state=open"

# Get full details for a specific alert
gh api /repos/{owner}/{repo}/dependabot/alerts/{alert_number}

Step 2: Assess Impact

For each alert, determine:

  1. Is the vulnerable code path reachable? — Does the application actually use the vulnerable function/feature of the dependency?
  2. Is it a direct or transitive dependency? — Transitive vulnerabilities may be harder to fix but still pose real risk.
  3. What is the CVSS score and exploit availability? (Score with the CVSS convention triaging-security-findings defines for effective severity.) A high CVSS with a public exploit needs immediate action. A medium CVSS with no known exploit can be scheduled.
  4. What versions are affected and what versions fix it? — Check if updating is a minor bump or a breaking change.

Step 3: Decide on Action

SituationAction
Fix available, minor version bumpUpdate immediately
Fix available, major version bumpEvaluate breaking changes, schedule update
No fix available, code path reachableImplement workaround or replace dependency
No fix available, code path not reachableDocument and monitor, set review date
Vulnerability in transitive dependencyUse overrides/resolutions to pin fixed version

Transitive Dependency Risk

Direct dependencies are visible in package.json or .csproj files, but transitive dependencies (dependencies of dependencies) make up the majority of the dependency tree and are often invisible.

Why transitive dependencies matter:

  • A vulnerability in a deeply nested dependency is just as exploitable as one in a direct dependency
  • Transitive dependencies are less likely to be actively monitored
  • Updating a transitive dependency may require updating the direct dependency that pulls it in

How to investigate:

# npm: Show full dependency tree
npm ls --all

# npm: Find which direct dependency pulls in a vulnerable transitive
npm ls <vulnerable-package>

# .NET: List all vulnerable packages including transitive
dotnet list package --vulnerable --include-transitive

# .NET: Show dependency graph
dotnet list package --include-transitive

Dependency Health Evaluation

When evaluating whether to adopt or keep a dependency, assess:

CriterionGreen FlagRed Flag
MaintenanceRegular commits, responsive to issuesNo commits in 12+ months, unresponded issues
Vulnerability HistoryFew CVEs, quick patchesRepeated CVEs, slow response
Maintainer CountMultiple active maintainersSingle maintainer, bus factor of 1
CommunityHigh download count, active usersVery low adoption for claimed scope
LicenseCompatible with project (MIT, Apache-2.0)Restrictive or ambiguous license
Security PracticesSigned releases, security policy, 2FANo security policy, no signed releases

Aikido Integration

Aikido is Bitwarden's container and open-source dependency scanner. It continuously scans connected repositories, surfacing open-source (SCA) and container findings in the same feed as SAST, IaC, and secrets results.

Use the aikido:issues skill (aikido_issues_list) to query findings, scoping to the relevant repo and filtering issue_types to open_source (dependency CVEs) and docker_container (container image vulnerabilities). cloud_instance is a separate Aikido issue type for cloud VM/instance findings — out of scope for dependency and container review.

Use the caller-supplied Aikido evidence if you were given any. Otherwise query aikido:issues, and if it is unavailable, stop and tell the user rather than proceeding without this data.

# Use the aikido:issues skill, e.g.:
# issue_types: ["open_source"], repo_name: "<repo>"       -> dependency CVEs
# issue_types: ["docker_container"], repo_name: "<repo>"  -> container image vulnerabilities

Interpreting Aikido output:

  • Each finding includes: issue title, type, severity (and severity label), remediation guidance, and SLA due date
  • Use out_of_sla: true to focus on findings already past their remediation SLA
  • Triage follows the same Jira-based flow as other Aikido findings — see the triaging-security-findings skill

Platform-Specific Guidance

NuGet (.NET)

# Check for vulnerable packages
dotnet list package --vulnerable

# Include transitive dependencies
dotnet list package --vulnerable --include-transitive

# Check for outdated packages
dotnet list package --outdated

NuGet-specific concerns:

  • .NET framework packages may have different vulnerability profiles than .NET Core
  • PackageReference in .csproj is preferred over packages.config for better transitive resolution
  • Use Directory.Packages.props for centralized version management in multi-project solutions

npm (Node.js)

# Run security audit
npm audit

# Auto-fix where possible
npm audit fix

# Force fixes (may introduce breaking changes)
npm audit fix --force

# Check lockfile integrity
npm ci  # Installs exactly from lockfile, fails if lockfile is out of date

npm-specific concerns:

  • package-lock.json must be committed and kept in sync
  • Use overrides in package.json to force transitive dependency versions:
    {
      "overrides": {
        "vulnerable-package": ">=2.0.0"
      }
    }
    
  • Beware of postinstall scripts in dependencies — they execute arbitrary code during npm install

SBOM Concepts

A Software Bill of Materials (SBOM) is an inventory of all components in a software artifact. Understanding SBOMs helps reason about supply chain risk:

  • What it contains: Package names, versions, licenses, relationships (direct vs. transitive)
  • Why it matters: Enables rapid response when a new CVE is published — immediately identify which projects are affected
  • Standard formats: SPDX, CycloneDX
  • GitHub integration: GitHub generates dependency graphs automatically; Dependabot uses this for alerting

Critical Rules

  • Never ignore critical/high Dependabot alerts without documented justification. Even if the vulnerable code path seems unreachable, document why.
  • Prefer updating over pinning. Pinning a vulnerable version and adding a workaround accumulates tech debt. Update when a fix is available.
  • Evaluate the full transitive tree. A direct dependency may be safe, but its transitive dependencies may not be.
  • Review new dependencies before adoption. Check health criteria above before adding any new package. More dependencies = more attack surface.
  • Lock dependencies. Always commit lockfiles (package-lock.json, packages.lock.json). Use npm ci in CI/CD, not npm install.

bitwarden tarafından daha fazla skill

figma-to-angular
bitwarden
Bu beceri, bir Figma tasarım spesifikasyonunu, Bitwarden Clients monorepo'sunda Storybook hikayeleriyle birlikte tamamen uygulanmış bir Angular bileşenine dönüştürür. Çıktı, tüm kod tabanı kurallarına uyarken görsel olarak tasarımla eşleşmelidir.
force-multiplier
bitwarden
Tek bir niyeti aynı anda birçok hedefe uygulayın — Bitwarden ekosistemindeki bir depo filosuna veya bir monorepo içindeki birçok projeye — N tutarlı,…
analyzing-git-sessions
bitwarden
Git commit'lerini ve belirli bir zaman aralığı veya commit aralığındaki değişiklikleri analiz eder; kod incelemesi, retrospektifler, iş günlükleri veya oturumlar için yapılandırılmış özetler sunar.
coordinating-cross-team-breakdown
bitwarden
Bitwarden Teknik Dökümü için ekipler arası inceleme ve onayı koordine edin. Etkilenen ekipleri belirlerken, Bölüm 3 onay tablosunu oluştururken, takip ederken… kullanın.
assessing-jira-issue-relevance
bitwarden
Kullanıcı tek bir Jira sorun anahtarı sağladığında ve bunun hâlâ geçerli olup olmadığını, hâlâ uygulanabilir olup olmadığını, hâlâ beklemede olup olmadığını, hâlâ bir hata olup olmadığını, düzeltilip düzeltilmediğini veya…
assessing-test-coverage
bitwarden
Belirli bir değişiklik için (bir PR, Jira anahtarı, Tech Breakdown dokümanı, Testmo CSV'si, değiştirilen yollar veya adlandırılmış…) hangi test kapsamının ZATEN mevcut olduğunu belirlerken kullanın.
retrospecting
bitwarden
Claude Code oturumlarının kapsamlı analizini gerçekleştirir, git geçmişini, konuşma günlüklerini, kod değişikliklerini inceler ve kullanıcı geri bildirimlerini toplayarak…
reviewing-incremental-changes
bitwarden
Bu beceriyi, halihazırda yorumlar bulunan bir PR'ı yeniden incelerken veya ilk inceleme sonrası geliştirici değişikliklerine yanıt verirken kullanın. PR iş parçacıkları mevcut olduğunda veya…