Code Monkey home page Code Monkey logo

Comments (6)

haoliutj avatar haoliutj commented on May 29, 2024

if this is an issue, then the shift attack and extension attack may be impacted

from secml_malware.

zangobot avatar zangobot commented on May 29, 2024

Is that before or after the extension of the header?
Because it must be that, since the PE is shifted for the case 2.

from secml_malware.

haoliutj avatar haoliutj commented on May 29, 2024

its before header extension. I just want to simply compare the three functions based on one input sample, to see if there are performing the same function.

By the way, your work truly inspired me about what I am working on. However, I am pretty new on this topic, probably a lots of questions, hope you don't mind. About the bool parameter "shift_values", it's always minus 1 when shift_values=True, what's the reason behind this?

Thank you so much!

from secml_malware.

zangobot avatar zangobot commented on May 29, 2024

Mmmh, strange.
Can you please tell me when this happens?
Because I can't find this in my tests.

The parameter shift_values express is used for networks that adds one to the bytes (so, the embedding value is 0 instead of 256). In this way, when reading the byte of a program, it correctly maps it inside the correct space.

Happy that my work has inspired you 👍

from secml_malware.

haoliutj avatar haoliutj commented on May 29, 2024

I noticed that, if the second method, which in your program, is fed with integer (not the path), then the results of above three methods are consistent. While if feed a str (path) to second method, then the result is different with other two.

So I just keep the input consistent, should solve the issue.

And thanks for you explanation about the shift_values. that's smart!

from secml_malware.

zangobot avatar zangobot commented on May 29, 2024

Mmmmmh.
So, inside the library, everything works with integer lists.
Closing the issue now, but I'll have a look to LIEF (with your suggestion).

Btw, thank you for appreciating this work! :)

from secml_malware.

Related Issues (20)

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.