8
n8n 中文网amn8n.com

简单网络安全品牌/漏洞提及监控器

中级

这是一个SecOps领域的自动化工作流,包含 8 个节点。主要使用 If, Code, Slack, Twitter, ScheduleTrigger 等节点。 监控X平台网络安全品牌提及并发送警报到Slack

前置要求
  • Slack Bot Token 或 Webhook URL
  • Twitter API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "UvFBvBrJeZ1ZseEP",
  "meta": {
    "instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae"
  },
  "name": "简单网络安全品牌/漏洞提及监控器",
  "tags": [],
  "nodes": [
    {
      "id": "2517496a-4442-47de-95b8-d4dcd18e41f4",
      "name": "监控:网络安全关键词",
      "type": "n8n-nodes-base.twitter",
      "position": [
        -640,
        -192
      ],
      "parameters": {
        "limit": 10,
        "operation": "search",
        "searchText": "=\"[YourBrandName]\" OR \"CVE-2024-XXXX\" OR \"zeroday\"",
        "additionalFields": {}
      },
      "credentials": {
        "twitterOAuth1Api": {
          "id": "hNQtu3O8dad8djrs",
          "name": "temp"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1b59fa1b-0c67-41ce-9727-5a63aca6ca58",
      "name": "格式化通知",
      "type": "n8n-nodes-base.code",
      "position": [
        -416,
        -192
      ],
      "parameters": {
        "jsCode": "const tweet = $json.text;\nconst user = $json.user.screen_name;\nconst tweetUrl = `https://twitter.com/${user}/status/${$json.id_str}`;\n\n// Basic filtering example (optional):\n// If you want to skip tweets from certain users or containing specific negative words\n// if (tweet.includes(\"irrelevant_ad\")) {\n//   return []; // Skip this item\n// }\n\nreturn [{\n    json: {\n        ...$json, // Keep original data if needed\n        notificationMessage: `🚨 New Cybersecurity Mention! 🚨\\nUser: @${user}\\nTweet: ${tweet}\\nLink: ${tweetUrl}`\n    }\n}];"
      },
      "typeVersion": 1
    },
    {
      "id": "e354e454-b75f-431d-a0e7-e03977a05fdd",
      "name": "结束工作流",
      "type": "n8n-nodes-base.noOp",
      "position": [
        32,
        -96
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "65258a33-fd0c-4447-ab9d-a9092e2bed00",
      "name": "由 Github 模型提供支持",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -864,
        -192
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "507cf813-506c-4a21-8d90-ddc8c9c5aa1a",
      "name": "有效提及?",
      "type": "n8n-nodes-base.if",
      "position": [
        -192,
        -192
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "48d84b7d-bece-407b-90cc-f3ee63b29d0a",
              "operator": {
                "type": "string",
                "operation": "notContains"
              },
              "leftValue": "={{ $json.notificationMessage }}",
              "rightValue": "\"bot\""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "1e8d6eb7-129a-48cb-b0e7-8e38b2aa1862",
      "name": "发送通知",
      "type": "n8n-nodes-base.slack",
      "position": [
        32,
        -288
      ],
      "webhookId": "6d4dba97-1b8d-43e4-8635-2a2a6841c9f6",
      "parameters": {
        "text": "={{ $json.notificationMessage }}",
        "user": {
          "__rl": true,
          "mode": "id",
          "value": "[YOUR_CYBERSECURITY_ALERT_CHANNEL_ID]"
        },
        "select": "user",
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "id": "AFKF0YsguyhsagR0",
          "name": "temp"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "71871b97-dc68-4621-b621-18423e553898",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        -368
      ],
      "parameters": {
        "color": 3,
        "width": 1168,
        "height": 448,
        "content": "## 流程"
      },
      "typeVersion": 1
    },
    {
      "id": "82990fea-5ae1-443d-b6e9-2d483f5095d9",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        144
      ],
      "parameters": {
        "color": 5,
        "width": 1168,
        "height": 1712,
        "content": "# 🛡️ 简单网络安全品牌/漏洞提及监控器 🚨"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "74a9e109-0669-4e2f-b427-89d31880e4f8",
  "connections": {
    "Valid Mention?": {
      "main": [
        [
          {
            "node": "Send Notification",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "End Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Monitor: Cybersecurity Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Notification": {
      "main": [
        [
          {
            "node": "Valid Mention?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monitor: Cybersecurity Keywords": {
      "main": [
        [
          {
            "node": "Format Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 安全运维

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量8
分类1
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Marth

Marth

@marth

Simplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.

外部链接
在 n8n.io 查看

分享此工作流