Coder Social home page Coder Social logo

Fix SOREL model about secml_malware HOT 5 CLOSED

pralab avatar pralab commented on June 11, 2024
Fix SOREL model

from secml_malware.

Comments (5)

an9236868 avatar an9236868 commented on June 11, 2024

hi @zangobot did you successfully run this on SOREL for goodware/malware class? All of the attacking methods that I run seem to require attributes from MalConv networks such as below, so I'm not sure what is the purpose of CClassifierrSorel

---> 52                 self.embedding_size = end2end_model.get_embedding_size()
     53                 self.max_input_length = end2end_model.get_input_max_length()
     54                 self.invalid_pos = end2end_model.get_embedding_value()

AttributeError: 'CClassifierSorel' object has no attribute 'get_embedding_size'

from secml_malware.

zangobot avatar zangobot commented on June 11, 2024

Hello!

The classifier uses a different feature set (while malconv is end to end), hence these attacks (that alter single bytes) are not suitable to attack Sorel.
Otherwise, you would need to compute a gradient from features to single bytes (and this is a very hard problem, since you are trying to inverse the mapping).
I advise using a blackbox attack against it!

from secml_malware.

an9236868 avatar an9236868 commented on June 11, 2024

thanks @zangobot for your responses, I would be really appreciated it if you can provide me with some of the black-box attacks that you know that can work with SOREL.

from secml_malware.

zangobot avatar zangobot commented on June 11, 2024

As it is now, the way for using the SOREL model is by creating a c_wrapper_phi that only consider the score you wish to decrease, and you're done!
If you code that, feel free to open a pull request.
I'll put this into my todo list in the meantime.

from secml_malware.

zangobot avatar zangobot commented on June 11, 2024

Fixed, pull the new version to use it!

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.