Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
eJPT as a 15 year old
https://cdn-images-1.medium.com/max/881/1*7RJL7AlTEqdHrU8oTQg96Q.png
Hello! My name is Arav Budhiraja, a 15 year old from India. Since the onset of the covid-19 pandemic, I gained an interest in the field of…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
eJPT as a 15 year old
https://cdn-images-1.medium.com/max/881/1*7RJL7AlTEqdHrU8oTQg96Q.png
Hello! My name is Arav Budhiraja, a 15 year old from India. Since the onset of the covid-19 pandemic, I gained an interest in the field of…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
eJPT as a 15 year old
Hello! My name is Arav Budhiraja, a 15 year old from India. Since the onset of the covid-19 pandemic, I gained an interest in the field of…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Best Approaches to Engage a Hacker for Mobile Phone Hack: Hackers for Hire
https://cdn-images-1.medium.com/max/1280/1*8nZtL6F_T3gAYOzpbymBlQ.jpeg
is a perfect choice in order to hack iPhone remotely.
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Best Approaches to Engage a Hacker for Mobile Phone Hack: Hackers for Hire
https://cdn-images-1.medium.com/max/1280/1*8nZtL6F_T3gAYOzpbymBlQ.jpeg
is a perfect choice in order to hack iPhone remotely.
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Best Approaches to Engage a Hacker for Mobile Phone Hack: Hackers for Hire
is a perfect choice in order to hack iPhone remotely. With the help of this integrity hacker, it is possible to monitor online usage in the…
Hacking Articles Tips Tricks Videos Tutorials
0*syeLdiIlH-viHx0W.gif
Hacking on Medium
8 bits only: DNS namespaces and domain resolution in action
https://cdn-images-1.medium.com/max/700/0*syeLdiIlH-viHx0W.gif
Note: I want to start writing more often, and I think that part of doing that will simply be word vomiting whatever i’m doing onto this…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
8 bits only: DNS namespaces and domain resolution in action
https://cdn-images-1.medium.com/max/700/0*syeLdiIlH-viHx0W.gif
Note: I want to start writing more often, and I think that part of doing that will simply be word vomiting whatever i’m doing onto this…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
8 bits only: DNS namespaces and domain resolution in action
Note: I want to start writing more often, and I think that part of doing that will simply be word vomiting whatever i’m doing onto this…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
What is multi-factor authentication? And it’s use.
https://cdn-images-1.medium.com/max/2000/1*cQjDY5s4aLlsbythPO4QTA.jpeg
There is a hacker attack every 39 seconds. With that continuous period, it is only a matter of time before the user names and unprotected…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
What is multi-factor authentication? And it’s use.
https://cdn-images-1.medium.com/max/2000/1*cQjDY5s4aLlsbythPO4QTA.jpeg
There is a hacker attack every 39 seconds. With that continuous period, it is only a matter of time before the user names and unprotected…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
What is multi-factor authentication? And it’s use.
There is a hacker attack every 39 seconds. With that continuous period, it is only a matter of time before the user names and unprotected…
Business logic error leads to watching a standup comedy show for free!
Hi There,Continue reading on InfoSec Write-ups »
Read more...
Hi There,Continue reading on InfoSec Write-ups »
Read more...
Business logic error leads to watching a standup comedy show for free!
https://infosecwriteups.com/business-logic-error-leads-to-watching-a-standup-comedy-show-for-free-4300aeb714dc?source=rss------bug_bounty-5
https://infosecwriteups.com/business-logic-error-leads-to-watching-a-standup-comedy-show-for-free-4300aeb714dc?source=rss------bug_bounty-5
Hi There,Continue reading on InfoSec Write-ups » (https://infosecwriteups.com/business-logic-error-leads-to-watching-a-standup-comedy-show-for-free-4300aeb714dc?source=rss------bug_bounty-5)
How I was able to Takeover accounts on Foxit.com
Hello to all Security Researchers and Bug Hunters who is reading this blog, Im Jefferson Gonzales also new in bug hunting, so without…Continue reading on Medium »
Read more...
Hello to all Security Researchers and Bug Hunters who is reading this blog, Im Jefferson Gonzales also new in bug hunting, so without…Continue reading on Medium »
Read more...
WAF-A-MoLE - A Guided Mutation-Based Fuzzer For ML-based Web Application Firewalls
http://www.kitploit.com/2021/06/waf-mole-guided-mutation-based-fuzzer.html
http://www.kitploit.com/2021/06/waf-mole-guided-mutation-based-fuzzer.html
A guided mutation-based fuzzer for ML-based Web Application Firewalls, inspired by AFL and based on the FuzzingBook (https://www.fuzzingbook.org/) by Andreas Zeller et al. Given an input SQL injection (https://www.kitploit.com/search/label/Injection) query, it tries to produce a semantic invariant query that is able to bypass the target WAF. You can use this tool for assessing the robustness of your product by letting WAF-A-MoLE explore the solution space to find dangerous "blind spots" left uncovered by the target classifier.
Architecture
Architecture
How to cite us
WAF-A-MoLE implements the methodology presented in "WAF-A-MoLE: Evading Web Application (https://www.researchgate.net/publication/340917525_WAF-A-MoLE_Evading_Web_Application_Firewalls_through_Adversarial_Machine_Learning)Firewalls (https://www.kitploit.com/search/label/Firewalls) through Adversarial (https://www.kitploit.com/search/label/Adversarial) Machine Learning". If you want to cite us, please use the following (BibTeX) reference: @inproceedings{demetrio20wafamole,
title={WAF-A-MoLE: evading web application firewalls through adversarial machine learning},
author={Demetrio, Luca and Valenza, Andrea and Costa, Gabriele and Lagorio, Giovanni},
booktitle={Proceedings of the 35th Annual ACM Symposium on Applied Computing},
pages={1745--1752},
year={2020}
}
Running WAF-A-MoLE
Prerequisites
numpy (https://numpy.org/) keras (https://keras.io/) scikit-learn (https://scikit-learn.org/stable/) joblib (https://github.com/joblib/joblib) sqlparse (https://github.com/andialbrecht/sqlparse) networkx (https://networkx.github.io/) Click (https://click.palletsprojects.com/en/7.x/)
Setup
pip install -r requirements.txt
Sample Usage
You can evaluate the robustness of your own WAF, or try WAF-A-MoLE against some example classifiers. In the first case, have a look at the Model (https://github.com/AvalZ/waf-a-mole/blob/master/wafamole/models/model.py) class. Your custom model needs to implement this class in order to be evaluated by WAF-A-MoLE. We already provide wrappers for sci-kit learn and keras classifiers that can be extend to fit your feature extraction phase (if any).
Help
wafamole --help Usage: wafamole [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
evade Launch WAF-A-MoLE against a target classifier.
wafamole evade --help Usage: wafamole evade [OPTIONS] MODEL_PATH PAYLOAD
Launch WAF-A-MoLE against a target classifier.
Options:
-T, --model-type TEXT Type of classifier to load
-t, --timeout INTEGER Timeout when evading the model
-r, --max-rounds INTEGER Maximum number of fuzzing rounds
-s, --round-size INTEGER Fuzzing step size for each round (parallel fuzzing
steps)
--threshold FLOAT Classification threshold of the target WAF [0.5]
--random-engine TEXT Use random transformations instead of evolution
engine. Set the number of trials
--output-path TEXT Location were to save the results of the random
engine. NOT USED WITH REGULAR EVOLUTION ENGINE
--help Show this message and exit.
Evading example models
We provide some pre-trained models you can have fun with, located in wafamole/models/custom/example_models (https://github.com/AvalZ/waf-a-mole/tree/master/wafamole/models/custom/example_models). The classifiers we used are listed in the table below. Classifier name Algorithm WafBrain (https://github.com/BBVA/waf-brain) Recurrent Neural Network Token-based Naive Bayes Token-based Random Forest Token-based Linear SVM Token-based Gaussian SVM SQLiGoT (https://www.sciencedirect.com/science/article/pii/S0167404816300451) - Directed Proportional Gaussian SVM SQLiGoT (https://www.sciencedirect.com/science/article/pii/S0167404816300451) - Directed Unproportional Gaussian SVM SQLiGoT (https://www.sciencedirect.com/science/article/pii/S0167404816300451) - Undirected Proportional Gaussian SVM SQLiGoT (https://www.sciencedirect.com/science/article/pii/S0167404816300451) - Undirected Unproportional Gaussian SVM
WAF-BRAIN - Recurrent Neural Newtork
Bypass the pre-trained WAF-Brain classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type waf-brain wafamole/models/custom/example_models/waf-brain.h5 "admin' OR 1=1#"
Token-based - Naive Bayes
WAF-A-MoLE implements the methodology presented in "WAF-A-MoLE: Evading Web Application (https://www.researchgate.net/publication/340917525_WAF-A-MoLE_Evading_Web_Application_Firewalls_through_Adversarial_Machine_Learning)Firewalls (https://www.kitploit.com/search/label/Firewalls) through Adversarial (https://www.kitploit.com/search/label/Adversarial) Machine Learning". If you want to cite us, please use the following (BibTeX) reference: @inproceedings{demetrio20wafamole,
title={WAF-A-MoLE: evading web application firewalls through adversarial machine learning},
author={Demetrio, Luca and Valenza, Andrea and Costa, Gabriele and Lagorio, Giovanni},
booktitle={Proceedings of the 35th Annual ACM Symposium on Applied Computing},
pages={1745--1752},
year={2020}
}
Running WAF-A-MoLE
Prerequisites
numpy (https://numpy.org/) keras (https://keras.io/) scikit-learn (https://scikit-learn.org/stable/) joblib (https://github.com/joblib/joblib) sqlparse (https://github.com/andialbrecht/sqlparse) networkx (https://networkx.github.io/) Click (https://click.palletsprojects.com/en/7.x/)
Setup
pip install -r requirements.txt
Sample Usage
You can evaluate the robustness of your own WAF, or try WAF-A-MoLE against some example classifiers. In the first case, have a look at the Model (https://github.com/AvalZ/waf-a-mole/blob/master/wafamole/models/model.py) class. Your custom model needs to implement this class in order to be evaluated by WAF-A-MoLE. We already provide wrappers for sci-kit learn and keras classifiers that can be extend to fit your feature extraction phase (if any).
Help
wafamole --help Usage: wafamole [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
evade Launch WAF-A-MoLE against a target classifier.
wafamole evade --help Usage: wafamole evade [OPTIONS] MODEL_PATH PAYLOAD
Launch WAF-A-MoLE against a target classifier.
Options:
-T, --model-type TEXT Type of classifier to load
-t, --timeout INTEGER Timeout when evading the model
-r, --max-rounds INTEGER Maximum number of fuzzing rounds
-s, --round-size INTEGER Fuzzing step size for each round (parallel fuzzing
steps)
--threshold FLOAT Classification threshold of the target WAF [0.5]
--random-engine TEXT Use random transformations instead of evolution
engine. Set the number of trials
--output-path TEXT Location were to save the results of the random
engine. NOT USED WITH REGULAR EVOLUTION ENGINE
--help Show this message and exit.
Evading example models
We provide some pre-trained models you can have fun with, located in wafamole/models/custom/example_models (https://github.com/AvalZ/waf-a-mole/tree/master/wafamole/models/custom/example_models). The classifiers we used are listed in the table below. Classifier name Algorithm WafBrain (https://github.com/BBVA/waf-brain) Recurrent Neural Network Token-based Naive Bayes Token-based Random Forest Token-based Linear SVM Token-based Gaussian SVM SQLiGoT (https://www.sciencedirect.com/science/article/pii/S0167404816300451) - Directed Proportional Gaussian SVM SQLiGoT (https://www.sciencedirect.com/science/article/pii/S0167404816300451) - Directed Unproportional Gaussian SVM SQLiGoT (https://www.sciencedirect.com/science/article/pii/S0167404816300451) - Undirected Proportional Gaussian SVM SQLiGoT (https://www.sciencedirect.com/science/article/pii/S0167404816300451) - Undirected Unproportional Gaussian SVM
WAF-BRAIN - Recurrent Neural Newtork
Bypass the pre-trained WAF-Brain classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type waf-brain wafamole/models/custom/example_models/waf-brain.h5 "admin' OR 1=1#"
Token-based - Naive Bayes
Bypass the pre-trained token-based Naive Bayes classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type token wafamole/models/custom/example_models/naive_bayes_trained.dump "admin' OR 1=1#"
Token-based - Random Forest
Bypass the pre-trained token-based Random Forest classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type token wafamole/models/custom/example_models/random_forest_trained.dump "admin' OR 1=1#"
Token-based - Linear SVM
Bypass the pre-trained token-based Linear SVM classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type token wafamole/models/custom/example_models/lin_svm_trained.dump "admin' OR 1=1#"
Token-based - Gaussian SVM
Bypass the pre-trained token-based Gaussian SVM classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type token wafamole/models/custom/example_models/gauss_svm_trained.dump "admin' OR 1=1#"
SQLiGoT
Bypass the pre-trained SQLiGOT classifier using a admin' OR 1=1# equivalent. Use DP, UP, DU, or UU for (respectivly) Directed Proportional, Undirected Proportional, Directed Unproportional and Undirected Unproportional. wafamole evade --model-type DP wafamole/models/custom/example_models/graph_directed_proportional_sqligot "admin' OR 1=1#" BEFORE LAUNCHING EVALUATION ON SQLiGoT These classifiers are more robust than the others, as the feature extraction phase produces vectors with a more complex structure, and all pre-trained classifiers have been strongly regularized. It may take hours for some variants to produce a payload that achieves evasion (https://www.kitploit.com/search/label/Evasion) (see Benchmark section).
Custom adapters
First, create a custom Model class that implements the extract_features and classify methods. class YourCustomModel(Model):
def extract_features(self, value: str):
# TODO: extract features
feature_vector = your_custom_feature_function(value)
return feature_vector
def classify(self, value):
# TODO: compute confidence
confidence = your_confidence_eval(value)
return confidence Then, create an object from the model and instantiate an engine object that uses your model class. model = YourCustomModel() #your init
engine = EvasionEngine(model)
result = engine.evaluate(payload, max_rounds, round_size, timeout, threshold)
Benchmark
We evaluated WAF-A-MoLE against all our example models. The plot below shows the time it took for WAF-A-MoLE to mutate the admin' OR 1=1# payload until it was accepted by each classifier as benign. On the x axis we have time (in seconds, logarithmic scale). On the y axis we have the confidence value, i.e., how sure a classifier is that a given payload is a SQL injection (in percentage). Notice that being "50% sure" that a payload is a SQL injection is equivalent to flipping a coin. This is the usual classification threshold: if the confidence is lower, the payload is classified as benign.
Token-based - Random Forest
Bypass the pre-trained token-based Random Forest classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type token wafamole/models/custom/example_models/random_forest_trained.dump "admin' OR 1=1#"
Token-based - Linear SVM
Bypass the pre-trained token-based Linear SVM classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type token wafamole/models/custom/example_models/lin_svm_trained.dump "admin' OR 1=1#"
Token-based - Gaussian SVM
Bypass the pre-trained token-based Gaussian SVM classifier using a admin' OR 1=1# equivalent. wafamole evade --model-type token wafamole/models/custom/example_models/gauss_svm_trained.dump "admin' OR 1=1#"
SQLiGoT
Bypass the pre-trained SQLiGOT classifier using a admin' OR 1=1# equivalent. Use DP, UP, DU, or UU for (respectivly) Directed Proportional, Undirected Proportional, Directed Unproportional and Undirected Unproportional. wafamole evade --model-type DP wafamole/models/custom/example_models/graph_directed_proportional_sqligot "admin' OR 1=1#" BEFORE LAUNCHING EVALUATION ON SQLiGoT These classifiers are more robust than the others, as the feature extraction phase produces vectors with a more complex structure, and all pre-trained classifiers have been strongly regularized. It may take hours for some variants to produce a payload that achieves evasion (https://www.kitploit.com/search/label/Evasion) (see Benchmark section).
Custom adapters
First, create a custom Model class that implements the extract_features and classify methods. class YourCustomModel(Model):
def extract_features(self, value: str):
# TODO: extract features
feature_vector = your_custom_feature_function(value)
return feature_vector
def classify(self, value):
# TODO: compute confidence
confidence = your_confidence_eval(value)
return confidence Then, create an object from the model and instantiate an engine object that uses your model class. model = YourCustomModel() #your init
engine = EvasionEngine(model)
result = engine.evaluate(payload, max_rounds, round_size, timeout, threshold)
Benchmark
We evaluated WAF-A-MoLE against all our example models. The plot below shows the time it took for WAF-A-MoLE to mutate the admin' OR 1=1# payload until it was accepted by each classifier as benign. On the x axis we have time (in seconds, logarithmic scale). On the y axis we have the confidence value, i.e., how sure a classifier is that a given payload is a SQL injection (in percentage). Notice that being "50% sure" that a payload is a SQL injection is equivalent to flipping a coin. This is the usual classification threshold: if the confidence is lower, the payload is classified as benign.
Experiments were performed on DigitalOcean Standard Droplets.
Contribute
Questions, bug reports and pull requests are welcome. In particular, if you are interested in expanding this project, we look for the following contributions: New WAF adapters New mutation operators New search algorithms
Team
Luca Demetrio (http://csec.it/people/luca_demetrio/) - CSecLab (https://csec.it/), DIBRIS, University of Genova Andrea Valenza (https://avalz.it/) - CSecLab (https://csec.it/), DIBRIS, University of Genova Gabriele Costa (https://www.imtlucca.it/it/gabriele.costa) - SysMA (http://sysma.imtlucca.it/), IMT Lucca Giovanni Lagorio (https://csec.it/people/giovanni_lagorio/) - CSecLab (https://csec.it/), DIBRIS, University of Genova
Download WAF-A-MoLE (https://github.com/AvalZ/WAF-A-MoLE)
Contribute
Questions, bug reports and pull requests are welcome. In particular, if you are interested in expanding this project, we look for the following contributions: New WAF adapters New mutation operators New search algorithms
Team
Luca Demetrio (http://csec.it/people/luca_demetrio/) - CSecLab (https://csec.it/), DIBRIS, University of Genova Andrea Valenza (https://avalz.it/) - CSecLab (https://csec.it/), DIBRIS, University of Genova Gabriele Costa (https://www.imtlucca.it/it/gabriele.costa) - SysMA (http://sysma.imtlucca.it/), IMT Lucca Giovanni Lagorio (https://csec.it/people/giovanni_lagorio/) - CSecLab (https://csec.it/), DIBRIS, University of Genova
Download WAF-A-MoLE (https://github.com/AvalZ/WAF-A-MoLE)