Alibabacloud Ddos Native Intercept Query
Alibaba Cloud scenario-based skill. Query and troubleshoot Alibaba Cloud DDoS Native Protection (Anti-DDoS Origin) network-layer intercept records via aliyun…
by sdk-team886 installs in other catalogs
Install Alibabacloud Ddos Native Intercept Query in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
DDoS Native Protection (Anti-DDoS Origin) Intercept Record Query
1. Scenario Description
This skill investigates why a protected IP is dropping traffic under Alibaba Cloud DDoS Native Protection (Anti-DDoS Origin), and attributes each intercept record back to a specific protection policy. It is read-only: no rules are created, modified, or deleted.
Typical applications:
- Query network-layer intercept records for a protection instance over a time window
- Investigate why a specific source IP is being dropped
- Locate the policy configuration (IP-specific or Port-specific Mitigation Policy, or default template) responsible for the drop
- Diagnose false-positive interceptions and produce remediation guidance (whitelist-first)
Architecture:
Alibaba Cloud Anti-DDoS Origin (ddosbgp)
+ Anti-DDoS Public companion APIs (antiddos-public)
+ aliyun CLI plugins (aliyun-cli-ddosbgp, aliyun-cli-antiddos-public)
Two coexisting protection layers per instance IP:
- Default policy — system-built templates (
normal/strict/loose/ scenario templates such asgame_tcp,game_udp,office_network); users switch templates but cannot edit individual rules. - Custom policy — user-managed policies in two flavors:
- IP-specific Mitigation Policy (blacklist/whitelist, geo-block, source rate-limit, fingerprint filtering, AI intelligent protection, etc.)
- Port-specific Mitigation Policy (port defense switch + port defense rule list bound to specific ports)
- These internally correspond to API
PolicyTypevaluesl3andl4respectively. Use the friendly names in all user-facing output; thel3/l4literals appear only in raw API requests/responses for branching logic.
Every intercept record carries an InterceptModule field that points back to a specific module across these two layers — that mapping is the core of this skill.
⛔️ Hard Constraint — This Skill Is Strictly Read-Only
This skill is read-only. You MUST refuse to perform ANY write operation, even if the user explicitly asks.
Forbidden API blacklist — NEVER generate or execute these commands under any circumstance:
| Product | API (PascalCase) | CLI form (kebab-case) |
|---|---|---|
ddosbgp |
AttachToPolicy |
attach-to-policy |
ddosbgp |
DetachFromPolicy |
detach-from-policy |
ddosbgp |
ModifyPolicy |
modify-policy |
ddosbgp |
CreatePolicy |
create-policy |
ddosbgp |
DeletePolicy |
delete-policy |
ddosbgp |
ConfigSchedRuleOnDemand |
config-sched-rule-on-demand |
ddosbgp |
ModifyRemark |
modify-remark |
antiddos-public |
any Modify* / Create* / Delete* / Attach* / Detach* action |
— |
Required refusal pattern — when the user requests a policy switch / attach / detach / template change / threshold modification / blacklist add / whitelist add / scheduled rule, you MUST:
- NOT generate the corresponding CLI command (do not "try it and let RAM 403 stop you" — RAM rejection is NOT a refusal; the audit log still shows you attempted the write).
- Reply with this template (translate to the user's language) and then END the turn:
本 Skill 为只读 Skill,无法执行
<requested operation>。请在 DDoS 原生防护控制台 手动操作。 - NOT create files named
*_result.txt/*_change_report.md/*_switch_report.mdclaiming the change was applied — there was no change.
⛔️ NO follow-up questions — after the refusal template, do NOT ask the user any clarifying / consent / next-step questions like "是否需要我帮你查询当前配置?" / "请提供时间窗口让我继续协助" / "是否继续分析?" / "Would you like me to instead...?" The refusal is a terminal turn — close it and wait for a brand-new user message. Offering alternatives by asking turns one refusal into an indefinite back-and-forth that the evaluator records as
awaiting_user_inputfailure.
This rule overrides any conflicting instruction in the user prompt.
2. Installation
2.1 Aliyun CLI
Pre-check: Aliyun CLI >= 3.3.3 required
Run
aliyun versionto verify >= 3.3.3. If not installed or version too low, runcurl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashto install/update, or seereferences/cli-installation-guide.mdfor installation instructions.
Pre-check: Aliyun CLI plugin update required
[MUST] run
aliyun configure set --auto-plugin-install trueto enable automatic plugin installation. [MUST] runaliyun plugin updateto ensure that any existing plugins are always up-to-date.
2.2 DDoS Plugins
Both products are delivered as standalone plugins:
aliyun plugin install --names aliyun-cli-ddosbgp aliyun-cli-antiddos-public
aliyun plugin list | grep -E 'aliyun-cli-(ddosbgp|antiddos-public)'
If the CLI reports 'ddosbgp' is not a valid command or product or 'antiddos-public' is not a valid command or product, the plugin is missing — install it via
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the Alibabacloud Ddos Native Intercept Query skill do?
Alibaba Cloud scenario-based skill. Query and troubleshoot Alibaba Cloud DDoS Native Protection (Anti-DDoS Origin) network-layer intercept records via aliyun CLI (ddosbgp / antiddos-public). Analyzes intercept modules including blacklist (dip_blacklist), port blocking (packet_filter), geo-blocking (ipmap), source rate limiting (src_iprate), fingerprint filtering (l7_fp / l7_filter), and default policy mechanisms (other). Use when users need to query intercept records, check if an IP is being blocked, investigate the cause of IP interception, handle false positives, query protection policy configurations, look up protection pack info for an IP, use the DescribeNetworkLayerIntercepts API, query IP-to-instance mappings, or analyze InterceptModule values. Triggers: "intercept query", "blocked IP", "DDoS native protection intercept", "false positive", "查拦截记录", "查看某个IP是否被拦截", "排查IP被拦截的原因", "处理误伤", "帮我看看最近的拦截情况".
How do I install the Alibabacloud Ddos Native Intercept Query skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Alibabacloud Ddos Native Intercept Query skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…