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

Write regression tests #9

Open
CapacitorSet opened this issue Sep 29, 2016 · 1 comment
Open

Write regression tests #9

CapacitorSet opened this issue Sep 29, 2016 · 1 comment

Comments

@CapacitorSet
Copy link
Owner

Some ideas:

  • Testing on a blank file to make sure that everything works
  • Testing for frequent mistakes, like simplifying "foo" + "bar".decode() to "foobar".decode()
  • Testing that XML tags and @cc_on are stripped correctly
  • Testing for rewrites inside eval
  • Use various pieces of existing malware (that for some reason at one point or another were not emulated correctly by box-js), deactivate it (eg. replace the payload URLs with https://google.com/robots.txt), and test that they are analysed correctly
  • Test for samples based on codepage-437 encoding, downloading the samples from a local webserver, and verifying that the result is decoded correctly (requires one to study one such sample and "craft" a payload correctly, i.e. so that it can be decoded - obviously can't use real-life payloads)
  • Test for individual components - WScriptShell, XMLHTTP, etc.
@CapacitorSet
Copy link
Owner Author

The testing platform - be it Mocha, Jasmine, Should or whatever - will be called by Travis, to automate regression testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant