Git Product home page Git Product logo

Comments (6)

zangobot avatar zangobot commented on May 28, 2024

Hi!

You need to use the FGSM inside the repo for attacking end-to-end models or you need to code a custom attack?
All the attacks are subclass of CAttackEvasion (from secml).
Then, I created other subclasses for the different strategies.
The FGSM specifies only how to perturb the malware and how to compute the gradients and loss, and then it uses the methods of the underlying library.
Most of the details are included in the paper I listed (the "Adversarial EXEmples" paper contains the formalization I used for encoding all the attacks, it might help understanding what does what)

By the way, I still need to write a decent doc, I'll try to do that in the future (time consuming task, but needed)

from secml_malware.

tyronxe avatar tyronxe commented on May 28, 2024

Im trying to integrate the FGSM attack into the tutorial attack to try and generate Adversarial AI Malware.
Im having trouble trying to integrate it as there is no documentation on how to use it.

Could you link me the "Adversarial EXEmples" paper?

from secml_malware.

zangobot avatar zangobot commented on May 28, 2024

Hi again!
In the readme of this repository, there is a full list of the paper I used in this topic.
There is also a notebook with an example attack (the partial DOS header attack).

from secml_malware.

zangobot avatar zangobot commented on May 28, 2024

Ok, I got the point.
So, the attack needs:

  1. the end-to-end model;
  2. the list of locations inside the sample that you want to edit;
  3. the epsilon parameter

If you want to use default locations, have a look at the CKreukEvasion (from the name of the author).
That attack uses padding and slack space to compute adversarial malware.

from secml_malware.

tyronxe avatar tyronxe commented on May 28, 2024

Hi,
Actually im trying to find out which function from the C_Fast_Gradien_Sign_Evasion.py to use to run the attack.
Capture
From the image i am using the apply_feature_mapping() function. Am i using the correct function and what kind of parameters are needed for this function?

from secml_malware.

zangobot avatar zangobot commented on May 28, 2024

There is the run function, as shown in the tutorial:

for sample, label in zip(X, y):
    y_pred, adv_score, adv_ds, f_obj = your_attack.run(CArray(sample), CArray(label[1]))

So, after you have created the CFastGradientSignEvasion correctly, you just call that function and you're done.
But, first of all: how do you want to perturb the malware?
Because, as I said before, you could use the CKreukEvasion, as it is a FGSM implementation with standard locations used for perturbing the malware.

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.