⚡ Only 300 spots remaining • Closes in 2d 14h 32m

Back to Workflow Library
Cloud Services

AWS S3 Malware Scanner

Protect your cloud storage. This workflow triggers automatically whenever a new file is uploaded to an Amazon S3 bucket. It downloads the file, forwards it to a malware scanning API, and alerts your security channel on Slack if any threats are detected.

#AWS S3
#Slack
#Security
#Malware Scan
#DevOps

Automation Logic

n8n JSON Blueprint

This workflow is pre-configured and ready for deployment. Simply import the JSON template into your n8n instance and configure your credentials.

This is an exclusive blueprint. Copy the JSON below to use it.

QUICK DEPLOY

  • 1
    Download the .json file
  • 2
    Open n8n & click "Import"
  • 3
    Configure your API keys

PRO TIP

Always test your workflow in a development environment before pushing to production.

JSON BLUEPRINT

n8n-workflow.json
{
  "nodes": [
    {
      "parameters": {
        "bucketName": "uploads-bucket",
        "events": [
          "s3:ObjectCreated:*"
        ]
      },
      "name": "S3 Object Created",
      "type": "n8n-nodes-base.awsS3Trigger",
      "typeVersion": 1,
      "position": [
        100,
        300
      ]
    },
    {
      "parameters": {
        "resource": "object",
        "operation": "download",
        "bucketName": "uploads-bucket",
        "key": "={{$json.s3.object.key}}"
      },
      "name": "Download S3 File",
      "type": "n8n-nodes-base.awsS3",
      "typeVersion": 1,
      "position": [
        300,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.malwarescan.service/scan",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "file",
              "parameterInputType": "formBinaryData",
              "binaryDataKey": "data"
            }
          ]
        }
      },
      "name": "Scan File API",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$json.malicious}}",
              "value2": true
            }
          ]
        }
      },
      "name": "Is Malicious?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        700,
        300
      ]
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": "security-alerts",
        "text": "🚨 ALERT: Malicious file detected in S3: {{$node[\"S3 Object Created\"].json.s3.object.key}}"
      },
      "name": "Slack Alert",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        900,
        200
      ]
    }
  ],
  "connections": {
    "S3 Object Created": {
      "main": [
        [
          {
            "node": "Download S3 File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download S3 File": {
      "main": [
        [
          {
            "node": "Scan File API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scan File API": {
      "main": [
        [
          {
            "node": "Is Malicious?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Malicious?": {
      "main": [
        [
          {
            "node": "Slack Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

To use this, copy the JSON above and paste it directly onto your n8n canvas.

IMPLEMENTATION GUIDE

Required Nodes

  • AWS S3 Node
  • Slack Node
  • Security Node
  • Malware Scan Node
  • DevOps Node
  • Cron / Webhook Trigger

Core Benefits

  • 100% Automated Execution
  • Reduces Manual Data Entry
  • Infinite Scalability

Need Help Building Your Private Cloud?

Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.

user