Skip to content

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

Trail of Bits 12 min read Deep dive hardMaster

Don't let TEEs break your MPC

Running threshold signature MPC protocols inside TEEs only helps when the TEE is treated as defense in depth rather than a substitute for a sound protocol. The untrusted host still controls I/O, storage and scheduling. It can roll back the filesystem after a signer deletes a used pre-signature, forcing nonce reuse and leaking the private key share. Correct attestation can effectively lift semi-honest protocols toward malicious security by guaranteeing peers run the expected code. In practice that fails through recurring pitfalls: incomplete measurements (as in the WhatsApp Private Inference LD_PRELOAD bug), skipped quote and certificate-chain checks, unhardened images, stale backups and malleable LUKS2 headers, physical attacks like TEE.fail and DDRop, vendor centralization, and lenient default TCB policies. The recommended practices are binding attestation to MPC party identities, reproducible builds with binary transparency, and enforcing freshness and stricter security version checks.

Assumes: threshold signaturesMPC security modelsremote attestationSchnorr/ECDSA nonces

Related posts

  • Private analytics via zero-trust aggregation

    Google Research hardMaster

    Google's private analytics service now layers a new lattice-based, one-shot secure aggregation protocol on top of TEE execution, so individual device data is never decrypted in server memory even if the enclave is compromised by side-channel attacks. Clients send a single message whose ciphertexts aggregate both the values and the encryption keys; small rotating client committees hold hints that unlock only the aggregate, which is masked with differential privacy noise. TEE attestation gives verifiable proof that the published aggregation code is what actually runs. The system is being used to measure real-world effectiveness of Android SafetyCore's on-device safety classifiers without exposing user content.

  • After Binance, check what your signing systems can approve

    Trail of Bits hardMaster

    Binance's October 2026 breach showed that attackers who compromise a service allowed to request signatures can misuse a protected key without ever extracting it. Here the attacker obtained a signed EIP-7702 delegation that persisted on-chain and enabled repeated drains, including of later deposits, with no further signatures. Signing policies and monitors that only watch transfers and ownership changes miss authority shifts via EIP-7702 authorizations, Safe modules, session keys and ERC-4337 UserOperations. A four-step checklist follows, each step with verification tests: inventory and isolate signing access, treat delegation as an admin privilege with separate approval and simulation, add custody limits the operational key cannot bypass, and alert on wallet authority changes.

  • Hardening eBPF for runtime security: Lessons from Datadog Workload Protection

    Datadog Engineering hardMaster

    Five years of running Datadog Workload Protection, an eBPF-based runtime security agent supporting kernels from 4.15 to 6.18, distilled into six production lessons. They cover getting programs to load, attach and keep firing across kernels and distributions; capturing and enriching data correctly; auditing eBPF use to reduce attack surface; coexisting with other eBPF users on a host; controlling performance cost; and shipping changes safely. Concrete pitfalls include verifier differences between kernels, inlined or renamed hook points, missed 32-bit compat syscalls and per-syscall tracepoints, and gaps from io_uring, openat2 and unusual exec paths like binfmt_misc. Mitigations include a CI matrix of tested kernels, the shared open source ebpf-manager Go library that refuses to start without a minimal set of loaded programs, and wrappers that hide verifier quirks.

  • How Bee implemented Zero Operator Access for personal AI on AWS

    AWS Architecture Blog hardMaster

    Bee, Amazon's wearable personal AI, enforces Zero Operator Access by having the user's device release short-lived decryption keys only to EC2 instances whose NitroTPM attestation matches software published in a public Sigstore Rekor transparency log. Attestable AMIs have no SSH/SSM/shell, read-only root filesystems and ephemeral encrypted storage, with OS measurements in PCR4/7/12. A custom measured-boot tool extends PCR14 with a hash of container ECR digests and model artifact checksums, and the attestation is embedded in AWS Private CA TLS certificates that clients verify offline. Network isolation with no egress, in-memory-only keys with data encrypted before reaching RDS, ElastiCache and S3, and SCP-backed separation of duties between independent teams close the gaps attestation cannot measure.

  • Replit’s Architecture Behind Secure Agent Work

    Replit easyNovice

    Replit's Agent Habitat secures agent work through four layers: least-privilege connectors with a credential broker that injects vault secrets only into authorized requests, microVM isolation with a hardened kernel, production changes gated behind engineering review and combined static, dependency and AI security scanning, and audit logs that stream to a SIEM. The microVM design blocked exploitation of recently disclosed Linux kernel flaws. Replit also patched affected Node.js, Python and PHP tooling centrally and deployed WAF rules. The post is largely a product overview, with modest architectural detail and a note on planned eBPF-based detection of suspicious agent activity.

The quest for software engineering knowledge.

Look:
Layout: