Update README.md
Browse files
README.md
CHANGED
|
@@ -1 +1,48 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: unknown
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
<!-- This model is obtained by finetuning Pre-Trained RoBERTa on dataset containing several sets of malicious prompts.
|
| 8 |
+
Using this model, we can classify malicious prompts that can lead towards creation of phishing websites and phishing emails. -->
|
| 9 |
+
This model is obtained by finetuning a Pre-Trained RoBERTa using a dataset encompassing multiple sets of malicious prompts, as detailed in the corresponding arXiv paper.
|
| 10 |
+
Using this model, we can classify malicious prompts that can lead towards creation of phishing websites and phishing emails.
|
| 11 |
+
|
| 12 |
+
- **Paper:**
|
| 13 |
+
|
| 14 |
+
## Dataset Details
|
| 15 |
+
|
| 16 |
+
The dataset utilized for this model is constructed from malicious prompts generated by GPT-4.
|
| 17 |
+
We have decided not to make it publicly available. However, it will be provided upon request.
|
| 18 |
+
|
| 19 |
+
## Training Details
|
| 20 |
+
|
| 21 |
+
The model was trained using RobertaForSequenceClassification.from_pretrained.
|
| 22 |
+
In this process, both the model and tokenizer pertinent to the RoBERTa-base were employed.
|
| 23 |
+
We trained this model for 10 epochs, setting a learning rate to 2e-5, and used AdamW Optimizer.
|
| 24 |
+
|
| 25 |
+
## Inference
|
| 26 |
+
|
| 27 |
+
There are multiple ways to use this model. The simplest way to use is with pipeline "text-classification"
|
| 28 |
+
|
| 29 |
+
```python
|
| 30 |
+
from transformers import pipeline
|
| 31 |
+
classifier = pipeline(task="text-classification", model="phishbot/Isitphish", top_k=None)
|
| 32 |
+
prompt = ["Your Sample Sentence or Prompt...."]
|
| 33 |
+
model_outputs = classifier(prompt)
|
| 34 |
+
print(model_outputs[0])
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
### Results
|
| 38 |
+
|
| 39 |
+
Achieved an accuracy of 96% with an F1-score of 0.96, on test sets distribution, explained in the paper.
|
| 40 |
+
|
| 41 |
+
## Citation
|
| 42 |
+
|
| 43 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 44 |
+
|
| 45 |
+
**BibTeX:**
|
| 46 |
+
|
| 47 |
+
[More Information Needed]
|
| 48 |
+
|