ALIYUN::ThreatDetection::HoneyPot

更新时间:
复制为 MD 格式

ALIYUN::ThreatDetection::HoneyPot类型用于新增蜜罐实例。

语法

{
  "Type": "ALIYUN::ThreatDetection::HoneyPot",
  "Properties": {
    "HoneypotImageName": String,
    "HoneypotImageId": String,
    "HoneypotName": String,
    "NodeId": String,
    "Meta": Map
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

HoneypotImageId

String

蜜罐镜像ID。

HoneypotImageName

String

蜜罐镜像名称。

HoneypotName

String

蜜罐的自定义名称。

NodeId

String

管理节点ID。

Meta

Map

蜜罐自定义配置。

JSON 格式。包含以下字段:

  • trojan_git:Git 反制。取值:

    • zip:Git 源码包

    • web:.git 目录泄漏

    • close:关闭

  • trojan_git_addr:Git 反制连接地址

  • trojan_git.zip:Git 反制木马包

  • burp:Burp 反制。取值:

    • open:开启

    • close:关闭

  • portrait_option:溯源配置。取值:

    • false:关闭

    • true:开启

返回值

Fn::GetAtt

  • HoneypotImageName:蜜罐镜像名称。

  • State:蜜罐状态。

  • HoneypotId:蜜罐ID。

  • NodeId:管理节点ID。

  • HoneypotImageId:蜜罐镜像ID。

  • HoneypotName:蜜罐的自定义名称。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  HoneypotImageName:
    Type: String
    Description:
      en: |-
        The name of the honeypot image.
        > You can call the [ListAvailableHoneypot](~~ListAvailableHoneypot~~) operation to query the names of images from the **HoneypotImageName** response parameter.
    Required: true
  HoneypotName:
    Type: String
    Description:
      en: The custom name of the honeypot.
    Required: true
  NodeId:
    Type: String
    Description:
      en: |-
        The ID of the management node.
        > You can call the [ListHoneypotNode](~~ListHoneypotNode~~) operation to query the IDs of management nodes.
    Required: true
  HoneypotImageId:
    Type: String
    Description:
      en: |-
        The ID of the honeypot image.
        > You can call the [ListAvailableHoneypot](~~ListAvailableHoneypot~~) operation to query the IDs of images from the **HoneypotImageId** response parameter.
    Required: true
  Meta:
    Description:
      en: |-
        Honeypot custom configuration. JSON format. Contains the following fields:
        - **trojan_git**:Git counterplan. Value:
        - **zip**:Git source package
        - **web**:.git directory leak
        - **close**: close
        - **trojan_git\_addr**:Git anti-control connection address
        - **Trojan_git.zip**:Git anti-Trojan package
        - **burp**:Burp counter. Value:
        - **open**: On
        - **close**: close
        - **portrait_option**: traceability configuration. Value:
        - **false**: Disabled
        - **true**: Enable.
    Required: false
    Default: Null
    Type: Json
Resources:
  ExtensionResource:
    Type: ALIYUN::ThreatDetection::HoneyPot
    Properties:
      HoneypotImageName:
        Ref: HoneypotImageName
      HoneypotName:
        Ref: HoneypotName
      NodeId:
        Ref: NodeId
      HoneypotImageId:
        Ref: HoneypotImageId
      Meta:
        Ref: Meta
Outputs:
  HoneypotImageName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - HoneypotImageName
    Description: The name of the honeypot image.
  HoneypotName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - HoneypotName
    Description: The custom name of the honeypot.
  HoneypotImageId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - HoneypotImageId
    Description: The ID of the honeypot image.
  NodeId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - NodeId
    Description: The ID of the management node.
  State:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - State
    Description: Honeypot status.
  HoneypotId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - HoneypotId
    Description: The ID of the honeypot.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "HoneypotImageName": {
      "Type": "String",
      "Description": {
        "en": "The name of the honeypot image.\n> You can call the [ListAvailableHoneypot](~~ListAvailableHoneypot~~) operation to query the names of images from the **HoneypotImageName** response parameter."
      },
      "Required": true
    },
    "HoneypotName": {
      "Type": "String",
      "Description": {
        "en": "The custom name of the honeypot."
      },
      "Required": true
    },
    "NodeId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the management node.\n> You can call the [ListHoneypotNode](~~ListHoneypotNode~~) operation to query the IDs of management nodes."
      },
      "Required": true
    },
    "HoneypotImageId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the honeypot image.\n> You can call the [ListAvailableHoneypot](~~ListAvailableHoneypot~~) operation to query the IDs of images from the **HoneypotImageId** response parameter."
      },
      "Required": true
    },
    "Meta": {
      "Description": {
        "en": "Honeypot custom configuration. JSON format. Contains the following fields:\n- **trojan_git**:Git counterplan. Value:\n- **zip**:Git source package\n- **web**:.git directory leak\n- **close**: close\n- **trojan_git\\_addr**:Git anti-control connection address\n- **Trojan_git.zip**:Git anti-Trojan package\n- **burp**:Burp counter. Value:\n- **open**: On\n- **close**: close\n- **portrait_option**: traceability configuration. Value:\n- **false**: Disabled\n- **true**: Enable."
      },
      "Required": false,
      "Default": null,
      "Type": "Json"
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ThreatDetection::HoneyPot",
      "Properties": {
        "HoneypotImageName": {
          "Ref": "HoneypotImageName"
        },
        "HoneypotName": {
          "Ref": "HoneypotName"
        },
        "NodeId": {
          "Ref": "NodeId"
        },
        "HoneypotImageId": {
          "Ref": "HoneypotImageId"
        },
        "Meta": {
          "Ref": "Meta"
        }
      }
    }
  },
  "Outputs": {
    "HoneypotImageName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "HoneypotImageName"
        ]
      },
      "Description": "The name of the honeypot image."
    },
    "HoneypotName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "HoneypotName"
        ]
      },
      "Description": "The custom name of the honeypot."
    },
    "HoneypotImageId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "HoneypotImageId"
        ]
      },
      "Description": "The ID of the honeypot image."
    },
    "NodeId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "NodeId"
        ]
      },
      "Description": "The ID of the management node."
    },
    "State": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "State"
        ]
      },
      "Description": "Honeypot status."
    },
    "HoneypotId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "HoneypotId"
        ]
      },
      "Description": "The ID of the honeypot."
    }
  }
}