AppThreat / atom

Atom is a novel intermediate representation for applications and a standalone tool that is powered by chen.
https://appthreat.com
Apache License 2.0
43 stars 2 forks source link

slice generated for requests include requests #24

Closed prabhu closed 1 year ago

prabhu commented 1 year ago

Could we filter the internal modules from the current folder in the generated modules slice?

Look for argument name - name and packages and add them to the localModuleNames. Sometimes, the name could point to a variable and packages could be a list.

cpg.call("setup").argument.argumentName("packages").where(_.file.name(".*setup.py")).code.toSet