Giter Site home page Giter Site logo

aurore54f / jast Goto Github PK

View Code? Open in Web Editor NEW
69.0 69.0 20.0 8.29 MB

Syntactic detection of malicious (obfuscated) JavaScript files

Home Page: https://swag.cispa.saarland/research.html

License: GNU General Public License v3.0

Python 98.05% JavaScript 0.99% Shell 0.96%
classification clustering detection javascript python static-analysis syntactic-analysis

jast's People

Contributors

aurore54f avatar pararaum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jast's Issues

Missing ground truth?

Is there a way to supply ground truth to the classifier? The example provided works fine, but does output the message:

WARNING: No ground truth given: unable to evaluate the accuracy of the classifier's predictions

Remove default arguments with fixed paths

Some functions have default parameters which look like fileDir = '/home/...'. Are these dafault arguments really needed? If yes, a relative path would be better as in the current version the home directory is hard coded.

Difference with JStap

Nice job !

I red your code JStap, I just wanted to quickly understand, what are the differences with this project?

Thank you

Returning an undefined variable on exception

In NGramsRepresentation.py:

	# return DicoIntToNGrams.dicoIntToNGrams[str(i)];
	try:
		ngram = dico[str(i)];
		return ngram;
	except KeyError as e:
		print('The key ' + str(e) + ' is not in the dictionary.')
		pass;
        return ngram;

On an exception ngram is not defined and the return statement will fail.

some questions about the codes and the publication

hello,
I'm a new learner to classifying malicious and benign javascripts, and I'm very interested in reading this project and the paper. However I met some confusions. Please help me.

  1. In the publication Table 1, there states all possible N-grams. In my opinion, 1-gram should be 26 and 2-grams should be 26^2, but in the table, it's different. Could you explain why?
  2. For example, a declaration line "var goodluck" can be parsed as "Identifier: Name: "goodluck"". In the project, is the N-gram method applied to only "Identifier: Name" or the complete string including "goodluck"๏ผŸ For the reason of obfuscation, including "goodluck" seems not be a good idea.

Thanks very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.