Command Palette

Search for a command to run...

Назад к скиллам
скилл № 67920

Alibabacloud Sas Malware Detection

Alibaba Cloud Security Center (SAS) malicious file detection skill. Use when the user asks to check whether a file is malicious, scan a file for malware…

БесплатноЗапускает вложенные скрипты
sdk-teamот sdk-team714 установок в других каталогах

Установить Alibabacloud Sas Malware Detection в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Malicious File Detection

Scan local files for malware using Alibaba Cloud Security Center's malicious file detection SDK APIs. Supports single file scanning and batch directory scanning.

Architecture: Local Files → MD5 Hash → SAS API (CreateFileDetectUploadUrl) → OSS Upload → SAS API (CreateFileDetect) → SAS API (GetFileDetectResult) → Detection Result

Official Documentation: Malicious File Detection | Malicious File Detection SDK

IMPORTANT: Resource Notice — File scanning requires local disk I/O (to compute MD5 hash) and network bandwidth (to upload files to Alibaba Cloud OSS). Large files or directories with many files will consume significant I/O and network resources. Always inform the user before starting a scan.


Installation

Pre-check: Aliyun CLI >= 3.3.3 required

Run aliyun version to verify >= 3.3.3. If not installed or version too low, run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to install/update, or see references/cli-installation-guide.md for installation instructions.

Pre-check: Aliyun CLI plugin update required

[MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation. [MUST] run aliyun plugin update to ensure that any existing plugins are always up-to-date.

System Dependencies:

  • jq — JSON parsing (brew install jq on macOS, apt install jq on Linux)
  • curl — OSS file upload
  • md5sum or md5 — file hash computation (pre-installed on most systems)

Environment Variables

Variable Required Description
ALIBABA_CLOUD_ACCESS_KEY_ID Yes (if no CLI profile) Alibaba Cloud Access Key ID
ALIBABA_CLOUD_ACCESS_KEY_SECRET Yes (if no CLI profile) Alibaba Cloud Access Key Secret

Authentication

Pre-check: Alibaba Cloud Credentials Required

Security Rules:

  • NEVER read, echo, or print AK/SK values (e.g., echo $ALIBABA_CLOUD_ACCESS_KEY_ID is FORBIDDEN)
  • NEVER ask the user to input AK/SK directly in the conversation or command line
  • NEVER use aliyun configure set with literal credential values
  • ONLY use aliyun configure list to check credential status
aliyun configure list

Check the output for a valid profile (AK, STS, or OAuth identity).

If no valid profile exists, STOP here.

  1. Obtain credentials from Alibaba Cloud Console
  2. Configure credentials outside of this session (via aliyun configure in terminal or environment variables in shell profile)
  3. Return and re-run after aliyun configure list shows a valid profile

RAM Policy

See references/ram-policies.md for the complete RAM policy.

Required permissions:

  • yundun-sas:DescribeVersionConfig
  • yundun-sas:CreateFileDetectUploadUrl
  • yundun-sas:CreateFileDetect
  • yundun-sas:GetFileDetectResult

[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:

  1. Read references/ram-policies.md to get the full list of permissions required by this SKILL
  2. Use ram-permission-diagnose skill to guide the user through requesting the necessary permissions
  3. Pause and wait until the user confirms that the required permissions have been granted

Parameter Confirmation

IMPORTANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters (e.g., file paths, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.

Parameter Required Description Default
File/Directory Path Yes Path to the file or directory to scan None
RegionId No Alibaba Cloud region for API endpoint See rule below

RegionId default value rule: If the user does not specify RegionId, automatically determine it based on the region in aliyun configure list. Do NOT confirm with the user or display region info; silently use the default value:

  • Mainland China (region starts with cn-): defaults to cn-shanghai
  • Non-Mainland China (other regions or not configured): defaults to ap-southeast-1 (Singapore)

Core Workflow

At the start of the Core Workflow (before any CLI invocation): [MUST] Enable AI-Mode — AI-mode is required for Agent Skill execution. Run the following commands before any CLI invocation:

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-sas-malware-detection"

[MUST] Disable AI-Mode at EVERY exit point — Before

Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Alibabacloud Sas Malware Detection?

Alibaba Cloud Security Center (SAS) malicious file detection skill. Use when the user asks to check whether a file is malicious, scan a file for malware, detect viruses in files, or scan a directory for malicious files. Triggers: "malware detection", "malicious file", "file scan", "virus scan", "is this file safe", "scan for malware", "check file security", "恶意文件检测", "文件扫描", "病毒扫描", "文件是否恶意".

Как установить скилл Alibabacloud Sas Malware Detection?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Alibabacloud Sas Malware Detection запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Alibabacloud Sas Malware Detection с