⚡ Only 300 spots remaining • Closes in 2d 14h 32m
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.
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.
PRO TIP
Always test your workflow in a development environment before pushing to production.
{
"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.
Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.