# Claude Code Account Risk

> |

- **Type:** Skill
- **Install:** `agentstack add skill-swaylq-account-risk-skill-account-risk-skill`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [swaylq](https://agentstack.voostack.com/s/swaylq)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [swaylq](https://github.com/swaylq)
- **Source:** https://github.com/swaylq/account-risk-skill

## Install

```sh
agentstack add skill-swaylq-account-risk-skill-account-risk-skill
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 反封号 · Claude Code 账号风险体检

## 目标

用户触发后，直接做一次 Claude Code 封号风险评估。不要向用户暴露内部评分细节，除非用户追问。

典型触发：

- 测试一下我目前账号被封的可能性
- 检查 Claude Code 封号风险
- 用反封号 skill 检查这个项目
- 我 Claude 账号被封了，帮我整理申诉
- 看一下 api.anthropic.com 走什么出口

## 边界

可以：
- 风险检测
- 合规预检
- IP / 路由 / 分流检查
- 项目自动化风险检查
- 敏感数据暴露风险检查
- 审计控制检查
- 误封申诉材料整理

禁止：
- 绕封号
- 绕 unsupported region
- 伪装身份 / 伪装位置
- 批量换号
- 代理池 / IP 轮换策略
- 平台风控规避
- 批量注册、刷量、垃圾消息、平台操纵

如果用户要求规避风控，拒绝并转向「风险检测 / 合规整改 / 申诉材料」。

## 一次评估怎么做

按顺序执行。

### 1. 读取项目

优先读取存在的文件：

- `AGENTS.md`
- `CLAUDE.md`
- `.claude/settings.json`
- `.claude/settings.local.json`（只判断 key 名，不输出 secret 值）
- `scripts/`
- `cron/`
- `launchd/`
- `systemd/`
- `memory/` 最近日志
- `README.md`
- `package.json`

不要打印 token、API key、bot token、cookie、private key。

### 2. 检查网络

在本 skill 目录可运行：

```bash
bash scripts/egress_consensus_probe.sh
bash scripts/domain_route_probe.sh
```

重点看：

- 是否 `split_egress=true`
- `api.anthropic.com` 的 DNS / route / Cloudflare colo 是否稳定
- 是否能确认 Claude API 路径对应的 egress/source IP

注意：

- `remote_ip` 是 Claude API 目标 IP，不是公网出口 IP。
- 如果不能确认真实 source IP，标为「需要用户确认」。

### 3. IP 纯净度

如果用户提供 IP2Location / IPinfo JSON，运行：

```bash
python3 scripts/ip_cleanliness_score.py --ip2location  --ipinfo 
```

如果没有提供，只基于 route / egress probe 做初步判断，不编造 IP2Location 结论。

### 4. Claude Code 项目风险

检查这些风险：

- 长期 agent / daemon / cron / bridge
- 批量注册
- 批量消息
- 爬取
- 平台操纵
- credential stuffing
- 越权安全测试
- policy stress testing / jailbreak testing
- 外部动作没有人工确认
- 没有审计日志
- 没有 policy gate / allowlist / stop condition
- `.env` / token / API key / 敏感日志进入上下文
- 泄漏源码 / DMCA-risk mirror
- `/bug` 或 debug dump 可能上传完整上下文

### 5. 用户确认项

这些不能从本地可靠判断，列到「需要用户确认」：

- 账号地区
- 支付地区
- 手机号 / 身份验证
- 组织主体
- 是否真实位于 Anthropic supported country
- Anthropic warning / suspension 邮件内容
- Anthropic 服务端看到的真实 source IP
- Team / Enterprise / API 合同条款

涉及最新 supported countries / policy / appeal 流程时，浏览官方来源核实。

官方优先来源：

- https://www.anthropic.com/supported-countries
- https://docs.anthropic.com/en/api/supported-regions
- https://www.anthropic.com/legal/aup
- https://support.claude.com/en/articles/8241253-trust-and-safety-warnings-and-appeals
- https://support.claude.com/en/articles/14328960-identity-verification-on-claude
- https://docs.anthropic.com/en/docs/claude-code/data-usage
- https://docs.anthropic.com/en/docs/claude-code/monitoring-usage

## 评分

总分叫 `risk_score`，0-100，越高越危险。

权重：

- IP / network: 70%
- region / identity: 10%
- workflow: 10%
- sensitive data: 5%
- audit controls: 5%

判定：

- 85-100: critical
- 70-84: high
- 45-69: watch
- 25-44: low
- 0-24: minimal

硬性覆盖：

- unsupported region: 总风险至少 75
- 明显高风险 workflow: 总风险至少 90
- secrets in context: 总风险至少 85
- hosting/proxy 明确命中: 网络风险至少 95

可以用结构化 profile 运行：

```bash
python3 scripts/account_risk_score.py 
```

没有完整 profile 时，手动按上述权重估算，标明哪些依据来自本地验证，哪些来自用户确认。

## 输出格式

默认用简洁中文。不要长篇解释内部规则。

```text
Claude Code 封号风险体检

风险等级：
总风险分：

已验证：
-

需要你确认：
-

高风险：
-

建议动作：
1.
2.
3.

如果已封号，申诉材料还缺：
-
```

## 申诉材料

如果用户已经被封，收集：

- 账号 email / org ID（不要输出 secret）
- 产品：Claude Code / Claude / Anthropic API
- plan 类型
- 封禁时间和时区
- warning 邮件原文或摘要
- 最后几次合法活动
- 业务用途
- 是否单账号或团队整体受影响
- billing 是否正常
- 地区和主体是否 supported
- 已停止的风险工作流
- 已整改动作
- 脱敏日志

不要编造事实。不要建议隐藏地区、身份或历史活动。

## 拒绝模板

```text
我不能帮助绕过封禁、规避地区限制、伪装身份/位置、批量换号或逃避平台风控。

我可以继续帮你做三件事：
1. 评估当前 Claude Code 账号/网络/工作流的封禁风险。
2. 建立合规预检和状态报告。
3. 整理误封申诉材料。
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [swaylq](https://github.com/swaylq)
- **Source:** [swaylq/account-risk-skill](https://github.com/swaylq/account-risk-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-swaylq-account-risk-skill-account-risk-skill
- Seller: https://agentstack.voostack.com/s/swaylq
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
