pqdga library
Post Quantum Domain Generation Algorithm (pqdga) package is a Research Grade package for domain generation algorithms based on classical known alorithms and new researched post-quantum algorithms.
Classes
- ArithmeticDGA
- AuthenticatedContextLabSession
- Lab materials for AuthenticatedContextPqdga.
- AuthenticatedContextPqdga
- ML-DSA-authenticated context PQDGA (binding ladder R9g / email R13).
- BamitalDGA
- Bamital DGA
- BanjoriDGA
- Banjori (MultiBanker 2) DGA configuration.
- Base32Codec
- Minimal RFC 4648 base32 (lowercase, no padding) for DNS-safe labels.
- BatchFeatures
- Batch / campaign-level features over a domain list.
- BindingAnalysis
- In-process analysis drills for the R9 binding ladder (not formal proofs).
- CallbackLabKeySink
- Forwards every key to a callback.
- ClassicalSocMetadata
- Canonical classical DGAResult.metadata keys and playbook flags.
- ConfickerDGA
- Conficker DGA Configuration
- CoreBotDGA
-
Corebot DGA — literature-perfect (baderj/corebot NR LCG +
.ddns.net). - CorebotLcg
-
Corebot Numerical Recipes LCG (baderj/corebot):
x ← (1664525·x + 1013904223) mod 2³². - CryptoLockerDGA
- CryptoLocker DGA
- DecentralizedLabSession
- Ephemeral lab materials from DecentralizedPqdga.labEstablish.
- DecentralizedPqdga
- Decentralized / content-addressed rendezvous ids (R6).
- DetectorNotebook
- Notebook / detector integration surface for SOC lab tooling.
- DGAAlgorithm
- Abstract base class for all classical DGA Algorithms
- DGAConfig
- Configuration wrapper for DGA generation
- DGAGenerator
- Main Generator Logic using PointyCastle
- DGAResult
- Result of DGA generation with metadata for analysis
- DictionaryBasedDGA
- DirCryptDGA
-
DirCrypt DGA — literature-perfect (baderj/dircrypt Park–Miller →
.com). - DnsLabelCodec
- DNS-safe label mapping from XOF bytes + light validation.
- DomainFeatures
- Per-domain lexical / structural features for SOC notebooks and detectors.
- EmotetDGA
- Emotet / Geodo-era volume + broad TLD research model (P1).
- EnvelopeLabSession
- Ephemeral lab materials from EnvelopeRendezvousPqdga.labEstablish.
- EnvelopeRendezvousPqdga
- Envelope rendezvous PQ DGA: short domain id + KEM-DEM sealed payload (R6 extra).
- EpochBucket
- Epoch / rotation bucket helpers for PQ seed material (research plumbing).
- FastFluxDGA
- Fast-flux / double-flux schedule-coupled DGA (research generic, R8).
- FluxSchedule
- Fast-flux / double-flux schedule policy metadata (R8 research).
- HardnessScorecard
-
Adversarial hardness dimensions H1–H7 (see
doc/06-adversarial-hardness.md). - HierarchicalLabSession
- Lab materials for HierarchicalPqdga.
- HierarchicalPqdga
- Hierarchical delegated-namespace PQDGA (binding ladder R9d).
- HybridAuthenticatedLabSession
- Ephemeral hybrid auth lab materials.
- HybridAuthenticatedPqdga
-
Hybrid authenticity PQDGA: ML-DSA + classical (Ed25519) via
PqForgeHybridSigner. - HybridKmacLabSession
- Lab materials for HybridKmacPqdga.
- HybridKmacPqdga
- Hybrid classical + PQ session key expanded with KMAC256 (binding ladder R9b).
- Ephemeral lab materials from HybridSharedSecretPqdga.labEstablish.
- Hybrid shared-secret PQ DGA: classical ‖ ML-KEM combiner → SHAKE labels.
- IdentityBasedLabSession
- Ephemeral lab materials from IdentityBasedPqdga.labEstablish.
- IdentityBasedPqdga
- Identity-based PQ DGA: SHAKE over embedded verification/public key namespace.
- IdnDGA
- Homoglyph / IDN / punycode DGA (research generic, R8).
- InMemoryLabKeySink
- Collects keys in memory, for a caller that wants to inspect them itself.
- Kmac256
-
NIST SP 800-185 KMAC256 built on PointyCastle
CSHAKEDigest. - Ephemeral lab materials from KmacSharedSecretPqdga.labEstablish.
- KMAC-bound shared-secret PQDGA (binding ladder R9a).
- KrakenDGA
-
Kraken DGA — literature-perfect (baderj/kraken v2, seed set
a/b). - LabHarness
-
Deeper
swissarmyknifelab harness for notebooks and detector drills. - LabKeySink
- Receives key material as a lab session is established.
- LexicalLabelCodec
- Encode XOF/KDF bytes into pronounceable or dictionary-looking DNS labels.
- Ephemeral lab materials from LexicalSharedSecretPqdga.labEstablish.
- Secret-bound PQDGA with dictionary/Markov/pronounceable label encoding (H5).
- LiteratureCorpus
- Catalog of classical family literature pins (P1/P2 re-key table).
- LiteratureNote
- One family's literature pin and re-key fidelity status.
- LockyDGA
- Locky ransomware DGA configuration (research reimplementation of v2-style).
- MarkovDGA
- Markov / n-gram language-model DGA (research generic, R8).
- MatsnuDGA
- Matsnu (Sality) DGA Configuration
- MultiChannelCodec
- Encode the same rendezvous token for DNS and alternate channels (R8).
- MultiChannelDGA
- Multi-channel rendezvous label DGA (research generic, R8).
- MultiPartyLabSession
- Lab materials for MultiPartyPqdga.
- MultiPartyPqdga
- Multi-party joint-secret PQDGA (binding ladder R9e).
- MultiRecipientLabSession
- Ephemeral lab materials from MultiRecipientPqdga.labEstablish.
- MultiRecipientPqdga
- Multi-recipient / threshold-style compartmentation PQ DGA (R6 extra).
- MurofetDGA
- Murofet (Licat) DGA
- NecursDGA
- Necurs DGA Configuration
- NestedLabelDGA
- Wildcard / subdomain nesting DGA (research generic, R8).
- NotebookConsumer
- End-to-end notebook / detector consumer of lab surfaces.
- NymaimDGA
- Nymaim DGA — literature-perfect (baderj/nymaim date PRNG).
- NymaimPrng
- Nymaim-style 4-word PRNG seeded from calendar fields (baderj/nymaim).
- OracleSeedDGA
- Seed-from-public-oracle DGA (research generic, R8).
- ParkMillerLcg
- Park–Miller / MINSTD LCG used by Ramnit and DirCrypt (baderj).
- PermutationDGA
- PostRendezvousSession
-
Post-rendezvous AEAD lab phase using
PqForgeSecureSession. - PQDGAAlgorithm
- Abstract base class for all Post Quantum DGA Algorithms
- PQDGAConfig
- PQDGAGenerator
- Post-quantum DGA generator — registry dispatch + shared SHAKE pipeline.
- PQDGAResult
- Result of post-quantum DGA generation with SOC / lab metadata.
- ProslikefanDGA
- Proslikefan DGA — literature-perfect (baderj/proslikefan string-hash).
- PushdoDGA
- Pushdo (Cutwail) DGA Configuration
- PykspaDGA
- Pykspa precursor DGA — literature-aligned (baderj/pykspa/precursor).
- QakBotDGA
- QakBot / Qbot DGA configuration.
- QuantumResistantPqdga
- Baseline PQ-hard hash expander DGA (SHAKE256 over public epoch/campaign).
- RamnitDGA
- Ramnit DGA — literature-perfect (baderj / bin.re Park–Miller LCG).
- RanbyusDGA
- Ranbyus DGA configuration (May arithmetic variant by default).
- RatchetingLabSession
- Lab materials for RatchetingPqdga.
- RatchetingPqdga
- Epoch-ratcheting secret-bound PQDGA (binding ladder R9c).
- RateLimitedPqdga
- Rate-limited adaptive PQ DGA (R6 extra).
- RovnixDGA
- Rovnix DGA Configuration
- ShakeXof
- Thin domain-expander helper over pqcrypto SHAKE XOFs.
- Ephemeral lab materials from SharedSecretPqdga.labEstablish.
- Shared-secret PQ DGA: ML-KEM shared secret bound into SHAKE expand.
- ShiotobDGA
- Shiotob / Urlzone DGA — literature-perfect (baderj/shiotob).
- SignatureAuthenticatedPqdga
- Signature-authenticated PQ DGA: ML-DSA over domain‖epoch‖campaign (R5).
- SignatureAuthLabSession
- Ephemeral lab materials from SignatureAuthenticatedPqdga.labEstablish.
- SimdaDGA
- Simda DGA
- SlhDsaCheckpointLabSession
- Ephemeral SLH-DSA lab materials from SlhDsaCheckpointPqdga.labEstablish.
- SlhDsaCheckpointPqdga
- SLH-DSA checkpoint lab family (post-R9 optional).
- SlhDsaParameterSet
- One SLH-DSA parameter set for lab IOC / algorithm config.
- SlhDsaProvider
- Primitive preference: pqforge → pqcrypto → other.
- SlhDsaSizes
- NIST FIPS 205 SLH-DSA sizes / ids used as lab IOC templates.
- SocFeatures
- SOC feature extraction helpers (R7).
- SuppoboxDGA
- Suppobox-style two-word dictionary DGA configuration.
- ThresholdLabSession
- Lab materials for ThresholdPqdga.
- ThresholdPqdga
- Threshold k-of-n PQDGA (binding ladder R9f).
- One indexed share in a lab threshold set (not a live TSS protocol).
- TimeBasedDGA
- TinbaDGA
- Tinba (Tiny Banker) DGA
- TorpigDGA
- Torpig-style time-window seed rotation research model (P2).
- VawtrakDGA
-
Vawtrak DGA — literature-perfect (baderj/vawtrak glibc LCG →
.top). - VawtrakLcg
-
Vawtrak glibc-style LCG (baderj/vawtrak):
x ← (1103515245·x + 12345) & 0x7FFFFFFF.
Enums
- PredictabilityClass
- Adversarial difficulty / SOC predictability class for generated names.
Extensions
- PredictabilityClassWire on PredictabilityClass
- Wire / metadata string values (stable for SOC notebooks).
Functions
-
asInt32(
int x) → int -
Wrap to signed int32 (ctypes
c_intassignment parity). -
krakenCrop(
int r) → int -
krakenRand(
int r) → int - Kraken-style helpers (baderj/kraken v1/v2).
-
proslikefanAbsHash(
String s) → int -
proslikefanHashString(
String s) → int - Proslikefan Java-style string hash (baderj/proslikefan) as signed 32-bit.
-
ramnitReseed(
int firstSeed, int secondSeed) → int - Fold product high/low 32-bit halves (Ramnit reseed).
Typedefs
- DGAHandler = DGAResult Function(DGAGenerator generator, DateTime date, int count, DGAAlgorithm algorithm)
- Classical family handler for registry dispatch.
- LabKey = ({String algorithm, Uint8List bytes, String name, bool secret})
- One piece of key material offered to a LabKeySink.
-
PQDGAHandler
= FutureOr<
PQDGAResult> Function(DateTime date, int count, PQDGAAlgorithm algorithm, PQDGAConfig config) - Handler signature for PQ family generators (registry dispatch).