Software Development Security

A team downloads an open-source library for its build and must confirm it is the publisher's unaltered release. What should it do?

Show the answer

Correct answerA. Verify its signature or hash against the publisher's published value

AWhy this is right: Comparing a signature or hash with the publisher's value proves the downloaded file is unmodified.

BWhy not this: An unpinned latest tag accepts any new release, including a compromised one, with no integrity check.

CWhy not this: Obfuscation hides code structure and says nothing about whether the library was altered.

DWhy not this: DAST tests the running application's behavior and cannot prove a library's provenance.

Checking the digital signature or hash against a value from the publisher confirms the library has not been tampered with. Using the latest tag does the opposite, since it accepts whatever is currently published without verification.