
AJha8889 (Community Member) asked a question.
Some libraries are loaded dynamically during runtime, how Veracode detects such libraries and scan them?

AJha8889 (Community Member) asked a question.
Some libraries are loaded dynamically during runtime, how Veracode detects such libraries and scan them?
Ask the Community
Get answers, share a use case, discuss your favorite features, or get input from the community.
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
.png)
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Hello @AJha8889 (Community Member) ,
In order to provide an accurate answer, can you please clarify which type of scanning you are looking to run, and also provide some type of a real-world example of the dynamically loaded libraries that you are looking to scan? Thank you.
Jason
Veracode Support Engineer
@AJha8889 (Community Member) ,
It has been a few days and just wanted to ensure that you saw my response and question in it. Please let me know when you have a chance to better assist you. Thanks.
Jason
Veracode Support Engineer
@Jason M., Veracode Support (Veracode)
We can load third-party JAR's dynamically in java application like this
URLClassLoader child = new URLClassLoader(
new URL[] {myJar.toURI().toURL()},
this.getClass().getClassLoader()
);
Such JAR's need not to be in classpath.
How does veracode scan those third-party libraries?
@AJha8889 (Community Member) ,
Can you please confirm which kind of scan that you are trying to do? Static, Dynamic, Software Composition Analysis?
Jason
Veracode Support Engineer
@Jason M., Veracode Support (Veracode) I am trying static scan
Hello @AJha8889 (Community Member) ,
As you know, there are two Veracode scan methods available – Upload & Scan, and Agent Based. What you may not know is that they are the same scanner but that is just invoked with different methods. Upload & Scan runs the “Quick” version of the agent since it doesn’t have access to the source.
As part of Upload & Scan unmatched libraries will not be included in the SCA results, and there is no indication that there is an unmatched library (https://help.veracode.com/r/hHHR3gv0wYc2WbCclECf_A/2fDFsrT1yu~383NjA~ZiTw). If the library file name matches one in the database then it will not be included in the static scan. If it does not match then it will be included in the static scan as if it’s a first party module.
Jason
Veracode Support Engineer