Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running code as part of dynamic analysis #672

Open
kushaldas opened this issue Mar 1, 2023 · 4 comments
Open

Allow running code as part of dynamic analysis #672

kushaldas opened this issue Mar 1, 2023 · 4 comments
Labels
dynamic analysis Issues specific to the implementation of Dynamic Analysis needs discussion

Comments

@kushaldas
Copy link

In Python land for example after we install a wheel (or build and then install from source), allow us to execute some code.

Say we are installing a module called randomcode, then maybe we can also pass a python file like following and interpret/execute accordingly.

import randomcode
randomcode.hello()
randomcode.do_something_which_should_not_do_network_call()
@calebbrown calebbrown added dynamic analysis Issues specific to the implementation of Dynamic Analysis needs discussion labels Mar 3, 2023
@calebbrown
Copy link
Contributor

Is your suggestion related to expanding the coverage of dynamic analysis, verifying that unsafe/undesired behaviour isn't occurring, or both?

As far as expanding coverage goes we've thought about perhaps running any included tests, or using reflection to exercise more code.

@maxfisher-g
Copy link
Contributor

Thanks for the issue @kushaldas!

If I understand correctly, your idea is to allow passing in a custom script which can call certain functions that the user is interested in analysing, inside the sandbox. Is that right?

@kushaldas
Copy link
Author

If I understand correctly, your idea is to allow passing in a custom script which can call certain functions that the user is interested in analysing, inside the sandbox. Is that right?

Yes, that is what I had in mind.

@maxfisher-g
Copy link
Contributor

Hi Kushal, while the priorities for our roadmap are mostly centered around automated analysis, including things like increasing coverage using automated methods, we are interested in better understanding the use-cases you had in mind for a manual 'driver script'.

Could you explain a little bit more of the background behind this feature request and/or intended applications?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamic analysis Issues specific to the implementation of Dynamic Analysis needs discussion
Projects
None yet
Development

No branches or pull requests

3 participants