{
  "id": 3010103,
  "title": "Your executable is a SQLite database",
  "url": "https://urgent.news/2026/08/24/your-executable-is-a-sqlite-database-3010103",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-24T11:38:15.000Z",
  "source": {
    "name": "Simon Willison",
    "slug": "simon-willison",
    "url": "https://simonwillison.net/2026/Aug/24/your-executable-is-a-sqlite-database/"
  },
  "original_language": "en",
  "account": "Farid Zakaria explains a Linux technique for using a SQLite database file as an executable binary. The method involves setting the SQLite file format's 4-byte application ID (located 68 bytes into the file) to SELF, which stands for Structured Executable & Linkable Format. This application ID is then used to arrange the various components of the ELF executable format into different SQLite tables.\n\nThe self-exec interpreter, written in C code, can extract and execute the necessary pieces of the executable from these tables. Additionally, a Linux mechanism called binfmt_misc can be employed to teach the kernel to execute any file matching this binary pattern upon encounter.\n\nThe process can be executed using NixOS, although registration can be done manually without NixOS. This technique was shared by Simon Willison on 24th August 2026 in a link post, and the reader is encouraged to sponsor Willison with $10/month for a curated email digest of the month's most important LLM developments.",
  "summary": "Your executable is a SQLite database Farid Zakaria describes a neat Linux pattern for creating a SQLite database file that can be directly used as an executable binary. The trick sets the SQLite file format's 4-byte application ID (68 bytes into the file) to SELF, standing for Structured Executable & Linkable Format. The various components of the ELF executable format are then arranged into a…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "Lobsters",
        "title": "Your executable is a SQLite database",
        "url": "https://urgent.news/2026/08/24/your-executable-is-a-sqlite-database",
        "published": "2026-08-24T07:32:45.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}