SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.11191 · EMNLP · 2025

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

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

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2502.11191.json · badge: /api/ran/2502.11191.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
huggingface/cosmopedia canonical (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
FunctionStatusWhere it lives
build_prompt Ran
ran on a synthesized input
huggingface/cosmopedia/prompts/auto_math_text/build_science_prompts.py
code served (permissive licence) · get_code("35dcf93579591fec")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'x': {
        'text': 'The concept of photosynthesis is fundamental to understanding how plants convert light energy into chemical energy. This process occurs primarily in the chloroplasts of plant cells, where specialized pigments such as chlorophyll absorb photons from sunlight. The absorbed light energy excites electrons within the chlorophyll molecules to higher energy states, initiating a cascade of electron transfers through the thylakoid membrane. Water molecules are split in the light-dependent reactions, releasing molecular oxygen as a byproduct and generating ATP and NADPH, which serve as energy carriers for the subsequent light-independent reactions, commonly known as the Calvin cycle. In the Calvin cycle, carbon dioxide is fixed into organic molecules through a series of enzyme-catalyzed reactions. The regeneration of ribulose-1,5-bisphosphate allows the cycle to continue, enabling the synthesis of glucose and other carbohydrates that form the foundation of the food chain. Understanding photosynthesis is crucial for appreciating plant biology and the broader role of photosynthetic organisms in maintaining atmospheric oxygen levels and supporting life on Earth. This process demonstrates the elegant efficiency of biological systems in harnessing energy from the environment.'
    },
    'style': 'college'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_prompts Ran
ran on a synthesized input
huggingface/cosmopedia/prompts/openstax/build_openstax_prompts.py
code served (permissive licence) · get_code("18361e25f3aedbaa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random
import numpy as np

# Build a minimal parsed_book structure that matches what build_prompts expects
parsed_book = {
    'title': 'Introduction to Physics',
    'chapters': [
        {
            'title': 'Chapter 1: Mechanics',
            'sub_chapters': [
                {
                    'title': 'Subsection 1.1: Motion',
                    'sections': [
                        {
                            'title': 'Unit 1.1.1: Distance and Displacement',
                            'content': 'Distance is the total path traveled by an object, regardless of direction. Displacement is the shortest straight-line distance from the initial to the final position. For example, if you walk 3 meters east and then 4 meters west, your total distance is 7 meters, but your displacement is 1 meter west.'
                        },
                        {
                            'title': 'Unit 1.1.2: Speed and Velocity',
                            'content': 'Speed is a scalar quantity that measures how fast an object is moving. Velocity is a vector quantity that includes both speed and direction. For instance, a car traveling at 60 km/h eastward has a velocity of 60 km/h east, while its speed is simply 60 km/h.'
                        },
                        {
                            'title': 'Unit 1.1.3: Acceleration',
                            'content': 'Acceleration is the rate of change of velocity over time. An object can accelerate by changing its speed, direction, or both. The formula for acceleration is a = (v_f - v_i) / t, where v_f is final velocity, v_i is initial velocity, and t is time.'
                        }
                    ]
                },
                {
                    'title': 'Subsection 1.2: Forces',
                    'sections': [
                        {
                            'title': 'Unit 1.2.1: Newton\'s Laws',
                            'content': 'Newton\'s first law states that an object at rest stays at rest and an object in motion stays in motion unless acted upon by a force. Newton\'s second law states that F = ma. Newton\'s third law states that for every action, there is an equal and opposite reaction.'
                        }
                    ]
                }
            ]
        }
    ]
}

ARGS = {
    'parsed_book': parsed_book,
    'style': 'college students',
    'include_reference': True,
    'refrence_size': 500
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_ngrams Ran
ran on a synthesized input
huggingface/cosmopedia/decontamination/decontaminate.py
code served (permissive licence) · get_code("338800ee91f30c2d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function get_ngrams takes:
# 1. tokens: a sequence of items (list, tuple, or other sequence)
# 2. n: an integer specifying the n-gram size

# Analyzing the function body:
# - tokens[i:] is sliced, so tokens must support slicing
# - zip(*[...]) is used, so tokens should be a sequence
# - The result is a set of tuples
# - n is used as range(n), so it's an integer

# Create sample tokens - a simple list of strings
tokens = ["hello", "world", "how", "are", "you"]

# Create n parameter - an integer for n-gram size
n = 2

ARGS = {
    "tokens": tokens,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_book Ran
ran on a synthesized input
huggingface/cosmopedia/prompts/openstax/build_openstax_prompts.py
code served (permissive licence) · get_code("ee682bc74f886601")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Construct a valid book structure for parse_book
book = {
    'book_title': 'Introduction to Machine Learning',
    'chapters': [
        {
            'title': 'Preface',
            'abstract': 'This is the preface',
            'sections': [
                {
                    'title': 'Welcome',
                    'paragraph': 'Welcome to this book',
                    'abstract': 'Welcome section'
                }
            ],
            'chapters': []
        },
        {
            'title': 'Chapter 1: Fundamentals',
            'abstract': 'Basic concepts of ML',
            'sections': [
                {
                    'title': 'Section 1.1: Definitions',
                    'paragraph': 'Machine learning is...',
                    'abstract': 'Key definitions'
                },
                {
                    'title': 'Section 1.2: History',
                    'paragraph': 'ML started in...',
                    'abstract': 'Historical context'
                }
            ],
            'chapters': [
                {
                    'title': 'Chapter 1.1: Linear Models',
                    'abstract': 'Linear regression and classification',
                    'sections': [
                        {
                            'title': 'Subsection: Regression',
                            'paragraph': 'Linear regression content',
                            'abstract': 'Regression methods'
                        }
                    ],
                    'chapters': []
                }
            ]
        },
        {
            'title': 'Chapter 2: Advanced Topics',
            'abstract': 'Complex ML techniques',
            'sections': [
                {
                    'title': 'Section 2.1: Neural Networks',
                    'paragraph': 'Deep learning basics...',
                    'abstract': 'Neural network fundamentals'
                }
            ],
            'chapters': []
        }
    ]
}

ARGS = {
    'book': book
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_chapter Ran
ran on a synthesized input
huggingface/cosmopedia/prompts/openstax/build_openstax_prompts.py
code served (permissive licence) · get_code("45525be000bb37c7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Setup code for parse_chapter function

ARGS = {
    'chapter': {
        'title': 'Introduction to Machine Learning',
        'abstract': 'A comprehensive introduction to ML concepts',
        'sections': [
            {
                'title': 'Supervised Learning',
                'paragraph': 'Supervised learning uses labeled data...',
                'abstract': 'Overview of supervised methods'
            },
            {
                'title': 'Unsupervised Learning',
                'paragraph': 'Unsupervised learning finds patterns...',
                'abstract': 'Overview of unsupervised methods'
            }
        ],
        'chapters': [
            {
                'title': 'Classification',
                'abstract': 'Binary and multi-class classification',
                'sections': [
                    {
                        'title': 'Logistic Regression',
                        'paragraph': 'A linear classifier for binary problems...',
                        'abstract': 'Introduction to logistic regression'
                    }
                ],
                'chapters': []
            },
            {
                'title': 'Regression',
                'abstract': 'Predicting continuous values',
                'sections': [
                    {
                        'title': 'Linear Regression',
                        'paragraph': 'The simplest regression model...',
                        'abstract': 'Basic linear regression'
                    }
                ],
                'chapters': []
            }
        ]
    },
    'level': 0,
    'trail': []
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
retrieve_ngrams_batch Ran
ran on a synthesized input
huggingface/cosmopedia/decontamination/decontaminate.py
code served (permissive licence) · get_code("50b62797d4d1f4bf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
import re
import unicodedata

torch.manual_seed(0)

# Helper function to create test data
def tokenize(text):
    """Normalize text by removing diacritics and tokenize."""
    text = ''.join((c for c in unicodedata.normalize('NFD', text) if unicodedata.category(c) != 'Mn'))
    tokens = re.findall('\\w+', text.lower())
    return tokens

def get_ngrams(tokens, n):
    """Generate n-grams from tokens."""
    return set(zip(*[tokens[i:] for i in range(n)]))

# Create sample batch
batch = {
    'completion': [
        'The quick brown fox jumps over the lazy dog',
        'Hello world this is a test string for tokenization'
    ]
}

# Create eval_ngrams - a dictionary mapping n-grams to indices
eval_ngrams = {}
sample_texts = [
    'The quick brown fox',
    'Hello world this is',
    'Test string for evaluation'
]
for idx, text in enumerate(sample_texts):
    tokens = tokenize(text)
    ngrams = get_ngrams(tokens, 2)
    for ngram in ngrams:
        eval_ngrams[ngram] = idx

# Create eval_datasets - list of dataset names
eval_datasets = ['dataset_a', 'dataset_b', 'dataset_c']

# Create eval_texts - list of reference texts
eval_texts = [
    'The quick brown fox jumps',
    'Hello world this is a test',
    'Test string for evaluation purposes'
]

# Set ngram_len
ngram_len = 2

ARGS = {
    'batch': batch,
    'eval_ngrams': eval_ngrams,
    'eval_datasets': eval_datasets,
    'eval_texts': eval_texts,
    'ngram_len': ngram_len
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tokenize Ran
ran on a synthesized input
huggingface/cosmopedia/decontamination/decontaminate.py
code served (permissive licence) · get_code("9b49243ad0df4e21")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
import unicodedata

def tokenize(text):
    """Normalize text by removing diacritics and tokenize."""
    text = ''.join((c for c in unicodedata.normalize('NFD', text) if unicodedata.category(c) != 'Mn'))
    tokens = re.findall('\\w+', text.lower())
    return tokens

# Construct valid arguments for the tokenize function
ARGS = {
    'text': 'Héllo Wörld! Thïs îs á tëst with dîacrítícs and pünctuation.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
insert_batch Not yet run
unverified (harvested, no recorded run)
huggingface/cosmopedia/fulltext_search/index_docs.py
code served (permissive licence) · get_code("a95da4620031f06d")
How it ran

no invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
huggingface/cosmopedia/classification/run_edu_bert.py
code served (permissive licence) · get_code("6d7f9ea09392e2a8")
How it ran

no invocation recorded.

run_query Not yet run
unverified (harvested, no recorded run)
huggingface/cosmopedia/fulltext_search/search_sharded.py
code served (permissive licence) · get_code("a3ee8f875fe19065")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 opensource datasets, with a particular lack of highquality 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 cybersecurityspecific self-reflection data. Extensive ablation studies demonstrate their effectiveness on public cybersecurity benchmarks. In particular, continued pre-training on our dataset yields a 15.9% improvement in the aggregate score, while reasoning distillation leads to a 15.8% 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. 1 * Primary Contributor. † Equal Contribution.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2502.11191")
get_code_for_paper("2502.11191")
have("2502.11191")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2502.11191.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2502.11191.svg)](https://syntology.ai/paper/2502.11191)

Connect an agent — have() is free.