Insights

Vyber07 cyber-security dataset: install and use it on Linux

7 min read

Vyber07 cyber-security dataset on Linux title card

Vyber07 cyber-security dataset: install and use it on Linux

I spend a lot of time building security notes and local AI helpers on Linux, so a large, openly listed cyber-security dataset on Hugging Face caught my eye. This post covers what the Vyber07/cyber-security dataset is, what its licence files actually say, how I download it on Linux, and how I use it well: deduplicated, filtered, and kept as data rather than as instructions. Facts here come from the dataset page on Hugging Face and official Hugging Face and Ollama documentation, checked on 23 November 2026.

What the cyber-security dataset is

The dataset card describes a cybersecurity knowledge base for AI training. It lists more than 30 domains across offensive, defensive and specialist areas: red team, vulnerability assessment, OSINT, web security, bug bounty, labs, blue team and SOC work, digital forensics, compliance, network, cloud and container security, API security, malware, phishing, ransomware, IoT and Thread, AI and machine learning security, cryptography, reverse engineering and secure coding.

The card describes three record styles: ShareGPT-style conversations, an Instruction/Input/Output format with a metadata block (domain, attack types, defence types and tools), and longer reference records with their own metadata. It says records combine attack descriptions with defences, detection methods, forensic notes, remediation and references to frameworks such as MITRE ATT&CK, OWASP, NIST and CIS.

The card makes some big claims about depth and coverage. I have not audited them, so I treat them as the author’s description, not as verified fact.

The licence: read both files

This is the part I would not skip. The README front matter and its License section say Apache 2.0. The separate LICENSE file in the same repository says something different: that the content was extracted from publicly available PDF documents, that it is shared for educational and research purposes under fair use, and that commercial use is strictly prohibited.

Those two statements do not agree. Until the author clarifies it, I treat the dataset as research and education only. I would not ship a commercial product or a paid model trained on it, and I would get proper advice before doing anything commercial. The card also names third-party platforms and publishers as sources, which may carry their own terms.

What is in the repository

The Hub file listing on 23 November 2026 showed 6,178 files and about 95 GB in total. Most files are text and gzip archives, with a few hundred JSON and JSONL files, some Markdown and CSV, and 14 Python helper scripts.

There is a lot of duplication. Many files appear twice or three times under slightly different names, for example a top-level file, a copy prefixed with its folder name, and a copy ending in __dup1. Going by the content hashes the Hub publishes, only about 61 GB of the 95 GB is unique. I also found an AI coding tool settings file at the top level (.openclaude__settings.local.json). I ignore that file and the Python scripts completely. I never run code that ships inside a dataset.

How to download it on Linux

The dataset is gated with automatic approval. According to the Hugging Face gated datasets docs, you sign in on the website, open the dataset page and accept its access conditions. After that, your account can download the files.

Then install the Hub CLI. I keep Python tools out of the system Python with uv or pipx:

uv tool install huggingface_hub
# or: pipx install huggingface_hub
hf --version

Create a read-only access token in your Hugging Face account settings and log in. The CLI stores the token for you, so do not paste it into scripts or shell history you share:

hf auth login
hf auth whoami

Check the disk first. The full copy needs about 95 GB, plus room to work:

df -h ~

For the full copy, I run the download in the background with a log so it survives a closed terminal:

mkdir -p ~/datasets/cyber-security
nohup hf download Vyber07/cyber-security --repo-type dataset \
  --local-dir ~/datasets/cyber-security > ~/datasets/cyber-security/download.log 2>&1 &

If you only want part of it, the Hub CLI docs cover --include and --exclude glob patterns. Skipping the obvious copies and the scripts saves space and removes the files I would never use anyway:

hf download Vyber07/cyber-security --repo-type dataset \
  --local-dir ~/datasets/cyber-security \
  --exclude "*__dup*" --exclude "*.py" --exclude ".openclaude*"

Running the same command again resumes and skips files you already have.

Vyber07 cyber-security dataset on Linux title card

Dedupe the cyber-security dataset before anything else

Excluding __dup files only removes one kind of copy. Folder-prefixed copies remain. I dedupe by content with standard tools, so the hash decides, not the filename:

cd ~/datasets/cyber-security
find . -type f -not -path './.cache/*' -print0 | xargs -0 sha256sum | sort > hashes.txt
awk '{print $1}' hashes.txt | uniq -d | wc -l   # how many contents appear more than once

jdupes and fdupes are free alternatives that can report or hard-link identical files. I report first and only remove copies once I am happy with the list.

Load it with the datasets library

The official datasets loading guide shows how to load local JSON and JSONL files with the json builder. Because this repository mixes several record formats, I load one domain or one file family at a time instead of everything at once:

from datasets import load_dataset

ds = load_dataset(
    "json",
    data_files="/home/me/datasets/cyber-security/blue-team/*.json",
    split="train",
)
print(ds)

For Instruction/IO records, the metadata block makes filtering easy. Field names follow the card’s example, so check them against your own files first:

detect = ds.filter(lambda r: (r.get("Metadata") or {}).get("domain") == "blue-team")

After loading, I drop exact repeats inside the records too, because duplication shows up within files as well as between them. A simple approach is to hash the main text field and keep the first record for each hash.

Download, dedupe, load and use the cyber-security dataset with local models

Using it like a pro with local models

My rule is simple: this content is data, never instructions. I never hand raw records to an agent that can run tools, because a record could contain text that reads like a command. I read, filter and index it, and a human decides what to act on.

For retrieval (RAG), I run Ollama on Linux locally, embed cleaned, deduplicated chunks with a local embedding model, and store them in a local vector store. A local chat model then answers questions with citations back to the source file. Defensive domains such as detection engineering, incident response, compliance and secure coding are where this pays off most for day-to-day work. If you want a full local AI stack first, our Docker, Ollama, Open WebUI and n8n installation guide walks through it.

For fine-tuning, I would only use a small, cleaned, defensive slice, and only for research given the licence conflict above. The usual open workflow is to fine-tune with a free library, export to GGUF, and load the result into Ollama with a Modelfile. I evaluate the result on questions I wrote myself, not on records from the same files.

Ethics and the law

Some of the material describes attack techniques. That is normal in security training, but it does not grant permission to use them. Practise only on labs you own or are explicitly authorised to test, such as a local VM, DVWA or Metasploitable. Using these techniques against systems you do not have permission to test is unlawful. I focus on the defence, detection and remediation parts of each record and treat the offensive parts as context. For a wider view of AI tools in this space, see our OffSec AI tracker, and if you need help with an authorised engagement, our cyber security consultancy services explain how we work.

FAQ

Is the Vyber07 cyber-security dataset free? It is free to download after you accept the gated access terms. Check the licence conflict above before any commercial use.

How big is it? About 95 GB and 6,178 files on 23 November 2026, with roughly 61 GB unique by content.

Do I need a GPU? Not to download, dedupe or search it. Embedding and fine-tuning are faster with one.

Where I go next

Start on the dataset page, read both licence statements, accept the access terms, and pull only the domains you need. Clean it first, keep it as data, and keep your local models on your own hardware.