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.

tandevllc/hacking-tricks

published by @tandevllc

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

task_categories:text-retrievaltask_categories:text-generationtask_categories:question-answeringtask_categories:summarizationtask_categories:feature-extractionlanguage:enlicense:othersize_categories:n<1K +25 more
Lifetime downloads
910
Last 30 days
100
Likes
9
Size
15.0 MB

Description

HackTricks SlimPajama Corpus (Parquet)

A high‑quality, SlimPajama‑style corpus distilled from the HackTricks knowledge base (core wiki and, optionally, HackTricks Cloud). Each record corresponds to a cleaned Markdown article with headings preserved, code fences kept, and rich provenance metadata for reproducible research and downstream retrieval.

Token count: ~2.75M tokens.

⚠️ Ethical use only. This corpus is intended for lawful research, education, and defensive security. Do… See the full description on the dataset page: https://huggingface.co/datasets/tandevllc/hacking-tricks.

Structure 1 config · from the README front matter1 subset, from the author's description

hacking_tricks 888 rows
SplitPartRowsSize
train 888 9.7 MB
FeaturesFields
textstring metastruct
Data files
train hacking_tricks/train-*

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
other
Language
en
Created on HFCreated
2025-11-04 · 1 years ago
Size category
n<1K
ModalitiesData types
text
Formats
parquet
LibrariesTools
datasetspandasmlcroissantpolars

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
15.0 MB
Files
4
Formats
parquet, jsonl
Head
f300fb8
Last updated on HFLast updated
2025-11-05

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("tandevllc/hacking-tricks")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="tandevllc/hacking-tricks", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/tandevllc/hacking-tricks

Files by folder from our last crawlfrom our last check

top level 2 files 10.4 KB
.gitattributes 2.5 KB file download
README.md 7.9 KB md download
hacking_tricks/ 1 file 4.8 MB
train-00000-of-00001.parquet 4.8 MB parquet download
raw/ 1 file 10.2 MB
hacking-tricks.jsonl 10.2 MB jsonl download

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

HackTricks SlimPajama Corpus (Parquet)

A high‑quality, SlimPajama‑style corpus distilled from the HackTricks knowledge base (core wiki and, optionally, HackTricks Cloud). Each record corresponds to a cleaned Markdown article with headings preserved, code fences kept, and rich provenance metadata for reproducible research and downstream retrieval.

Token count: ~2.75M tokens.

⚠️ Ethical use only. This corpus is intended for lawful research, education, and defensive security. Do not use it to violate terms of service or applicable laws.


What’s in this release (Parquet)

  • Primary delivery = Parquet shards under data/hacking_tricks/.../train-*.parquet (Hub‑managed) for fast streaming with 🤗 datasets.
  • Raw JSONL retained at raw/hacking-tricks.jsonl[.gz|.zst] for transparency and reproducibility.
  • Named config: hacking_tricks (single config; no all config).

Highlights

  • Clean, article‑level records suitable for pretraining/continued‑pretraining, RAG, and eval.
  • Code blocks preserved (fenced code kept as‑is) while removing front‑matter/boilerplate.
  • Provenance: repo, commit, path, GitHub blob URL, and a best‑effort canonical site URL per article.
  • Lightweight schema: {"text": ..., "meta": {...}} with stable keys for training and retrieval.

Dataset layout

/                           # dataset root (this README)
  raw/
    hacking-tricks.jsonl    # original export (optionally .gz/.zst)
  data/
    hacking_tricks/
      default/1.0.0/train/
        train-00000-of-XXXX.parquet
        train-00001-of-XXXX.parquet
        ...

Depending on future pushes, you may also publish separate configs (hacktricks_core, hacktricks_cloud). This card documents the current single hacking_tricks config.


Schema

Each row is a UTF‑8 JSON object with the following structure (identical for Parquet features):

{
  "text": "<cleaned article markdown with code fences>",
  "meta": {
    "source": "HackTricks (git)",
    "source_repo": "https://github.com/HackTricks-wiki/hacktricks",
    "repo_branch": "master",
    "repo_commit": "<git-sha>",
    "source_path": "path/in/repo/file.md",
    "source_url_github": "https://github.com/.../blob/<sha or branch>/path.md",
    "source_url_site": "https://book.hacktricks.wiki/<page>",
    "title": "<article title>",
    "section_titles": ["H1/H2/H3…"],
    "n_chars": 12345,
    "n_words": 2345,
    "sha256": "<content-hash>",
    "crawl_ts": "2025-11-04T00:00:00+00:00",
    "lang": "en",
    "license": "CC BY-NC-SA 4.0 (per upstream repo)"
  }
}

Field notes

  • text keeps fenced code blocks and normalized headings. Front‑matter is removed.
  • source_url_site is a best‑effort canonical link to the rendered wiki page; source_url_github always points to the exact file/commit.
  • license mirrors the upstream license hint for clarity.

Quickstart (🤗 Datasets)

from datasets import load_dataset

REPO = "tandevllc/hacking-tricks"
ds = load_dataset(REPO, name="hacking_tricks", split="train")
print(len(ds), ds[0]["meta"]["title"])  # sample

Direct JSONL loading from raw/ (explicit)

from datasets import load_dataset

ds = load_dataset(
    "json",
    data_files="raw/hacking-tricks.jsonl",
    repo_id="tandevllc/hacking-tricks",
    split="train",
)

Typical filters

# Long English articles only
long_en = ds.filter(lambda r: r["meta"].get("lang") == "en" and r["meta"].get("n_words", 0) > 800)

# Articles with code (simple heuristic)
with_code = ds.filter(lambda r: "```" in (r["text"] or ""))

# Slice by section heading keyword
ad_ops = ds.filter(lambda r: any("Active Directory" in h for h in r["meta"].get("section_titles", [])))

RAG‑ready retrieval columns

  • meta.source_url_github — stable pointer to the exact file.
  • meta.source_url_site — user‑friendly URL for UI previews.
  • meta.sha256 — robust dedup key across updates.

Intended uses

  • Pretraining / Continued pretraining for security‑aware models.
  • RAG / QA over a curated set of red‑team/blue‑team encyclopedic pages.
  • Summarization & explanation of workflows, checklists, and attack surfaces.
  • Evaluation: security knowledge, long‑form reasoning on procedures, and code‑aware contexts.

This corpus is didactic/encyclopedic. It does not replace hands‑on lab data, exploit PoCs, or live telemetry.


Cleaning & quality

  • YAML front‑matter and boilerplate removed; headings normalized; excessive blank lines collapsed.
  • Code fences retained verbatim for downstream code‑aware models.
  • Article‑level minimum length applied (very short files excluded).
  • Stable dedup via meta.sha256 and exact source_path at a specific commit.

Limitations & caveats

  • Upstream drift: HackTricks evolves; future updates may add/rename pages.
  • License constraints: Non‑commercial, ShareAlike terms apply; see License below.
  • Context gaps: Some pages assume prior knowledge or external links.
  • No execution traces: Articles describe tactics; they are not runtime logs or CVE feeds.

License

  • Underlying content: © respective HackTricks authors, typically CC BY‑NC‑SA 4.0 as stated in the upstream repositories/site.
  • License: "TanDev Proprietary License — All Rights Reserved"

When you use this dataset, you must:

  1. Provide attribution to HackTricks and the specific article(s) used.
  2. Use it non‑commercially unless you have additional permission from rights holders.
  3. Distribute derivatives under the same license (ShareAlike).

If you are a rights holder and would like a page revised or removed, please open an issue on the dataset page or email the maintainer.


Citation

If this dataset helps your research, please cite it alongside HackTricks:

@dataset{tandevllc_2025_hacktricks_slimpajama,
  author = {Gupta, Smridh},
  title  = {HackTricks SlimPajama Corpus},
  year   = {2025},
  url    = {https://huggingface.co/datasets/tandevllc/hacking-tricks}
}

You should also attribute individual HackTricks pages used (e.g., in an acknowledgments section) to satisfy CC BY‑NC‑SA 4.0.


Maintainer

Smridh Gupta — [email protected]

README historyEdit history 9 revisions9 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. 2025-11-05 Update README.md f300fb8 7.7 KB
    Loading...
  2. 2025-11-05 Update README.md 2d8719e 7.8 KB
    Loading...
  3. 2025-11-04 Update README.md 8ca484d 7.8 KB
    Loading...
  4. 2025-11-04 Update README.md 7acae65 7.5 KB
    Loading...
  5. 2025-11-04 hacking_tricks: register config from raw/hacking-tricks.jsonl (888 rows) d788b3a 7.5 KB
    Loading...
  6. 2025-11-04 Update README.md fba0237 6.6 KB
    Loading...
  7. 2025-11-04 Rename hacking-tricks.jsonl to raw/hacking-tricks.jsonl c0f80f3 36 B
    Loading...
  8. 2025-11-04 Upload hacking-tricks.jsonl 6cf333d 36 B
    Loading...
  9. 2025-11-04 initial commit d033fd5 36 B
    Loading...

Community discussions 1 thread · 1 open · 1 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. 2025-11-05 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

tandevllc/hacking-tricks

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