Comments (6)
Hi,
Thank you so much! truly appreciate!
I actually don't understand the grammar or the functionality here of this line "lief_adv: lief.PE.Binary = lief.PE.parse(x_adv[0])". I guess it will convert a list of integer (the input I have) to a PE file (but in which format).
and in "lief_adv: lief.PE.Binary" really confused me, what the ":" for ?
Again, thank you! excellent project here!
from secml_malware.
the error derails:
"compute_black_box_optimization
fitnesses = [self.problem.fitness(np.array(t)) for t in pop]
File "/secml_malware/secml_malware/attack/blackbox/ga/c_base_genetic_engine.py", line 167, in /secml_malware/secml_malware/attack/blackbox/c_blackbox_problem.py", line 51, in fitness
fitnesses = [self.problem.fitness(np.array(t)) for t in pop]
File "
candidate = self.apply_feasible_manipulations(t, self._original_x)
File "/~/secml_malware/secml_malware/attack/blackbox/c_gamma_sections_evasion.py", line 58, in apply_feasible_manipulations
lief_adv: lief.PE.Binary = lief.PE.parse(x_adv[0])
TypeError: [77.0, 90.0, 144.0, ...] "
from secml_malware.
Hi!
Thank you for the issue, I will investigate this very soon.
Lief only works with either a list of integers, either with a path... so I need to investigate what's happening there.
Stay tuned!
from secml_malware.
It's Python type annotation.
Since I use an IDE for writing code, it is useful to let the software know thee type of this object, and so it helps me with auto-completion.
I will work on that bug as soon as possible!
from secml_malware.
So, I'm debugging a bit, I'll let you know!
Thank you for making me notice! :)
from secml_malware.
Fixed!
There was a wrong reshape.
Thank you again!
from secml_malware.
Related Issues (20)
- How to run lightGBM and SOREL model using secml_malware? HOT 2
- No data preprocessing for SorelNet? HOT 2
- Error while running the sample attack code from blackbox_tutorial.ipynb HOT 4
- real sample generation HOT 5
- can't attack EMBER model HOT 1
- Confidence on Microsoft Malware Classification Challenge HOT 10
- Differences Between WhiteBox Attacks HOT 7
- Adding support for QuoVadis models HOT 2
- AttributeError: 'NoneType' object has no attribute 'dos_header' HOT 4
- No such file or directory: 'secml_malware/data/malware_samples/test_folder' HOT 3
- lightGBM and SOREL model weights? HOT 1
- Support for ensemble models HOT 1
- SOREL ATTACK HOT 1
- CGammaSectionsEvasionProblem attack budget HOT 6
- FGSM Attacking Running for days HOT 1
- Train models HOT 5
- Fix numpy retrocompatibility for CClassifierEmber
- issue installing secml-malware with pip with python 3.12
- Wrong ember prediction
- GAMMA section injections might load sections at random
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secml_malware.