Atlas
Plain EnglishExplainer

Software Dependencies in AI-Built Apps: What to Ask

AI coding agents pull in ready-made code from strangers. Learn what software dependencies are, how they go wrong, and the plain questions that keep risk low.

1New package namedin a change2Is it real, known andmaintained?3Why is it needed?4Version locked andapproved5Scanned for knownflaws

The short version

  • Software dependencies are ready-made pieces of other people's code that your app relies on. An AI coding agent can add them quickly, so set rules for additions.
  • There are three problems: a known flaw in a package you already use, a made-up package name an attacker has registered, and a real package that should not be trusted.
  • Ask your team which packages a change added, why each is needed, whether each is real and maintained, and whether the whole list is scanned for known flaws.
  • Scanning tools rank known flaws as critical, high, moderate or low, so you can decide what to fix now and what can wait.
  • A clean scan is not proof of trust. It only finds flaws that are already known, so pair it with a named person who approves new packages.
On this page
  1. The short version
  2. What is a software dependency?
  3. Why does this matter more with an AI agent?
  4. What can actually go wrong?
  5. What should you ask your AI team?
  6. How do you keep the risk low without slowing down?
  7. What does Atlas do about it?
  8. The bottom line
  9. Questions people ask

If an AI coding agent builds your product, software dependencies are one of the quieter risks to understand. A dependency is a ready-made piece of code, written by someone else, that your app uses instead of building the feature from scratch. The agent can add them quickly and may not point them out, so your job is to ask which ones were added, why, and whether anyone checks them.

You do not need to read code to do this. You need a few plain questions and a habit of asking them.

What is a software dependency?

Think of building a shop. You do not make your own door locks, light bulbs and payment terminals. You buy them. Software works the same way. Need to send emails, read a spreadsheet, take a card payment or show a date in the right format? There is almost always a free, public package that does it.

Those packages are shared in public libraries called registries. Each package often relies on other packages, which rely on others again, so the full list behind even a modest app can be much longer than the handful you asked for. Each one is code you did not write and your team did not read.

That is not a flaw. It is how nearly all modern software gets built, and it saves a great deal of time and money. But every package is a small act of trust, and trust should be deliberate.

Why does this matter more with an AI agent?

An agent reaches for whatever solves the task in front of it, and it does so in seconds. A person might stop to ask who maintains a package or whether a simpler option exists. An agent will only do that if you tell it to.

That speed is the point of using an agent, but it changes the risk in two ways:

  • More additions, less notice. A change that adds six packages can look small on the surface. The list of additions is easy to miss in a large pull request, which is a bundle of proposed changes waiting for approval.
  • Invented names. Agents sometimes name a package that does not exist. That sounds harmless, but it is not, as the next section shows.

What can actually go wrong?

There are three separate problems. They need different answers, so it helps to keep them apart.

1. A package you use has a known flaw

Packages have bugs, and some bugs are security holes. Researchers find them, report them, and the package's authors release a fixed version. Your app stays exposed until someone updates it.

This is the most common problem and the easiest to manage. Scanning tools compare your list of packages with a database of known flaws and report matches. The npm tool for JavaScript projects, for example, submits a description of your project's dependencies to a registry and reports known vulnerabilities. Its audit reports rank each flaw as critical, high, moderate or low. The advice attached to each is: address critical ones immediately, high ones as quickly as possible, moderate ones as time allows, and low ones at your discretion.

That ranking is what lets a non-engineer decide. A critical flaw in something your customers touch is a stop-and-fix item. A low one can wait for the next planned update.

2. A made-up package name an attacker has claimed

This one is newer and specific to AI. Security researchers call it slopsquatting. It is a variant of an older trick, typosquatting, where an attacker registers a name that looks like a real package and waits for people to mistype it. In slopsquatting, the attacker instead waits for an AI to invent a believable name. As Trend Micro's research on slopsquatting explains, attackers can pre-register those hallucinated names on public registries. Anyone who then runs the install command may download malware.

How often does this happen? Trend Micro compared AI tools across 100 web-development tasks. Plain models mostly invented no package names, though they occasionally invented two to four. Coding agents roughly halved the hallucination rate, but still produced one or two phantom names on complex prompts. So the risk is not constant, but it is not zero either, and the fix is cheap: do not let a new, unfamiliar name in without a look.

3. A real package that should not be trusted

Some real packages are abandoned, badly maintained, or published by someone you would not want in your supply chain. A package that nobody has updated in years is a quiet risk. So is one that does far more than the job needs, such as a tiny date helper that asks for network access.

This is harder to scan for. It is where human judgement matters most, and where a clear rule helps: new packages need a reason.

What should you ask your AI team?

Keep the questions short. You can put them in a brief or ask them at the end of each piece of work.

  1. "Which packages did this change add or remove?" You want a plain list, not a hunt through the changes.
  2. "Why does each new one earn its place?" A good answer is a feature, in business words: "reads spreadsheet uploads". A weak answer is "it was convenient".
  3. "Are all of them real, well known and maintained?" The agent can check that each name exists on the public registry and see when it was last updated. Ask it to say what it found rather than just "yes".
  4. "Is the exact version locked?" A lock file records the exact version of every package. Without it, a rebuild next month could quietly pick up different code. npm's documentation says that skipping the lock file when auditing means results may vary between runs, because the dependency tree is rebuilt each time.
  5. "Is the whole list scanned for known flaws, and how often?" Flaws are discovered after you ship, so a one-time check goes stale. A sensible setup scans on every change and again on a schedule.
  6. "Who approves a new package?" Name a person. It does not have to be you, but it has to be someone.

How do you keep the risk low without slowing down?

You do not need to ban dependencies. You need a few small rules that fit on a page.

  • Prefer well-known packages. Popular and actively maintained beats obscure and new, unless there is a good reason.
  • Approve additions. Trend Micro recommends manual review of new or unfamiliar packages. Routine updates to packages you already use can move faster.
  • Scan automatically. Put the scan where nobody has to remember it, so a change that brings in a serious flaw cannot ship quietly.
  • Keep the list short. Every package you avoid is one less thing to scan, update and worry about. Ask whether a feature really needs a new package or whether the ones you already have will do.
  • Update on a rhythm. Small, regular updates are far easier than one big catch-up after two years.
  • Test after updating. An update can fix a flaw and break a feature. Your normal tests should run again afterwards.

One honest limit: none of this makes the risk zero. A scan only finds flaws that are already known, and a clean report does not prove a package is trustworthy. Trend Micro also warns that relying on simple registry lookups offers a false sense of security, which is why several layers of checks matter more than any single one.

What does Atlas do about it?

Atlas runs a security scan that looks for passwords or keys committed in what changed on the main version of your project, and for high or critical package advisories. A change that touches sign-in, payments or stored secrets also gets a security look at once. Atlas does not today check whether a newly added package is one an agent invented, or ask you to approve each new package before it goes in. That is coming to Atlas, built in, so it needs no setup on your side. Until then, put the questions above into your brief and ask for the list of added packages with each piece of work.

The bottom line

Dependencies are not something to fear. They are something to keep a list of. Ask which packages came in, why, and whether they are scanned. Name a person who approves additions. Treat a new, unfamiliar name as a question rather than a detail. Those habits catch much of what can go wrong, and none of them require you to read a line of code.

Questions people ask

What is a software dependency in plain English?

It is a ready-made piece of someone else's code that your app uses instead of building the feature itself, such as sending email or reading spreadsheets. Most modern software relies on many of them.

What is slopsquatting?

It is an attack where someone registers a package name that an AI coding tool tends to invent. If the install command runs, it can download the attacker's malware instead of a real package.

How do I check my AI-built app's dependencies are safe?

Ask for a plain list of packages added with each change, a reason for each, confirmation they exist and are maintained, and an automatic scan for known flaws. Name a person who approves new additions.

Does a clean security scan mean my packages are trustworthy?

No. A scan reports known flaws by severity, but it cannot prove a package is trustworthy or that no new flaw exists. Use it together with human approval of new packages.

Sources

  1. Slopsquatting: When AI Agents Hallucinate Malicious Packages (Trend Micro)
  2. npm audit (npm documentation)
  3. About audit reports (npm documentation)

Researched and drafted with Claude, then checked against the sources above. Atlas is an independent product, not affiliated with Anthropic or OpenAI. Claude and Claude Code are trademarks of Anthropic; Codex is a product of OpenAI.