repositories

daemon-sec-lotl

DÆMONBins: GTFOBins × LOLBAS × WADComs × LOOBins in one filterable catalog

clonegit clone https://git.daemon-sec.xyz/daemon-sec-lotl.git
taxonomy.tsTypeScript138 lines6.1 KiBraw download
// Single source of truth for DÆMONBins facet vocabulary + the hue each facet
// wears. Accents are the site's theme-aware Rosé Pine semantic tokens
// (--love/--iris/--pine/--foam/--gold/--rose), so a chip reads the same role
// in Dawn and Night. Mirrors the cheatsheet's src/lib/taxonomy.ts pattern.

export type Accent = 'love' | 'iris' | 'pine' | 'foam' | 'gold' | 'rose';
export type Platform = 'Linux' | 'Windows' | 'macOS' | 'ActiveDirectory';
export type SourceId = 'GTFOBins' | 'LOLBAS' | 'WADComs' | 'LOOBins' | 'DAEMON';

export const PLATFORMS: Platform[] = ['Linux', 'Windows', 'macOS', 'ActiveDirectory'];
export const SOURCES: SourceId[] = ['GTFOBins', 'LOLBAS', 'WADComs', 'LOOBins', 'DAEMON'];

export const CAPABILITIES = [
  'Execution', 'Reverse/Bind Shell',
  'File Download', 'File Upload', 'File Read', 'File Write', 'File Copy',
  'Library Load', 'Compile',
  'Privilege Escalation', 'UAC Bypass', 'AWL / Policy Bypass',
  'Defense Evasion', 'Credential Access',
  'Discovery', 'Enumeration', 'Persistence', 'Lateral Movement', 'Collection',
] as const;
export type Capability = (typeof CAPABILITIES)[number];

export interface SourceDef {
  id: SourceId;
  label: string;
  tag: string;
  accent: Accent;
  blurb: string;
  homepage: string;
  repo: string;
  author: string;
  license: string;
}

export const SOURCE_META: Record<SourceId, SourceDef> = {
  LOOBins: {
    id: 'LOOBins', label: 'LOOBins', tag: 'ORCHARD', accent: 'rose',
    blurb: 'Native macOS binaries, with upstream use cases, paths, detection references and explicit compatibility notes.',
    homepage: 'https://loobins.io/', repo: 'https://github.com/infosecB/LOOBins',
    author: 'Brendan Chamberlain (@infosecB) & contributors', license: 'GPL-3.0',
  },
  GTFOBins: {
    id: 'GTFOBins', label: 'GTFOBins', tag: 'GTFO', accent: 'foam',
    blurb: 'Unix binaries abused to break out of restricted shells, read/write files, and escalate via SUID, sudo, and capabilities.',
    homepage: 'https://gtfobins.github.io/', repo: 'https://github.com/GTFOBins/GTFOBins.github.io',
    author: 'Emilio Pinna (@norbemi) & contributors', license: 'GPL-3.0',
  },
  LOLBAS: {
    id: 'LOLBAS', label: 'LOLBAS', tag: 'LOL', accent: 'iris',
    blurb: 'Windows living-off-the-land binaries, scripts, and libraries — signed and built-in tools for execution, download, and AWL bypass.',
    homepage: 'https://lolbas-project.github.io/', repo: 'https://github.com/LOLBAS-Project/LOLBAS',
    author: 'Oddvar Moe (@oddvarmoe) & contributors', license: 'GPL-3.0',
  },
  WADComs: {
    id: 'WADComs', label: 'WADComs', tag: 'WAD', accent: 'gold',
    blurb: 'Offensive tools and commands for Windows and Active Directory, indexed by what access you already hold.',
    homepage: 'https://wadcoms.github.io/', repo: 'https://github.com/WADComs/WADComs.github.io',
    author: 'John Woodman (@JohnWoodman15) & contributors', license: 'GPL-3.0',
  },
  DAEMON: {
    id: 'DAEMON', label: 'DÆMON', tag: 'DMN', accent: 'love',
    blurb: 'Authored command references for Windows, Active Directory, containers and cloud administration. Verification and prerequisites are recorded per entry.',
    homepage: 'https://daemon-sec.xyz', repo: 'https://github.com/DAEMON-404/daemon-sec-lotl',
    author: 'DÆMON (DAEMON-404)', license: 'GPL-3.0',
  },
};

export const PLATFORM_META: Record<Platform, { accent: Accent; short: string }> = {
  Linux: { accent: 'foam', short: 'NIX' },
  Windows: { accent: 'iris', short: 'WIN' },
  macOS: { accent: 'rose', short: 'MAC' },
  ActiveDirectory: { accent: 'gold', short: 'AD' },
};

export const CAPABILITY_META: Record<string, { accent: Accent }> = {
  Execution: { accent: 'love' },
  'Reverse/Bind Shell': { accent: 'love' },
  'File Download': { accent: 'foam' },
  'File Upload': { accent: 'foam' },
  'File Read': { accent: 'foam' },
  'File Write': { accent: 'foam' },
  'File Copy': { accent: 'foam' },
  'Library Load': { accent: 'foam' },
  Compile: { accent: 'foam' },
  'Privilege Escalation': { accent: 'gold' },
  'UAC Bypass': { accent: 'gold' },
  'AWL / Policy Bypass': { accent: 'iris' },
  'Defense Evasion': { accent: 'iris' },
  'Credential Access': { accent: 'rose' },
  Discovery: { accent: 'pine' },
  Enumeration: { accent: 'pine' },
  Persistence: { accent: 'pine' },
  'Lateral Movement': { accent: 'pine' },
  Collection: { accent: 'pine' },
};

/**
 * The hue each execution context wears wherever contexts are drawn as marks
 * (the breakdown's split bar). Fixed per context, so a filter that removes one
 * never repaints the others. `system` is the neutral: it is the rarest value
 * and there are seven contexts for six accents.
 */
export const CONTEXT_META: Record<string, { accent: Accent | 'muted' }> = {
  unprivileged: { accent: 'foam' },
  sudo: { accent: 'gold' },
  suid: { accent: 'love' },
  capabilities: { accent: 'iris' },
  user: { accent: 'pine' },
  admin: { accent: 'rose' },
  system: { accent: 'muted' },
};

export const AVAILABILITY_META: Record<string, { accent: Accent }> = {
  'Built in': { accent: 'foam' },
  'Installed tool': { accent: 'iris' },
  'Check installation': { accent: 'gold' },
};

export function accentOf(kind: 'platform' | 'capability' | 'source', value: string): Accent {
  if (kind === 'platform') return PLATFORM_META[value as Platform]?.accent ?? 'foam';
  if (kind === 'capability') return CAPABILITY_META[value]?.accent ?? 'foam';
  return SOURCE_META[value as SourceId]?.accent ?? 'foam';
}

/** Slug a source id for the /<source>/<tool> route prefix. */
export const SOURCE_ROUTE: Record<SourceId, string> = {
  GTFOBins: 'gtfobins', LOLBAS: 'lolbas', WADComs: 'wadcoms', LOOBins: 'loobins', DAEMON: 'daemon',
};

// A tool's route deck is decided by its toolId NAMESPACE (the prefix before
// ':'), never by a per-technique source — a wadcoms: family can hold both
// upstream and daemon-authored techniques, and all of them must resolve to the
// same page. The 134 daemon-authored WADComs additions live in the wadcoms:
// namespace (they extend that collection); the daemon: namespace is the
// standalone modernization backlog.
export const NS_SOURCE: Record<string, SourceId> = {
  gtfo: 'GTFOBins', lolbas: 'LOLBAS', wadcoms: 'WADComs', loobins: 'LOOBins', daemon: 'DAEMON',
};