Papers › Primus: A Pioneering Collection of Open-Source Datasets for Cybersecurity LLM Training

Primus: A Pioneering Collection of Open-Source Datasets for Cybersecurity LLM Training

16 Feb 2025arXiv:2502.11191archive 2025-07-28

Yao-Ching Yu, Tsun-Han Chiang, Cheng-Wei Tsai, Chien-Ming Huang, Wen-Kwang Tsao

Large Language Models (LLMs) have shown remarkable advancements in specialized fields such as finance, law, and medicine. However, in cybersecurity, we have noticed a lack of open-source datasets, with a particular lack of high-quality cybersecurity pretraining corpora, even though much research indicates that LLMs acquire their knowledge during pretraining. To address this, we present a comprehensive suite of datasets covering all major training stages, including pretraining, instruction fine-tuning, and reasoning distillation with cybersecurity-specific self-reflection data. Extensive ablation studies demonstrate their effectiveness on public cybersecurity benchmarks. In particular, continual pre-training on our dataset yields a 15.88% improvement in the aggregate score, while reasoning distillation leads to a 10% gain in security certification (CISSP). We will release all datasets and trained cybersecurity LLMs under the ODC-BY and MIT licenses to encourage further research in the community. For access to all datasets and model weights, please refer to https://huggingface.co/collections/trendmicro-ailab/primus-67b1fd27052b802b4af9d243.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2502.11191")

Code

Syntology Ran 0 of 10 code samples harvested from 1 repository linked to this paper; 10 have no recorded run.

By repository: found in paper text by Syntology: 10 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

huggingface/cosmopedia found in paper text by SyntologyApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 0 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from huggingface/cosmopedia. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_prompt huggingface/cosmopedia/prompts/auto_math_text/build_science_prompts.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 35dcf93579591fec · report
build_prompts huggingface/cosmopedia/prompts/openstax/build_openstax_prompts.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 18361e25f3aedbaa · report
get_ngrams huggingface/cosmopedia/decontamination/decontaminate.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 338800ee91f30c2d · report
insert_batch huggingface/cosmopedia/fulltext_search/index_docs.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a95da4620031f06d · report
main huggingface/cosmopedia/classification/run_edu_bert.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6d7f9ea09392e2a8 · report
parse_book huggingface/cosmopedia/prompts/openstax/build_openstax_prompts.py found in paper text by Syntology unverified Apache-2.0 (permissive) · ee682bc74f886601 · report
parse_chapter huggingface/cosmopedia/prompts/openstax/build_openstax_prompts.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 45525be000bb37c7 · report
retrieve_ngrams_batch huggingface/cosmopedia/decontamination/decontaminate.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 50b62797d4d1f4bf · report
run_query huggingface/cosmopedia/fulltext_search/search_sharded.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a3ee8f875fe19065 · report
tokenize huggingface/cosmopedia/decontamination/decontaminate.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9b49243ad0df4e21 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections