Update README.md
Browse files
README.md
CHANGED
|
@@ -1,19 +1,17 @@
|
|
| 1 |
-
|
| 2 |
## Model Details
|
| 3 |
|
| 4 |
### Model Description
|
| 5 |
|
| 6 |
-
`JeloH/
|
| 7 |
|
| 8 |
- `BENIGN`
|
| 9 |
- `MALWARE`
|
| 10 |
|
| 11 |
-
|
| 12 |
## Uses
|
| 13 |
|
| 14 |
### Direct Use
|
| 15 |
|
| 16 |
-
This model is intended for binary classification of source code snippets, program text,
|
| 17 |
|
| 18 |
- `MALWARE`
|
| 19 |
- `BENIGN`
|
|
@@ -27,15 +25,15 @@ Potential direct uses include:
|
|
| 27 |
|
| 28 |
### Downstream Use [optional]
|
| 29 |
|
| 30 |
-
This adapter can be integrated into
|
| 31 |
|
| 32 |
-
- static
|
| 33 |
- malware analysis platforms
|
| 34 |
- secure code ingestion systems
|
| 35 |
- dataset annotation pipelines
|
| 36 |
- human-in-the-loop review systems
|
| 37 |
|
| 38 |
-
It may also be used as a feature extractor or scoring component within a
|
| 39 |
|
| 40 |
### Out-of-Scope Use
|
| 41 |
|
|
@@ -47,7 +45,7 @@ This model is not intended to be used as:
|
|
| 47 |
- a general-purpose natural language classifier
|
| 48 |
- a legal or compliance decision tool
|
| 49 |
|
| 50 |
-
The model may perform poorly on inputs far from its training distribution, including heavily obfuscated code, incomplete snippets, unsupported programming languages, or non-code text.
|
| 51 |
|
| 52 |
## Bias, Risks, and Limitations
|
| 53 |
|
|
@@ -55,24 +53,24 @@ This model inherits limitations from both the base model and the fine-tuning dat
|
|
| 55 |
|
| 56 |
Known risks and limitations include:
|
| 57 |
|
| 58 |
-
- **Dataset bias:** performance may depend heavily on the composition of the training
|
| 59 |
-
- **Language
|
| 60 |
- **False positives:** benign code may be flagged as malware
|
| 61 |
- **False negatives:** malicious code may be classified as benign
|
| 62 |
-
- **Input truncation:** long samples may be truncated,
|
| 63 |
-
- **Incomplete context:** isolated code snippets may not
|
| 64 |
- **Adapter dependency:** the adapter must be used with the correct base model
|
| 65 |
|
| 66 |
### Recommendations
|
| 67 |
|
| 68 |
Users should:
|
| 69 |
|
| 70 |
-
- treat outputs as model predictions
|
| 71 |
- review high-risk predictions with human analysts
|
| 72 |
- validate performance on their own datasets before deployment
|
| 73 |
- monitor false positive and false negative rates
|
| 74 |
- combine this model with other static and dynamic analysis techniques
|
| 75 |
-
-
|
| 76 |
|
| 77 |
## How to Get Started with the Model
|
| 78 |
|
|
@@ -84,7 +82,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
| 84 |
from peft import PeftModel
|
| 85 |
|
| 86 |
BASE_MODEL = "JeloH/Full_pre-trained_src_binary_ass_nld_qwen7"
|
| 87 |
-
ADAPTER_PATH = "JeloH/
|
| 88 |
|
| 89 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 90 |
|
|
|
|
|
|
|
| 1 |
## Model Details
|
| 2 |
|
| 3 |
### Model Description
|
| 4 |
|
| 5 |
+
`JeloH/xGenQ-sec-cls` is a PEFT adapter for binary sequence classification built on top of the base model `JeloH/Full_pre-trained_src_binary_ass_nld_qwen7`. It is designed to classify source code or code-like input into one of two classes:
|
| 6 |
|
| 7 |
- `BENIGN`
|
| 8 |
- `MALWARE`
|
| 9 |
|
|
|
|
| 10 |
## Uses
|
| 11 |
|
| 12 |
### Direct Use
|
| 13 |
|
| 14 |
+
This model is intended for binary classification of source code snippets, program text, and related code artifacts. A primary use case is malware detection, where the model predicts whether an input sample is more likely to be:
|
| 15 |
|
| 16 |
- `MALWARE`
|
| 17 |
- `BENIGN`
|
|
|
|
| 25 |
|
| 26 |
### Downstream Use [optional]
|
| 27 |
|
| 28 |
+
This adapter can be integrated into broader security workflows, such as:
|
| 29 |
|
| 30 |
+
- static analysis pipelines
|
| 31 |
- malware analysis platforms
|
| 32 |
- secure code ingestion systems
|
| 33 |
- dataset annotation pipelines
|
| 34 |
- human-in-the-loop review systems
|
| 35 |
|
| 36 |
+
It may also be used as a feature extractor or scoring component within a larger detection stack.
|
| 37 |
|
| 38 |
### Out-of-Scope Use
|
| 39 |
|
|
|
|
| 45 |
- a general-purpose natural language classifier
|
| 46 |
- a legal or compliance decision tool
|
| 47 |
|
| 48 |
+
The model may perform poorly on inputs that are far from its training distribution, including heavily obfuscated code, incomplete snippets, unsupported programming languages, or non-code text.
|
| 49 |
|
| 50 |
## Bias, Risks, and Limitations
|
| 51 |
|
|
|
|
| 53 |
|
| 54 |
Known risks and limitations include:
|
| 55 |
|
| 56 |
+
- **Dataset bias:** performance may depend heavily on the composition of the training data
|
| 57 |
+
- **Language and domain bias:** results may vary across programming languages, coding styles, compiler artifacts, or malware families
|
| 58 |
- **False positives:** benign code may be flagged as malware
|
| 59 |
- **False negatives:** malicious code may be classified as benign
|
| 60 |
+
- **Input truncation:** long samples may be truncated, potentially removing important signals
|
| 61 |
+
- **Incomplete context:** isolated code snippets may not provide enough information for reliable classification
|
| 62 |
- **Adapter dependency:** the adapter must be used with the correct base model
|
| 63 |
|
| 64 |
### Recommendations
|
| 65 |
|
| 66 |
Users should:
|
| 67 |
|
| 68 |
+
- treat outputs as model predictions rather than ground truth
|
| 69 |
- review high-risk predictions with human analysts
|
| 70 |
- validate performance on their own datasets before deployment
|
| 71 |
- monitor false positive and false negative rates
|
| 72 |
- combine this model with other static and dynamic analysis techniques
|
| 73 |
+
- communicate model uncertainty clearly in downstream systems
|
| 74 |
|
| 75 |
## How to Get Started with the Model
|
| 76 |
|
|
|
|
| 82 |
from peft import PeftModel
|
| 83 |
|
| 84 |
BASE_MODEL = "JeloH/Full_pre-trained_src_binary_ass_nld_qwen7"
|
| 85 |
+
ADAPTER_PATH = "JeloH/xGenQ-sec-cls"
|
| 86 |
|
| 87 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 88 |
|