Deploying a Cost-Effective, Scalable PhotoDNA System for CSAM Detection
Scribd built a known-CSAM detection pipeline that separates event-driven PhotoDNA hash generation on AWS Lambda (including images extracted from PDFs) from a GPU-backed batch matcher on SageMaker that compares hashes against versioned NCMEC hash sets with conservative distance thresholds. Matches trigger quarantine, evidence preservation, human review and NCMEC CyberTipline reporting, with hash-set and threshold versions recorded for auditability. GPU batch execution delivered better throughput and cost per unit of work than equivalent CPU fleets. SQS buffering, storage lifecycle tiering and strict IAM boundaries kept costs down and limited sensitive data exposure, though operational details are deliberately withheld.
Related posts
- From single pull requests to full software packages: Detecting malicious code at scale
Datadog Engineering mediumAdeptDatadog extended BewAIre, its LLM-based malicious code detector, from pull requests to full dependency packages by stacking a cheap filter model in front of an agentic investigation model. The agent uses GitHub APIs, osv.dev and SCA to check context such as author history and reverted commits. On 690 test diffs the two-stage design raised accuracy from 97.4% to 99.86% by cutting false positives from 17 to 0, and static typosquat-domain checks cover gaps in the filter. For large packages, giving the agent a codemap plus an on-demand ReadFile tool beat both forwarding the flagged chunk and rechunking, reaching 95.2% end-to-end accuracy with no runtime errors. Projected costs are about $0.025 per median package and $0.072 at p90, and a crawler polls npm and PyPI every 10 minutes, caching verdicts by hash and diffing against the previous version.
- Cisco Talos empowers threat researchers while reducing TCO by 75% with ClickHouse Cloud
ClickHouse mediumAdept
Cisco Talos moved its file-hash reputation service, nearly 2 trillion rows (192 TB compressed, ~2 PB raw) growing by 27 billion rows a day, from a self-managed ClickHouse cluster on EKS to ClickHouse Cloud with zero downtime. The new pipeline replaces custom ingestion code with EventBridge, SQS and ClickPipes. It uses SharedMergeTree on object storage with query-time aggregation instead of pre-aggregation, and serves queries over AWS PrivateLink. The migration ran in four phases: Terraform foundation, a sharded backfill, shadow traffic, then cutover with a 100% match on 1,000+ sampled hashes. Separating storage from compute cut storage costs ~90%, total cost of ownership ~75%, and saved over 300 engineer hours a year.
- Video Invisible Watermarking at Scale
Meta Engineering mediumAdeptMeta runs ML-based invisible video watermarking (VideoSeal-style) as a custom FFmpeg filter for provenance use cases like detecting AI-generated video and identifying first uploaders. GPU deployment suffered from CPU-GPU frame transfer overhead, missing hardware video encoders, contention across parallel requests and model loading costs, so the team moved to CPU-only inference; with tuned encoder, decoder and PyTorch threading plus sampling parameters, single-process latency came within 5% of GPU and scaled across parallel FFmpeg processes more efficiently. A frame-selection method cut an initial ~20% BD-Rate regression, and crowdsourced manual review was needed because VMAF and SSIM missed watermark artifacts.
- Outgrowing Lambda Functions, Not Lambda | Honeycomb
Honeycomb mediumAdeptHoneycomb moved most of its S3-backed query mapper compute from Lambda Functions to AWS Lambda Managed Instances, eventually cutting query costs 40-56%, though the switchover itself was easy and the savings came from months of tuning. Lambda Functions had grown 5-8x more expensive per core-millisecond than EC2 because of an older Graviton mix and GB-second billing for network-bound waiting on S3. Agent-driven MCP queries also turned spiky load into a steady baseline. LMI is about 7.5x cheaper per CPU-second, but it bills for the whole fleet, so it only breaks even above roughly 12.5-14% utilization. Getting there required 16-way multi-concurrency, changes to GC, memory shedding and telemetry, capping the bang-bang autoscaler's max fleet size, and retry-then-spill routing plus query batching.
- How TUI scales threat modeling for 100+ teams with Amazon Bedrock
AWS Architecture Blog mediumAdeptTUI automated STRIDE threat modeling for 100+ product teams with a LangGraph agent on Amazon Bedrock AgentCore using Claude Sonnet 4.5. Loading all 192 internal security standards (338 KB) into the prompt failed, so the team switched to pre-generated metadata from which the model picks the 16 most relevant standards, a 94% context reduction. They preferred this over RAG because the corpus is bounded and some standards are always mandatory. The agent then generates threats in a ReAct loop with a tool budget that forces gap analysis, a validation node that checks STRIDE coverage, web search cached in S3 with a 70–80% hit rate, and optional comparison against SME assessments. TUI reports up to 70% less time per assessment, 3x more sessions per month, and 40–60 threats per architecture versus 30–40 from manual sessions.