Join our Newsletter — 33% off our NHI Course
Home› Guides› Choosing Open Source Packages for Beginners: Five Checks…
Guide Software & AI Supply Chain

Choosing Open Source Packages for Beginners: Five Checks Before You Install a Library

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

Choosing an open source package safely means checking it is needed, genuine and looked after before you install it.

This guide is for students, new developers and anyone who adds ready-made code to a project. If you pay for software to be built, these are also good questions to ask your developer.

In short

  • Every package you add brings in someone else's code, and often other packages with it.
  • Before installing, ask five questions: do I need it, is it the real one, is it looked after, any known flaws, and is the licence OK?
  • Free lookup sites show a package's releases, known flaws and a security score in a few minutes.
  • Good signs lower the risk. They do not prove a package is safe, so keep checking after you install.

What you will learn

  • Explain why every new package is a decision, not just a download.
  • Check whether a package is genuine and still looked after.
  • Spot warning signs such as no recent releases or an unfixed security flaw.
  • Ask a teammate or supplier how they choose the packages they use.
Ready-made code (package or library)
code someone else wrote and shared so others can reuse it.
Person looking after it (maintainer)
someone who reviews changes, fixes bugs and publishes new versions of a package.
Package your package needs (dependency)
another package that gets installed because your chosen one relies on it.

What is choosing a safe open source package?

Think of hiring a builder. You check they are who they say they are, that they are still trading and that past customers were happy. You do it before they start, because sending them away halfway is much harder.

Open source packages work in a similar way. A package is ready-made code that anyone can download and use. Most people get packages through a package manager (a tool that fetches and installs them for you). One short command can add it to your project.

That package runs with the same access as your own code. It may also pull in its own dependencies (other packages it relies on), and those pull in more. So one choice can bring dozens of other people's code into your project.

Choosing safely means a few minutes of checks before you install. A security group called the Open Source Security Foundation (OpenSSF) publishes a short guide with these checks.[1]

Where the comparison stops working: a builder you hire works on one job. A package keeps changing. Each new version can be different from the one you checked, so the choice is not a one-off.

Why does it matter?

The OpenSSF guide puts it simply: every new dependency adds to the ways your software can be attacked.[1] A package that nobody looks after may keep a known flaw for a long time.

If you are learning to code

What could happen: you copy a package name from a forum post or a chatbot, and install a lookalike or an abandoned copy.

Check this: find the package through its official website or code page before you install it.

Next: Package Managers for Beginners

If you are a developer at work

What could happen: you add a handy package that has one maintainer and no release for years, and it has a known flaw.

Check this: look up its releases, maintainers and known flaws before you add it.

Next: Open Source Risk and Software Composition Analysis for Beginners

If you manage a team or pay for software

What could happen: nobody decides which packages are allowed, so each project ends up with hundreds nobody chose on purpose.

Check this: ask how new packages are approved and who reviews them.

Next: Software Supply Chain Security for Beginners

What does it look like?

Here is a made-up set of notes a student wrote while comparing two packages that do the same job.

Example only. All values are made up.

Package: date-helper-example
Found via:        chatbot answer           (1)
Official site:    none found               (2)
Last release:     3 years ago              (3)
Maintainers:      1, issues unanswered     (4)
Known flaws:      1 open advisory, no fix  (5)
Licence:          none stated              (6)
Security score:   2.1 / 10                 (7)
  1. The name came from a chatbot, not from the project's own page.
  2. No official website links to this package.
  3. No new version in years, so new flaws may not get fixed.
  4. One person, who no longer replies to bug reports.
  5. A published security flaw that has no fix yet.
  6. No licence, so you may not be allowed to use it at all.
  7. A low score from an automated checker, which is a reason to look closer.

Why this is risky: no single line proves the package is harmful. Together, they suggest nobody looks after it. It may not even be the package the student meant.

The safer way: look for another package that does the same job. Choose one with an official site, recent releases and more than one maintainer. If the job is small, write the few lines yourself.

How does it work?

These five checks follow the OpenSSF guide, in plain words.[1] Most take a minute or two each.

  1. Do I need it? Could a few lines of your own code, or a package you already use, do the job? Fewer packages means less to look after.
  2. Is it the real one? Check the exact name and find it from the project's official website. Watch for a more popular package with a similar name, which can be a sign of a lookalike.
  3. Is it looked after? Look for a release in the last 12 months, more than one maintainer and bug reports that get answers.
  4. Any known flaws? Check that the version you want has no important known flaws. Free lookup sites, such as deps.dev, show known flaws and a security score.[1]
  5. Can I use it? Check it has a clear licence that fits how you plan to use it.
Steps diagram titled Five questions before you add a package. Five boxes joined by arrows: 1 Need it? Could a few lines of my own code, or a package I already have, do it? 2 Real one? Exact name, official website, not a lookalike or copy. 3 Looked after? Recent releases, more than one maintainer, bugs answered. 4 Known flaws? Check advisories and its security score on a lookup site. 5 Licence OK? Clear licence that fits how you will use it. A box below says a no or not sure is a reason to look for another package or ask someone, not to give up. A green bar says check before you install: it is easier than removing it later.
Figure 1. Five quick questions, asked before the install command.

The security score comes from a free tool called OpenSSF Scorecard. It runs automated checks on a project, such as whether it is still maintained, whether changes are reviewed and whether it has a security policy. Each check gets a score out of 10, and these are combined into one overall score.[2] Its makers say the overall score helps give a sense of a project's security. It is a general sign, not proof.[2]

Some projects also show a Best Practices badge. Projects earn it by explaining how they meet a list of good habits, and some answers are checked automatically.[3] A badge is a good sign, but it is the project's own statement.

Comparison diagram titled Two packages that do the same job. Left panel, Package A: think twice. Last release 3 years ago; one maintainer, no reply to issues; open security advisory, no fix; no licence file; name one letter off a popular package. Right panel, Package B: a better sign. Regular releases this year; several maintainers who reply; security policy says how to report; clear, widely used licence; linked from the official project site. A green bar says good signs lower the risk, they do not prove a package is safe.
Figure 2. The same job, two very different levels of care.

A worked example

Hana Yeboah is in her first year as a junior developer at a fictional charity. She is building a small app that turns volunteer sign-up forms into PDF files.

She asks a chatbot which package to use. It suggests a name she has not heard of. She is about to install it when she remembers the builder. You check who someone is before they start work.

Hana searches for the name on the official package site. It exists, but it has one maintainer, no release for four years and no licence. She cannot find any official website that links to it.

She looks for other packages that make PDFs. One is linked from a well-known project's website. It had a release two months ago and has several maintainers who reply to bug reports.

She looks it up on deps.dev. The version she wants shows no known flaws, and its security score is fair. The licence is a common one that her charity allows.

Hana shows both sets of notes to her team lead, Lina Mbeki. Lina agrees with the choice. She asks Hana to add her notes to the team's wiki, so others can use the same five questions.

Lina also turns on alerts in the team's code host, so the team hears about new flaws in the packages they use. Choosing well is the first step. Keeping an eye on things is the next.

Myths and mistakes

What people thinkWhat is true
Lots of downloads means it is safe.Popular packages get more attention, which helps. But popularity is one sign among several, not proof.[1]
Open source means lots of people have checked the code.Many widely used projects have a single maintainer. Check who looks after it.[1]
A high security score means no risk.The score gives a sense of a project's habits. It is a general sign, not proof.[2]
A chatbot's package suggestion is a safe starting point.Treat it as a lead only. Check the exact name on the project's official page before you install.
Once I have checked a package, I am done.New versions arrive all the time. Keep alerts on and review updates.

What can I do this week?

  • Pick one package in your project and work through the five questions.
  • Look up that package on deps.dev and note its releases, known flaws and score.
  • Remove one package you no longer use.
  • Write the five questions in your team's notes or project readme.
  • Turn on alerts for known flaws where your code is stored, if your service offers them.

Checklist

  • Every new package is needed, and could not easily be replaced by a few lines of code.
  • The exact name was checked against the project's official site.
  • The package had a release in the last 12 months.
  • It has more than one maintainer, or a clear reason to accept just one.
  • The version you install has no important known flaws.
  • It has a clear licence that fits your use.
  • Someone else on the team agreed to the new package.
  • Alerts for new flaws are on for the project.

Common questions

How do I check if an npm or Python package is safe?

You cannot be certain, but you can lower the risk. Check the exact name from the project's official site. Look at its release dates and maintainers on the package site. Then look it up on deps.dev for known flaws and a security score.

What is a good OpenSSF Scorecard score?

There is no official pass mark. Higher is better, and the details matter more than the total. A low score is a reason to look at which checks failed. A high score shows good habits, but it does not prove a package is safe.

Is an old package always a bad choice?

Not always. Some small, finished packages rarely need changes. But if nobody has released a fix in years, a new flaw may never be fixed. For anything that handles passwords, payments or personal data, prefer a package that is actively looked after.

What is the difference between this and checking for malicious packages?

Choosing well is about quality and care: is the package genuine, needed and looked after? Checking for malicious packages is about spotting code made to cause harm. The two overlap on checking the exact name, and both are worth doing before you install.

Should I ask before adding a package at work?

Yes, if your team has a process, follow it. If not, we suggest asking a teammate to look at your choice. A second pair of eyes takes minutes, and removing a package later can take days.

Where next?

Ready for the detail? Read the practitioner guide: Dependency Intake Review Checklist. It goes further into approval steps, evidence to record for each new package and how teams review dependencies at scale.

Also useful:

Related NHI Mgmt Group resources: Open Source Security Guide · Package Cooldown and Minimum Release Age Guide · Open Source Risk and Software Composition Analysis for Beginners

Key terms

Open source software
Software whose code anyone can read, use and share under its licence.
Package manager
A tool that downloads and installs packages for a project.
Maintainer
A person who looks after a package, fixes bugs and publishes new versions.
Transitive dependency
A package you get indirectly, because a package you chose relies on it.
OpenSSF Scorecard
A free tool that runs automated checks on an open source project and gives it a security score.
Typosquatting
Publishing a package with a name very like a popular one, hoping people install it by mistake.
Vulnerability
A flaw in software that someone could use to cause harm.

Sources and further reading

  1. Concise Guide for Evaluating Open Source Software. Open Source Security Foundation (OpenSSF) Best Practices Working Group. https://best.openssf.org/Concise-Guide-for-Evaluating-Open-Source-Software, accessed 28 Nov 2026.
  2. OpenSSF Scorecard. Open Source Security Foundation. https://scorecard.dev/, accessed 28 Nov 2026.
  3. OpenSSF Best Practices Badge Program. Open Source Security Foundation. https://www.bestpractices.dev/en, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.