Skip to Content
ReferenceSecurity posture

Security

Buckler reads most of the home directory. It is designed to be at least as careful as the software it inspects.

Sandboxing and permissions

  • No App Sandbox. Broad read access to the home directory is necessary to inventory all package roots. macOS asks for access to Desktop, Documents, and Downloads once. Full Disk Access is not necessary.
  • Hardened runtime. Release builds use the hardened runtime and are signed with a Developer ID. Local builds use an ad-hoc signature.
  • Notarization. Production releases are notarized. Developer ID notarization is planned.

API keys and credentials

  • Keychain storage. API keys and tokens live in the macOS Keychain. The config file never holds a key.
  • Keychain items:
    • buckler.llm — LLM API key (configurable via [llm] api_key_keychain)
    • buckler.github — GitHub token for GHSA provider (optional, raises rate limit)
    • Custom keychain items for other providers that need tokens

To set a key:

security add-generic-password -a "$USER" -s buckler.llm -w "your-api-key-here"

Network egress

  • Limited scope. Network egress goes only to configured provider URLs and the LLM endpoint.
  • Logging. Every fetched host is logged.
  • No telemetry. Buckler sends no data to the author or to a tracking service.

Untrusted data handling

  • All fetched content is untrusted data. Nothing from a provider or an LLM response is run as a command.
  • LLM restrictions:
    • The LLM has no tools. It cannot read files, run commands, or make requests.
    • Article text is wrapped as data. The system prompt states that the text can contain instructions and that the only valid output is the schema.
    • An indicator from the LLM is a string pattern. The Matcher applies it. Nothing from the LLM is run as a command.
    • Local inventory never goes to the LLM unless send_inventory = "matched-only". Then the client sends only the purl of the matched item.
  • Subprocess boundary. Dispatch runners get the task bundle only. They never see article or chatter text.
  • Argument guards. Every subprocess invocation (update commands, dispatch runners) validates inputs and does not interpolate untrusted text into shell commands.

Dependencies

The app has three runtime dependencies, pinned to commit hashes in Package.resolved:

  • swift-argument-parser — CLI parsing
  • GRDB.swift — SQLite database
  • TOMLKit — TOML config parsing

User actions

  • Explicit actions. Quarantine, Delete, Update, and Dispatch run only after a click. Delete needs a second confirmation.
  • Reversible quarantine. Quarantine moves the package and its artifacts to a timestamped directory and writes a manifest. The Restore button moves everything back.
  • No automatic destructive actions. The LLM never authorizes Quarantine, Delete, or auto-dispatch. Only deterministic matching can produce a finding. Auto-dispatch (when enabled) runs for configured tiers only, and the default policy is manual.

Detection path

The matcher is a pure function over two tables. It has no network access and no file writes outside the Findings table. The LLM extracts indicators from news and writes summaries. It never decides a finding.

A finding requires:

  1. An indicator from a structured source (OSV, GHSA, KEV, local IOC file), or
  2. An indicator from an LLM extraction, plus a deterministic match against the local inventory

LLM intel can produce an advisory finding (lowest tier, digest-only notification) when a watchlist package is named, but it cannot produce compromised, exploited, vulnerable, or host-change findings on its own.

Last updated on