abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

Cyber-security-final-project/Generated_Injected_PDFs_HARMLESS

Passed the relevance filter but does not cleanly map to a stage.Fits the catalog's topic, but no single step.

task_categories:tabular-classificationtask_categories:otherlicense:cc-by-4.0size_categories:1K<n<10Kmodality:documentlibrary:datasetslibrary:mlcroissantregion:us +6 more
Lifetime downloads
3.9K
Last 30 days
1.2K
Likes
-
Size
859.8 MB

Description

Generated Injected PDFs — HARMLESS

A synthetic dataset of 1,100 PDF files built for training and evaluating structural PDF-malware detectors. It pairs benign PDFs with PDFs into which safe, non-executable "malware-shaped" objects have been injected, so a model can learn to separate the two from byte-level structure alone.

⚠️ Safety notice — read first

Nothing in this dataset is real malware. Every injected payload is built from industry-standard, non-executable… See the full description on the dataset page: https://huggingface.co/datasets/Cyber-security-final-project/Generated_Injected_PDFs_HARMLESS.

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
cc-by-4.0
Created on HFCreated
2026-07-25 · 4 months ago
Size category
1K<n<10K
ModalitiesData types
document
LibrariesTools
datasetsmlcroissant

Related datasets same stage · Miscsame step · Other

Read further

Total size
859.8 MB
Files
1,108
Formats
pdf, csv, ipynb
Head
815d088
Last updated on HFLast updated
2026-07-25

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("Cyber-security-final-project/Generated_Injected_PDFs_HARMLESS")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Cyber-security-final-project/Generated_Injected_PDFs_HARMLESS", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/Cyber-security-final-project/Generated_Injected_PDFs_HARMLESS

Files by folder from our last crawlfrom our last check

top level 2 files 64.3 KB
.gitattributes 51.7 KB file download
README.md 12.6 KB md download
Datasets/ 4 files 4.0 MB
combined_features.csv 2.0 MB csv download
injection_manifest_combined.csv 229.2 KB csv download
PDFMalware2022.csv 1.6 MB csv download
synthetic_combined_CIC.csv 137.1 KB csv download
Output_PDFs/ 1,100 files 855.5 MB
cross_site_scripting_OWASP_0004.pdf 414.4 KB pdf download
cross_site_scripting_OWASP_0007.pdf 244.5 KB pdf download
cross_site_scripting_OWASP_0024.pdf 5.8 KB pdf download
cross_site_scripting_OWASP_0028.pdf 556.0 KB pdf download
cross_site_scripting_OWASP_0047.pdf 12.5 KB pdf download
cross_site_scripting_OWASP_0118.pdf 240.6 KB pdf download
cross_site_scripting_OWASP_0122.pdf 205.9 KB pdf download
cross_site_scripting_OWASP_0136.pdf 783.9 KB pdf download
cross_site_scripting_OWASP_0159.pdf 278.4 KB pdf download
cross_site_scripting_OWASP_0233.pdf 149.4 KB pdf download
cross_site_scripting_OWASP_0254.pdf 240.2 KB pdf download
cross_site_scripting_OWASP_0267.pdf 169.1 KB pdf download
cross_site_scripting_OWASP_0284.pdf 11.8 KB pdf download
cross_site_scripting_OWASP_0296.pdf 29.4 KB pdf download
cross_site_scripting_OWASP_0317.pdf 893.7 KB pdf download
cross_site_scripting_OWASP_0324.pdf 8.1 KB pdf download
cross_site_scripting_OWASP_0328.pdf 88.3 KB pdf download
cross_site_scripting_OWASP_0330.pdf 50.6 KB pdf download
cross_site_scripting_OWASP_0343.pdf 16.3 KB pdf download
cross_site_scripting_OWASP_0362.pdf 240.8 KB pdf download
cross_site_scripting_OWASP_0408.pdf 1.9 MB pdf download
cross_site_scripting_OWASP_0416.pdf 32.4 KB pdf download
cross_site_scripting_OWASP_0446.pdf 25.5 KB pdf download
cross_site_scripting_OWASP_0469.pdf 5.1 KB pdf download
cross_site_scripting_OWASP_0547.pdf 27.9 KB pdf download
cross_site_scripting_OWASP_0550.pdf 97.3 KB pdf download
cross_site_scripting_OWASP_0556.pdf 92.7 KB pdf download
cross_site_scripting_OWASP_0625.pdf 62.2 KB pdf download
cross_site_scripting_OWASP_0636.pdf 33.6 KB pdf download
cross_site_scripting_OWASP_0666.pdf 34.6 KB pdf download
cross_site_scripting_OWASP_0683.pdf 769.5 KB pdf download
cross_site_scripting_OWASP_0726.pdf 49.0 KB pdf download
cross_site_scripting_OWASP_0730.pdf 282.9 KB pdf download
cross_site_scripting_OWASP_0780.pdf 91.9 KB pdf download
cross_site_scripting_OWASP_0800.pdf 11.0 KB pdf download
cross_site_scripting_OWASP_0837.pdf 10.1 MB pdf download
cross_site_scripting_OWASP_0846.pdf 9.8 KB pdf download
cross_site_scripting_WICAR_0013.pdf 2.6 KB pdf download
cross_site_scripting_WICAR_0025.pdf 4.0 MB pdf download
cross_site_scripting_WICAR_0030.pdf 386.8 KB pdf download
cross_site_scripting_WICAR_0049.pdf 655.5 KB pdf download
cross_site_scripting_WICAR_0079.pdf 14.6 KB pdf download
cross_site_scripting_WICAR_0095.pdf 46.5 KB pdf download
cross_site_scripting_WICAR_0098.pdf 243.4 KB pdf download
cross_site_scripting_WICAR_0107.pdf 197.3 KB pdf download
cross_site_scripting_WICAR_0141.pdf 250.2 KB pdf download
cross_site_scripting_WICAR_0143.pdf 5.9 MB pdf download
cross_site_scripting_WICAR_0148.pdf 31.9 KB pdf download
cross_site_scripting_WICAR_0161.pdf 241.8 KB pdf download
cross_site_scripting_WICAR_0180.pdf 7.4 KB pdf download
cross_site_scripting_WICAR_0182.pdf 62.2 KB pdf download
cross_site_scripting_WICAR_0197.pdf 666.1 KB pdf download
cross_site_scripting_WICAR_0224.pdf 1.0 MB pdf download
cross_site_scripting_WICAR_0235.pdf 45.8 KB pdf download
cross_site_scripting_WICAR_0300.pdf 4.6 KB pdf download
cross_site_scripting_WICAR_0311.pdf 113.5 KB pdf download
cross_site_scripting_WICAR_0355.pdf 43.1 KB pdf download
cross_site_scripting_WICAR_0398.pdf 943.4 KB pdf download
cross_site_scripting_WICAR_0432.pdf 43.2 KB pdf download
cross_site_scripting_WICAR_0433.pdf 68.3 KB pdf download
cross_site_scripting_WICAR_0457.pdf 123.5 KB pdf download
cross_site_scripting_WICAR_0479.pdf 1.1 MB pdf download
cross_site_scripting_WICAR_0480.pdf 818.8 KB pdf download
cross_site_scripting_WICAR_0526.pdf 242.8 KB pdf download
cross_site_scripting_WICAR_0528.pdf 313.0 KB pdf download
cross_site_scripting_WICAR_0555.pdf 120.4 KB pdf download
cross_site_scripting_WICAR_0562.pdf 66.6 KB pdf download
cross_site_scripting_WICAR_0660.pdf 8.1 KB pdf download
cross_site_scripting_WICAR_0672.pdf 74.7 KB pdf download
cross_site_scripting_WICAR_0706.pdf 27.3 KB pdf download
cross_site_scripting_WICAR_0759.pdf 104.2 KB pdf download
cross_site_scripting_WICAR_0761.pdf 2.1 MB pdf download
cross_site_scripting_WICAR_0769.pdf 69.5 KB pdf download
cross_site_scripting_WICAR_0788.pdf 150.2 KB pdf download
cross_site_scripting_WICAR_0804.pdf 4.4 KB pdf download
cross_site_scripting_WICAR_0824.pdf 241.7 KB pdf download
cross_site_scripting_WICAR_0838.pdf 313.0 KB pdf download
cross_site_scripting_WICAR_0871.pdf 568.6 KB pdf download
cross_site_scripting_WICAR_0883.pdf 306.3 KB pdf download
cross_site_scripting_WICAR_0897.pdf 243.0 KB pdf download
dde_template_injection_AMTSO_0008.pdf 229.6 KB pdf download
dde_template_injection_AMTSO_0021.pdf 6.0 KB pdf download
dde_template_injection_AMTSO_0033.pdf 502.6 KB pdf download
dde_template_injection_AMTSO_0041.pdf 21.0 KB pdf download
dde_template_injection_AMTSO_0051.pdf 34.0 KB pdf download
dde_template_injection_AMTSO_0070.pdf 403.0 KB pdf download
dde_template_injection_AMTSO_0091.pdf 4.5 KB pdf download
dde_template_injection_AMTSO_0114.pdf 155.7 KB pdf download
dde_template_injection_AMTSO_0140.pdf 1.5 MB pdf download
dde_template_injection_AMTSO_0147.pdf 100.8 KB pdf download
dde_template_injection_AMTSO_0205.pdf 28.9 KB pdf download
dde_template_injection_AMTSO_0209.pdf 71.3 KB pdf download
dde_template_injection_AMTSO_0214.pdf 72.7 KB pdf download
dde_template_injection_AMTSO_0229.pdf 1.8 MB pdf download
dde_template_injection_AMTSO_0230.pdf 1.5 MB pdf download
dde_template_injection_AMTSO_0251.pdf 23.6 KB pdf download
dde_template_injection_AMTSO_0287.pdf 1.9 KB pdf download
dde_template_injection_AMTSO_0339.pdf 75.1 KB pdf download
dde_template_injection_AMTSO_0434.pdf 13.4 KB pdf download
dde_template_injection_AMTSO_0449.pdf 10.9 KB pdf download
dde_template_injection_AMTSO_0456.pdf 37.9 KB pdf download
dde_template_injection_AMTSO_0458.pdf 6.1 MB pdf download
dde_template_injection_AMTSO_0462.pdf 244.5 KB pdf download
dde_template_injection_AMTSO_0464.pdf 53.8 KB pdf download
dde_template_injection_AMTSO_0508.pdf 2.9 MB pdf download
dde_template_injection_AMTSO_0524.pdf 92.1 KB pdf download
dde_template_injection_AMTSO_0568.pdf 208.1 KB pdf download
dde_template_injection_AMTSO_0602.pdf 5.3 KB pdf download
dde_template_injection_AMTSO_0624.pdf 65.0 KB pdf download
dde_template_injection_AMTSO_0707.pdf 1.5 MB pdf download
dde_template_injection_AMTSO_0714.pdf 4.5 MB pdf download
dde_template_injection_AMTSO_0734.pdf 150.3 KB pdf download
dde_template_injection_AMTSO_0762.pdf 12.3 KB pdf download
dde_template_injection_AMTSO_0776.pdf 107.7 KB pdf download
dde_template_injection_AMTSO_0806.pdf 90.6 KB pdf download
dde_template_injection_AMTSO_0808.pdf 47.3 KB pdf download
dde_template_injection_AMTSO_0815.pdf 25.7 MB pdf download
dde_template_injection_AMTSO_0819.pdf 29.8 KB pdf download
dde_template_injection_AMTSO_0845.pdf 3.5 KB pdf download
dde_template_injection_AMTSO_0852.pdf 10.1 KB pdf download
dde_template_injection_AMTSO_0869.pdf 320.0 KB pdf download
dde_template_injection_AMTSO_0896.pdf 2.5 MB pdf download
dde_template_injection_AtomicRedTeam_0019.pdf 3.8 MB pdf download
dde_template_injection_AtomicRedTeam_0022.pdf 303.0 KB pdf download
dde_template_injection_AtomicRedTeam_0092.pdf 156.7 KB pdf download
dde_template_injection_AtomicRedTeam_0102.pdf 13.1 KB pdf download
dde_template_injection_AtomicRedTeam_0111.pdf 121.3 KB pdf download
dde_template_injection_AtomicRedTeam_0133.pdf 394.2 KB pdf download
dde_template_injection_AtomicRedTeam_0184.pdf 4.0 KB pdf download
dde_template_injection_AtomicRedTeam_0244.pdf 50.6 KB pdf download
dde_template_injection_AtomicRedTeam_0275.pdf 39.6 KB pdf download
dde_template_injection_AtomicRedTeam_0278.pdf 47.8 KB pdf download
dde_template_injection_AtomicRedTeam_0326.pdf 150.7 KB pdf download
dde_template_injection_AtomicRedTeam_0345.pdf 132.8 KB pdf download
dde_template_injection_AtomicRedTeam_0349.pdf 21.9 KB pdf download
dde_template_injection_AtomicRedTeam_0359.pdf 310.0 KB pdf download
dde_template_injection_AtomicRedTeam_0360.pdf 51.4 KB pdf download
dde_template_injection_AtomicRedTeam_0404.pdf 240.3 KB pdf download
dde_template_injection_AtomicRedTeam_0465.pdf 241.5 KB pdf download
dde_template_injection_AtomicRedTeam_0500.pdf 68.8 KB pdf download
dde_template_injection_AtomicRedTeam_0511.pdf 2.1 KB pdf download
dde_template_injection_AtomicRedTeam_0576.pdf 55.4 KB pdf download
dde_template_injection_AtomicRedTeam_0588.pdf 946.1 KB pdf download
dde_template_injection_AtomicRedTeam_0595.pdf 1.2 MB pdf download
dde_template_injection_AtomicRedTeam_0626.pdf 7.3 MB pdf download
dde_template_injection_AtomicRedTeam_0651.pdf 327.4 KB pdf download
dde_template_injection_AtomicRedTeam_0733.pdf 4.3 KB pdf download
dde_template_injection_AtomicRedTeam_0747.pdf 276.7 KB pdf download
dde_template_injection_AtomicRedTeam_0763.pdf 247.7 KB pdf download
dde_template_injection_AtomicRedTeam_0764.pdf 63.8 KB pdf download
dde_template_injection_AtomicRedTeam_0881.pdf 332.4 KB pdf download
dde_template_injection_AtomicRedTeam_0892.pdf 383.2 KB pdf download
javascript_injection_AMTSO_0062.pdf 435 B pdf download
javascript_injection_AMTSO_0085.pdf 41.0 KB pdf download
javascript_injection_AMTSO_0120.pdf 243.8 KB pdf download
javascript_injection_AMTSO_0123.pdf 81.3 KB pdf download
javascript_injection_AMTSO_0134.pdf 43.0 KB pdf download
javascript_injection_AMTSO_0158.pdf 664.7 KB pdf download
javascript_injection_AMTSO_0164.pdf 827.6 KB pdf download
javascript_injection_AMTSO_0189.pdf 241.7 KB pdf download
javascript_injection_AMTSO_0217.pdf 241.0 KB pdf download
javascript_injection_AMTSO_0227.pdf 244.3 KB pdf download
javascript_injection_AMTSO_0261.pdf 8.5 KB pdf download
javascript_injection_AMTSO_0274.pdf 260.7 KB pdf download
javascript_injection_AMTSO_0294.pdf 250.3 KB pdf download
javascript_injection_AMTSO_0322.pdf 489.9 KB pdf download
javascript_injection_AMTSO_0331.pdf 327.7 KB pdf download
javascript_injection_AMTSO_0337.pdf 105.9 KB pdf download
javascript_injection_AMTSO_0357.pdf 47.3 KB pdf download
javascript_injection_AMTSO_0363.pdf 249.3 KB pdf download
javascript_injection_AMTSO_0409.pdf 18.6 KB pdf download
javascript_injection_AMTSO_0424.pdf 66.3 KB pdf download
javascript_injection_AMTSO_0471.pdf 8.5 KB pdf download
javascript_injection_AMTSO_0478.pdf 26.2 KB pdf download
javascript_injection_AMTSO_0505.pdf 1.1 MB pdf download
javascript_injection_AMTSO_0506.pdf 150.1 KB pdf download
javascript_injection_AMTSO_0510.pdf 6.4 MB pdf download
javascript_injection_AMTSO_0515.pdf 25.9 KB pdf download
javascript_injection_AMTSO_0543.pdf 46.7 KB pdf download
javascript_injection_AMTSO_0548.pdf 50.1 KB pdf download
javascript_injection_AMTSO_0609.pdf 641.9 KB pdf download
javascript_injection_AMTSO_0613.pdf 372.4 KB pdf download
javascript_injection_AMTSO_0630.pdf 947.8 KB pdf download
javascript_injection_AMTSO_0650.pdf 29.8 KB pdf download
javascript_injection_AMTSO_0695.pdf 201.2 KB pdf download
javascript_injection_AMTSO_0717.pdf 19.1 KB pdf download
javascript_injection_AMTSO_0727.pdf 12.1 KB pdf download
javascript_injection_AMTSO_0807.pdf 460.3 KB pdf download
javascript_injection_AMTSO_0855.pdf 5.0 KB pdf download
javascript_injection_AMTSO_0861.pdf 441.6 KB pdf download
javascript_injection_WICAR_0001.pdf 57.4 KB pdf download
javascript_injection_WICAR_0015.pdf 12.2 KB pdf download
javascript_injection_WICAR_0044.pdf 33.5 KB pdf download
javascript_injection_WICAR_0071.pdf 12.8 MB pdf download
javascript_injection_WICAR_0081.pdf 7.8 KB pdf download
javascript_injection_WICAR_0097.pdf 302.7 KB pdf download
javascript_injection_WICAR_0132.pdf 37.3 KB pdf download
javascript_injection_WICAR_0156.pdf 49.0 KB pdf download
javascript_injection_WICAR_0173.pdf 314.6 KB pdf download
javascript_injection_WICAR_0204.pdf 146.2 KB pdf download
900 more files in Output_PDFs on Hugging Face ↗
Python_Notebooks/ 2 files 280.5 KB
Final_project_V4_ GENERATION.ipynb 95.7 KB ipynb download
Split_Run_Dataset_Generation_900_Colab.ipynb 184.8 KB ipynb download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Generated Injected PDFs — HARMLESS

A synthetic dataset of 1,100 PDF files built for training and evaluating structural PDF-malware detectors. It pairs benign PDFs with PDFs into which safe, non-executable "malware-shaped" objects have been injected, so a model can learn to separate the two from byte-level structure alone.

⚠️ Safety notice — read first

Nothing in this dataset is real malware. Every injected payload is built from industry-standard, non-executable antivirus test markers — EICAR, AMTSO, WICAR, and RanSim-style strings — that are explicitly designed to be harmless. There is no working shellcode, no real exploit, and no executable logic. The injected objects only look like the structural shapes malicious PDFs use (e.g. a /JavaScript action, a /Launch action, an /EmbeddedFile); the actual content is a research test string. These files are safe to store, share, and open, and are intended purely for defensive security research.


1. What's in the dataset

Split Count Label source Description
Injected 900 1 (Malicious) synthetic Benign PDFs with a safe "attack-shaped" object spliced in
Clean 200 0 (Benign) clean Untouched benign source PDFs
Total 1,100

All files live under Output_PDFs/. PDFs only — no executables.

File naming

  • Injected: {injection_type}_{framework}_{index:04d}.pdf — e.g. javascript_injection_WICAR_0001.pdf. index runs 0000–0899.
  • Clean: the original source hash-style filename, e.g. TW5273JZ43VOQUCL7FRZ2N6STHYBBCQ4.pdf.

The filename encodes the ground truth: the leading token is the injection category, the second is the "framework" family the test marker imitates.


Repository contents

Path Rows × Cols What it is
Output_PDFs/ 1,100 files All PDF files — 900 injected (*_NNNN.pdf, indices 0000–0899) + 200 clean (hash-named). This is the raw data.
Datasets/synthetic_combined_CIC.csv 1,100 × 33 Features for this dataset's PDFs, in exact CIC column format (900 Malicious + 200 Benign). One row per PDF in Output_PDFs/, joinable to the manifest on Fine name.
Datasets/injection_manifest_combined.csv 1,100 × 11 Ground-truth injection metadata per file: injection_type, framework, base_payload, variant_used, insertion_strategy, obfuscation_strategy, seed, etc. Clean files carry "none" in the injection fields.
Datasets/PDFMalware2022.csv 10,026 × 33 The official CIC-Evasive-PDFMal2022 real-world feature table (5,557 Malicious / 4,468 Benign), included as the real-world reference half. Third-party data — see §7.
Datasets/combined_features.csv 11,126 × 34 The final training table: synthetic_combined_CIC.csv + PDFMalware2022.csv concatenated, plus a source column (Synthetic / Real). See §4.

The two feature tables (synthetic_combined_CIC.csv and PDFMalware2022.csv) share identical columns by design, which is what makes the combined table possible.


2. Source material

The clean PDFs are drawn from the public Kaggle corpus manisha717/dataset-of-pdf-files (~1,076 everyday PDFs). These serve two roles: 200 are kept untouched as the benign class, and the rest act as carriers into which the injection pipeline splices its safe payload objects.


3. How the injected files were made

Each injected PDF is produced by an injection pipeline (v2) with three stages: choose an attack shape, generate a safe payload variant with an LLM, then splice it in with randomized structure.

3.1 Injection types (12)

Each injected file imitates the structure of one of these attack families (the semantic marker), without any of the actual malicious behavior:

javascript_injection, cross_site_scripting, ssrf, object_action_injection, llm_prompt_injection, shellcode_embedded_exe, polyglot_file, dde_template_injection, steganographic_payload, ransomware_simulation, xfa_acroform_injection, uri_redirect_phishing.

Each type is tagged with a "framework" label (e.g. AMTSO, WICAR, AtomicRedTeam, Metasploit, Glasswall, RanSim) recorded in the manifest — this is a naming/provenance tag for the test-marker family, not an actual tool being run.

3.2 Safe payload variation (LLM)

The base payloads are the four canonical harmless test strings (EICAR / AMTSO / WICAR / RANSIM). To avoid every file carrying a byte-identical marker, an open-source LLM (Qwen2.5-7B-Instruct) is prompted to produce variations of each base string (re-encoding, casing, spacing, safe prefixes/suffixes) while keeping it non-executable. Generations are passed through a safety filter that strips anything resembling real code. A deterministic rule-based fallback (base64/hex/reverse/etc.) is used if the model is unavailable.

3.3 Randomized structure + obfuscation — the key design decision

This is the most important rationale in the dataset. A naïve injector that always uses the same object IDs, the same insertion point, and the same literal code shape produces data where a detector can hit ~100% accuracy by memorizing those fixed artifacts — and learn nothing that transfers to real malware. To prevent that, every injected file randomizes:

  • Object IDs — random distinct IDs per object, not a fixed 999/998 pattern.
  • Insertion point — before the final %%EOF, right after the first endobj, or before trailer, so the payload isn't always in the same structural location.
  • JS obfuscation strategy (for JS-bearing types) — plain string, String.fromCharCode char-code array, \xNN hex escapes, atob() base64, URL-encoded unescape(), or split-and-concatenated chunks — mirroring how real malicious PDF JavaScript is rarely left in plain readable form.
  • Cosmetic variation — PDF comment lines appear in only ~50% of files.

Every structural choice made (insertion_strategy, obfuscation_strategy) is recorded per file in the manifest, so you can audit that a trained detector isn't just keying off one specific variant.

Generation is fully reproducible: each example i uses its own random.Random(SEED + i) with SEED = 42.

3.4 Distributed generation

The 900 injected examples were generated in parallel across 9 machines using the Colab notebook Split_Run_Dataset_Generation_900_Colab.ipynb — run once per machine, each prompted for its computer number (1–9) so it produces a contiguous 100-example slice (0–99, 100–199, …, 800–899). Per-machine JSON outputs (dataset_part<N>.json, injection_manifest_part<N>.json) were then concatenated by index into the combined dataset.


4. Feature extraction (CIC-compatible)

For detector training, a byte-level structural feature extractor computes ~37 features per PDF — object/stream/xref counts, page count, encryption flag, and keyword counts such as /JS, /JavaScript, /OpenAction, /AcroForm, /EmbeddedFile, /Launch, /XFA, /RichMedia, /ObjStm. It works directly on raw bytes (regex counting rather than a strict parser) so it does not choke on the deliberately non-standard structure of the injected files.

These feature names and their value conventions are made column-for-column identical to CIC-Evasive-PDFMal2022 (Class = Malicious/Benign, text = Yes/No, etc.). This is deliberate: it lets this synthetic feature table be concatenated directly with the real CIC malware feature table.

Combining with the official CIC dataset

The real-world half is CIC-Evasive-PDFMal2022, a research dataset from the Canadian Institute for Cybersecurity (UNB) of ~10k real PDFs with 33 pre-extracted static structural features, labeled malicious/benign. It ships as a feature CSV, not raw PDFs — so it cannot be fed through the injector; it belongs one stage downstream, at detector training, as a second labeled table living in the same feature space as ours. It is obtained via the Kaggle mirror kk0105/cicpdfmal2022 and stored here as Datasets/PDFMalware2022.csv.

The merge (Datasets/combined_features.csv) is a straight row-concatenation of the two identically-columned tables, with one added source column:

source Rows Class breakdown Origin
Real 10,026 5,557 Malicious / 4,468 Benign CIC-Evasive-PDFMal2022 (PDFMalware2022.csv)
Synthetic 1,100 900 Malicious / 200 Benign This dataset (synthetic_combined_CIC.csv)
Total 11,126 6,457 Malicious / 4,668 Benign

Why keep the source tag — it turns "more training data" into a validity experiment. With it you can:

  • Train on Synthetic + a CIC train split, test on a held-out CIC split only → measures whether the detector generalizes to real malicious structure it never trained on, instead of reporting an inflated in-distribution score on the generator's own style.
  • Train on Synthetic alone, test on Real alone (and vice-versa) → directly quantifies the synthetic-to-real domain gap, the central caveat of any synthetic security dataset.

⚠️ Note on the real CIC columns: several are loosely typed (numeric columns contain stray strings like unclear / -1). Coerce/clean them before model training. Our synthetic rows are written cleanly in the same schema.


5. Intended use & limitations

Intended use. Defensive security research: training/benchmarking static PDF-malware classifiers, studying structural feature robustness, and measuring synthetic-vs-real domain gap.

Limitations.

  • Injected files carry the structure of an attack, not its behavior — they are for structural/static detection, not dynamic/sandbox analysis.
  • Because payloads are harmless test markers, this data does not capture the full byte-level diversity of real-world malicious payloads; treat synthetic-only results as optimistic and validate against real datasets like CIC-Evasive-PDFMal2022.
  • The benign carriers come from a single public corpus, so structural diversity of clean PDFs is bounded by that source.
  • Labels are generation-ground-truth (1 = injected, 0 = clean), not the verdict of any AV engine.

6. Reproducibility summary

  • Base payloads: EICAR / AMTSO / WICAR / RANSIM (harmless test markers)
  • LLM: Qwen/Qwen2.5-7B-Instruct (with rule-based fallback)
  • Seed: 42 (per-example random.Random(SEED + index))
  • Source PDFs: manisha717/dataset-of-pdf-files (Kaggle)
  • Real-world comparison set: CIC-Evasive-PDFMal2022 (downloaded separately)

7. Licensing note

The dataset card is offered under CC-BY-4.0, but parts of the data derive from third parties:

  • The carrier PDFs derive from the Kaggle corpus manisha717/dataset-of-pdf-files — review and respect its terms for redistribution or commercial use.
  • Datasets/PDFMalware2022.csv and the Real rows of Datasets/combined_features.csv are the CIC-Evasive-PDFMal2022 dataset, © Canadian Institute for Cybersecurity, UNB. Its use requires citing UNB's work and is subject to their terms — see the CIC dataset page. It is included here only to support the real-vs-synthetic evaluation described in §4.
  • The injected markers themselves (EICAR / AMTSO / WICAR / RanSim) are public, free-to-use test strings.

If redistribution of the third-party CIC feature table is a concern for your use, delete PDFMalware2022.csv and combined_features.csv and regenerate combined_features.csv locally from your own CIC download.

README historyEdit history 16 revisions16 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2026-07-25 Update README.md 815d088 12.3 KB
    Loading...
  2. 2026-07-25 Add generation notebooks (main + Colab split-run) under Python_Notebooks/ 37aaae8 12.3 KB
    Loading...
  3. 2026-07-25 Delete synthetic_combined_CIC.csv 49e6446 12.3 KB
    Loading...
  4. 2026-07-25 Delete injection_manifest_combined.csv 5b200ea 12.3 KB
    Loading...
  5. 2026-07-25 Delete combined_features.csv bc47453 12.3 KB
    Loading...
  6. 2026-07-25 Delete PDFMalware2022.csv 659f5e9 12.3 KB
    Loading...
  7. 2026-07-25 Note the Colab split-run notebook used to generate the data 05f29d0 12.3 KB
    Loading...
  8. 2026-07-25 Expand README: CIC combination details + repository CSV table fb83ad5 12.1 KB
    Loading...
  9. 2026-07-25 Add feature CSVs: synthetic (CIC format), manifest, official CIC, and combined 157c1cd 8.5 KB
    Loading...
  10. 2026-07-25 Add dataset card explaining creation process and rationale 92111b9 8.5 KB
    Loading...
  11. 2026-07-25 Upload 3 files 3b16d7b 0 B
    Loading...
  12. 2026-07-25 Add 1100 generated harmless PDFs (900 injected + 200 clean) under Output_PDFs/ 01be5bb 0 B
    Loading...
  13. 2026-07-25 Upload combined_features.csv (#2) a9374ba 0 B
    Loading...
  14. 2026-07-25 Delete combined_features.csv 55e681b 0 B
    Loading...
  15. 2026-07-25 Upload combined_features.csv (#1) 18e84f6 0 B
    Loading...
  16. 2026-07-25 initial commit bf4bb1f 0 B
    Loading...

Community discussions 2 threads · 2 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2026-07-25 PR Upload combined_features.csv mergedadded 1 💬 #2
    Loading...
  2. 2026-07-25 PR Upload combined_features.csv mergedadded 1 💬 #1
    Loading...
Download from Hugging Face

Cyber-security-final-project/Generated_Injected_PDFs_HARMLESS

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration