Software composition analysis (SCA)

SCA checks the open-source packages your project uses. It finds known vulnerabilities and licences that your policy does not allow.

Included in Premium and Ultimate.

In AquilaX

AquilaX SCA finding for unsafe deserialisation in commons-collections 3.2.1, with a CVSS score of 9.8
A known vulnerability in commons-collections 3.2.1, with its CVSS score.

Screenshots that show scan results use our public test apps, which are vulnerable on purpose. Select an image to enlarge it.

What it looks for

Known vulnerabilities

Published vulnerabilities in the package versions you use.

Indirect dependencies

Packages that your direct dependencies bring into the project.

Licences

Licences that your security policy does not allow.

Examples

These examples show common problems and safer ways to write the code. They are not AquilaX results, and scanner coverage can vary.

Log4Shell, inherited from a starter

CVE-2021-44228JavaCritical
Vulnerable · pom.xml
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-log4j2</artifactId>
  <version>2.5.6</version>
</dependency>
<!-- resolves to log4j-core 2.14.1 -->

log.info("Login from {}", request.getHeader("User-Agent"));
Why it's exploitable

Nobody wrote log4j-core in this file. It comes in through the starter. Version 2.14.1 expands ${jndi:ldap://...} inside logged strings, so a crafted User-Agent makes the server fetch and run a remote class.

The fix
<properties>
  <log4j2.version>2.17.1</log4j2.version>
</properties>
<!-- or move to a Spring Boot release that ships it -->

Prototype pollution in an old lodash

CVE-2019-10744Node.jsHigh
Vulnerable · routes/settings.js
// package.json → "lodash": "4.17.11"
app.post("/settings", (req, res) => {
  const settings = _.defaultsDeep({}, req.body, DEFAULTS);
  save(req.user.id, settings);
});
Why it's exploitable

Before 4.17.12, defaultsDeep follows a constructor.prototype key in the input and writes to Object.prototype. One request with {"constructor":{"prototype":{"isAdmin":true}}} makes isAdmin true on every object in the process until it restarts.

Your code isn't wrong on its own. The library version is what turns it into a bug.

The fix
"lodash": "^4.17.21"
$ npm install && git add package-lock.json

A loose range that accepts a hijacked release

Supply chainnpmCritical
Vulnerable · package.json
"dependencies": {
  "ua-parser-js": "^0.7.28"
}
// no package-lock.json committed
Why it's exploitable

In October 2021 the maintainer's npm account was taken over and 0.7.29, 0.8.0 and 1.0.0 were published with a cryptominer and a password stealer. The caret range accepts 0.7.29, and with no lockfile any fresh install in CI could pull it.

The fix
"ua-parser-js": "0.7.33"
// commit the lockfile, and use `npm ci` in CI

What to know

  • Include dependency files and lockfiles in your repository for more complete results.
  • A vulnerable package does not always mean your app can be attacked. Check whether your code uses the affected feature.
  • Full scans can create a software bill of materials (SBOM). Diff scans cannot.
  • Test your app after you update a dependency.

See all scanners How to fix findings

Questions and answers

What is the difference between SAST and SCA?

SAST checks the code your team writes. SCA checks open-source packages for known vulnerabilities and licence problems.

What are indirect dependencies?

They are packages that your direct dependencies need. They are also called transitive dependencies.

Which dependency files should I include?

Include files such as package.json, pom.xml or requirements.txt, with lockfiles if you use them. Lockfiles help show the exact package versions in your project.

Can SCA check open-source licences?

Yes. Add the licences you do not allow to your security policy. AquilaX can then report packages that use them. This does not replace legal advice.

Can AquilaX create an SBOM?

Yes. A full scan can create a software bill of materials (SBOM), but a diff scan cannot. On Ultimate, you can also export a unified report as an extended SBOM.

Does every vulnerable package put my app at risk?

Not always. It depends on things such as whether your app uses the affected feature and whether an attacker can reach it. Check this before you decide what to fix first.

What if there is no fixed version?

Check the advice from the package maintainer. You may be able to turn off the affected feature, use a workaround or choose another package. Keep checking for an update.

How do I check that an update fixed the problem?

Test the update, scan the project again, then compare the two scans. The comparison shows which findings are new and which are resolved.

Which plan includes this scanner?

Included in Premium and Ultimate. Compare plans.

Try it on one of your repositories

Create a free account and run a scan. If you need Ultimate, self-hosting or a larger rollout, talk to our team.

No credit card needed. Read the documentation