Downloads · 30 days
0
MomoD2R/LLAMA3_Vuln_Detection_V2
LLAMA3_Vuln_Detection_V2 is a machine learning model from MomoD2R. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This model is designed to detect and provide information about cybersecurity vulnerabilities, specifically focusing on Common Vulnerabilities and Exposures (CVEs). It is built using the 🤗 transformers library and fin…
Downloads · 30 days
0
Access
Public
Updated Jun 24, 2024
Repo size
168 MB
Likes
1
Public
Click a slice to open those files.
.safetensors168 MB · 95%
From the Hugging Face model README
This model is designed to detect and provide information about cybersecurity vulnerabilities, specifically focusing on Common Vulnerabilities and Exposures (CVEs). It is built using the 🤗 transformers library and fine-tuned for this specific task.
The LLAMA3_Vuln_Detection model leverages state-of-the-art language modeling techniques to analyze and detect cybersecurity vulnerabilities. It provides detailed descriptions of CVEs and assists in identifying potential security risks in software systems.
Education and personal use cases, but mostly for project with UI's or Shells.
The model can be used directly to query information about specific CVEs, aiding cybersecurity professionals in understanding and mitigating vulnerabilities.
The model can be integrated into larger cybersecurity systems for real-time vulnerability detection and monitoring.
The model should not be used for making critical security decisions without human oversight. It is also not intended for detecting non-cybersecurity-related issues.
The model may have biases based on the data it was trained on. It might not be comprehensive in detecting all types of vulnerabilities and should be used as a supplementary tool.
Users should cross-verify the model's outputs with other sources and use it in conjunction with other security tools.
Use the code below to get started with the model.
from transformers import AutoModelForCausalLM, AutoTokenizer
from unsloth import FastLanguageModel
# Charger le tokenizer et le modèle avec Unsloth
tokenizer = AutoTokenizer.from_pretrained("MomoD2R/LLAMA3_Vuln_Detection_V2")
model, _ = FastLanguageModel.from_pretrained("MomoD2R/LLAMA3_Vuln_Detection_V2")
# Préparer l'entrée
prompt = "Do you know what is a CVE ?"
inputs = tokenizer(prompt, return_tensors="pt").to('cuda')
# Générer le texte
outputs = model.generate(inputs.input_ids, max_length=500, num_return_sequences=1)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)
The model was fine-tuned on a dataset of CVE descriptions and cybersecurity reports to enhance its understanding of vulnerabilities.
The data was preprocessed to include tokenization and normalization to ensure consistency in the input.
The training was performed over 48 hours on a Tesla T4 GPU with a final model size of approximately 7.5 GB.
The model was evaluated on a separate validation set of CVE descriptions.
The evaluation focused on the accuracy and relevance of the generated CVE descriptions.
The primary metrics used for evaluation were BLEU score and human judgment on the accuracy and relevance of the generated texts.
User >> Do you know what is a CVE ?
Assistant >> Do you know what is a CVE? If not, then you should definitely know what is a CVE and how it can affect your system. CVE stands for Common Vulnerabilities and Exposures. It is a dictionary of publicly known information about common vulnerabilities and exposures. It is maintained by the MITRE Corporation, a non-profit organization that provides technical services to the United States government. The MITRE Corporation is also responsible for the creation of the CVE system.
What is a CVE?
A CVE is a publicly known information about a vulnerability or exposure that can be exploited by an attacker. It is a dictionary of common vulnerabilities and exposures. It is maintained by the MITRE Corporation, a non-profit organization that provides technical services to the United States government.
The CVE system was created in 1999 by the MITRE Corporation. It is a system that provides a standard way of identifying and reporting vulnerabilities and exposures.
The model demonstrated strong performance in generating accurate and relevant descriptions of CVEs, making it a valuable tool for cybersecurity analysis.
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
The model is based on the LLAMA architecture, fine-tuned with Low-Rank Adaptation (LoRA) techniques to specialize in cybersecurity vulnerability detection.
Training was conducted on a Tesla T4 GPU with 16 GB of memory.