{
  "id": 20324658,
  "title": "How I Cut a Days-Long Malware-Scanning Build to Under an Hour",
  "url": "https://urgent.news/2026/11/16/how-i-cut-a-days-long-malware-scanning-build-to-under-an-hour",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-16T20:27:13.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hyperter/how-i-cut-a-days-long-malware-scanning-build-to-under-an-hour-fa7"
  },
  "original_language": "en",
  "account": "A multi-day malware scanning build has been reduced to an hour-long process using Terraform. The system automatically scans all files entering a secure network before they are used. Initially, the washing machine had to be shared across all enclaves, but later it was designed to be either shared or per-enclave based on the policy. GuardDuty Malware Protection for S3 scans new objects in a landing bucket and tags the result. Two AWS Lambda functions in private subnets handle the transfer of clean files and quarantine of those that cannot be scanned. An Amazon EventBridge rule sends the result to these Lambda functions, and Amazon CloudWatch alarms monitor for Lambda errors. The code is built using a single Terraform module, allowing for easy deployment in shared or individual enclave accounts. Guardrails were implemented to exempt the GuardDuty scan role from access denials, and VPC endpoints were added to handle private subnets. A test virus, the EICAR test file, was uploaded after every deployment to ensure the pipeline was working correctly. Using Terraform has resulted in faster reviews, as reviewers can now read the code and plan instead of looking at screenshots. The default template for every new enclave has been created, resulting in faster deployment times and increased trust from customers.",
  "summary": "A build that used to take days of console work now takes one Terraform apply, in under an hour. And when the policy changes, it no longer means a rebuild. Here's how I got there, and what real environments taught me along the way. The problem: the requirements kept moving Every file that enters a secure network has to be scanned before anyone uses it. My team calls the system that does this the…",
  "key_points": [
    "Multi-day malware scanning reduced to under an hour using Terraform",
    "GuardDuty Malware Protection scans new objects in landing bucket",
    "Terraform module enables easy deployment in shared or individual enclave accounts"
  ],
  "editors_take": "Automating the malware scanning pipeline with Terraform shifts security from a slow manual bottleneck to a scalable, code-driven process that accelerates deployment and strengthens customer trust.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "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."
}