Files
nuclei-templates/cloud/alibaba/alibaba-cloud-code-env.yaml

69 lines
1.6 KiB
YAML
Raw Normal View History

2024-12-23 14:49:56 +05:30
id: alibaba-cloud-code-env
2024-12-12 06:05:35 +05:30
info:
2024-12-23 15:03:12 +05:30
name: Alibaba Cloud Environment Validation
2024-12-12 06:05:35 +05:30
author: DhiyaneshDK
severity: info
description: |
Checks if Aliyun CLI is set up and all necessary tools are installed on the environment.
reference:
- https://github.com/aliyun/aliyun-cli
metadata:
2025-05-27 02:29:19 +00:00
max-request: 3
verified: true
2024-12-23 14:49:56 +05:30
tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config
2024-12-12 06:05:35 +05:30
variables:
region: "cn-hangzhou"
2024-12-23 14:56:37 +05:30
flow: code(1) && code(2) && code (3)
2024-12-12 06:05:35 +05:30
self-contained: true
2024-12-23 14:56:37 +05:30
2024-12-12 06:05:35 +05:30
code:
- engine:
- sh
- bash
source: |
aliyun sts GetCallerIdentity
matchers:
- type: word
internal: true
words:
- '"UserId":'
extractors:
- type: json
name: account
internal: true
json:
- '.AccountId'
- engine:
- sh
- bash
source: |
jq --version >/dev/null 2>&1 && echo "jq is installed." || echo "jq is not installed."
matchers:
- type: word
words:
- "jq is installed"
2024-12-23 14:56:37 +05:30
- engine:
- sh
- bash
source: |
ossutil --version >/dev/null 2>&1 && echo "ossutil is installed." || echo "ossutil is not installed."
matchers:
- type: word
words:
- "ossutil is installed"
2024-12-12 06:05:35 +05:30
extractors:
- type: dsl
dsl:
2024-12-23 14:56:37 +05:30
- '"Aliyun CLI is properly configured for account \"" + account + "\" and all the necessary tools required are installed."'
2024-12-23 10:13:59 +00:00
# digest: 4a0a0047304502201c12ee70fb96893100a7ac8999e01834ac017716a0cdf13249855690a2c096a70221008644bea38cae55a580d6f044fd2b944e416d9f13ab32c1662a1c30cd60542014:922c64590222798bb761d5b6d8e72950