Instructions to use Canstralian/CyberAttackDetection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Canstralian/CyberAttackDetection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Canstralian/CyberAttackDetection")# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("Canstralian/CyberAttackDetection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download prompts.py from Canstralian/CyberAttackDetection: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/Canstralian/CyberAttackDetection/resolve/refs%2Fpr%2F2/prompts.py
- Command line
-
hf download hf://Canstralian/CyberAttackDetection@refs/pr/2/prompts.py
-
curl -L -o prompts.py https://huggingface.co/Canstralian/CyberAttackDetection/resolve/refs%2Fpr%2F2/prompts.py
1.03 kB
| PROMPTS = { | |
| "open_ports": ( | |
| "Analyze the following network scan report and identify open ports and their associated vulnerabilities. " | |
| "Suggest best practices to secure these ports: [Insert network scan report]." | |
| ), | |
| "outdated_software": ( | |
| "Given this list of installed software and services, identify outdated versions and known vulnerabilities. " | |
| "Provide recommendations for updates or patches to mitigate risks: [Insert software and service list]." | |
| ), | |
| "default_credentials": ( | |
| "Scan the following system configurations for any use of default credentials. Provide a list of affected services " | |
| "and recommendations for securing these credentials: [Insert system configuration details]." | |
| ), | |
| "misconfigurations": ( | |
| "Evaluate the provided system configuration for potential misconfigurations. Highlight risks and provide " | |
| "recommendations for secure setup: [Insert system configuration details]." | |
| ), | |
| # Add more prompts as necessary | |
| } | |