Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Slack Engineering 7 min read Case study easyNovice

How We Built Slack AI To Be Secure and Private

Slack AI was designed around four principles: customer data never leaves Slack's trust boundary, no LLM training on customer data, the AI only sees what the requesting user can see, and all existing compliance controls still apply. Closed-source foundation models run in an AWS-hosted escrow VPC so the model provider never gets customer data. Stateless RAG over off-the-shelf models replaces fine-tuning, which raises the need for large context windows at low latency. Retrieval reuses the user's ACLs and existing fetch libraries, outputs are ephemeral where possible, and derived summaries are invalidated when source messages are tombstoned by DLP.

Assumes: LLM basicsretrieval-augmented generation

Related posts

  • How we built enterprise search to be secure and private

    Slack Engineering easyNovice

    Slack's enterprise search, which brings Google Drive and GitHub results into Slack search and AI Answers, uses a federated, real-time design instead of an index. Queries go to partner search APIs at request time using per-user OAuth tokens, so no external data is stored server-side and results and permissions can't go stale. The system reuses Slack AI's model: LLMs hosted in an escrow VPC on AWS, RAG with the user's ACL rather than training on customer data, and Search Answers discarded after display. Admins and users must each opt in per source, and only read-only OAuth scopes are requested.

  • Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study

    Meta Engineering mediumAdept

    Meta classifies data assets for privacy enforcement with a hybrid pipeline: it builds structured evidence briefs from code resolution, lineage, ownership and annotations, uses LLMs only for novel or ambiguous assets, and distills stable patterns into versioned, human-reviewed deterministic rules. About 85% of requests resolve on the deterministic path in single-digit milliseconds. The ~15% LLM fallback takes seconds and costs roughly 400x the compute. Key lessons are that context matters more than prompt tuning, that circular label fields must be masked from both the LLM and rule distillation, and that evaluation must stay independent of optimization, using frozen human-reviewed reference sets and calibrated confidence scores.

  • Slack AI: The Path to Multi-Cloud

    Slack Engineering mediumAdept

    Slack AI's LLM serving evolved over three years through four phases: self-managed AWS SageMaker endpoints in an escrow VPC, Amazon Bedrock Provisioned Throughput, a hybrid of Provisioned Throughput and On-Demand with spillover routing, and finally a multi-cloud setup adding GCP Vertex AI. Each move addressed a concrete pain point: GPU scarcity and scaling latency, model availability lag, idle capacity from workday traffic peaks, multi-month commitment lock-in, and single-provider concentration risk. The Bedrock migration had zero customer-facing incidents, achieved through load tests to size Model Units, shadow requests, A/B quality checks and feature-flag rollouts. Per-feature model fallback hierarchies and telemetry-based cross-provider routing then delivered about 10% quality gains on reasoning tasks and about 67% lower latency on low-token workloads.

  • Scaling Privacy Infrastructure for GenAI Product Innovation

    Meta Engineering easyNovice

    Meta scales its Privacy Aware Infrastructure (PAI) to cover GenAI products such as its AI glasses, using cross-stack data lineage as the foundation for automated privacy enforcement. Lineage signals are collected from web privacy probes, logger-to-warehouse flows, parsed SQL and batch-processing logs, RPC boundaries for LLM inference calls, and training manifests, then stitched into an end-to-end graph. A shared library, PrivacyLib, links reads to writes through a common correlation key across languages and data systems. The resulting lineage guides where Policy Zones are placed and blocks training jobs on data not permitted for that purpose, while verifiers continuously watch flow edges to catch new or changed processing early.

  • Security incident disclosure — July 2026

    Hugging Face easyNovice

    Hugging Face disclosed an intrusion driven end to end by an autonomous AI agent swarm. It got in through a malicious dataset that exploited a remote-code dataset loader and a template injection in dataset configuration, then escalated to node access, harvested cloud and cluster credentials, and moved laterally across internal clusters. The attacker accessed limited internal datasets and service credentials. Public models, datasets, Spaces and the software supply chain were verified clean. Responders reconstructed the 17,000+ event attack log with LLM agents, but frontier hosted APIs blocked the forensic work on safety-guardrail grounds, so they switched to the open-weight GLM-5.2 on their own infrastructure. Their recommendation is to have a vetted self-hosted model ready before an incident, both to avoid guardrail lockout and to keep attacker data from leaving the environment.

The quest for software engineering knowledge.

Look:
Layout: