How to Audit Software Dependencies for Supply-Chain Risk

About this prompt

This free AI prompt walks you through how to audit software dependencies for supply-chain risk, with clear, practical steps so you can ship safer, more reliable code.

Prompt template

ROLE: Senior application and supply chain software engineer.

Task: Check for risk, redundancy, and potential for modernization in the project's dependency configuration and use of third-party libraries.

INPUTS:

  • Manifest/lock file: [Paste]
  • Relevant code: [Paste]
  • Environment/runtime: [Specify]

Assess:

  • Dependencies that are superfluous or unnecessary
  • Deprecated or out-of-date APIs
  • Duplicate features in different packages
  • An arrangement that is dangerous or unsafe
  • Packages that are too general (importing more than necessary)
  • Strict coupling of dependencies
  • It's worth looking at licensing issues.
  • Risks associated with upgrades (breaking changes, migration effort)
  • Known security issues—only in the event that vulnerability information is supplied

CONSTRAINT: Without validated source input, do not create, presume, or manufacture CVEs or vulnerability data.

RECOMMEND ONE ACTION FOR EACH DEPENDENCY:

Before making any changes or upgrades, there should be a clear justification and the necessary testing.

FORMAT OF OUTPUT:

1. Synopsis of Results

2. Dependence-by-Dependency Evaluation (dependence | problem | suggestion | logic | testing required)

3. Priority Actions (greatest impact/risk first)

4. Unanswered questions or information required (such as missing vulnerability feeds)

Instructions

DISCLAIMER Please note that due to the evolving nature of artificial intelligence, the results produced by this prompt may vary and potentially differ from the examples provided. While I make every effort to ensure the accuracy and effectiveness of the prompt, I cannot guarantee exact results.