ehomekevin

Claude Neverbanned Skills — Security skill for Claude Code

Security community

Scan & clean Claude Desktop/Code local residue on macOS & Windows: device fingerprints, ban traces, credentials, session history.

How to install Claude Neverbanned Skills

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ehomekevin/claude-neverbanned-skills and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Neverbanned Skills does

Scan & clean Claude Desktop/Code local residue on macOS & Windows: device fingerprints, ban traces, credentials, session history. Backup-to-USB or zero-residue cleanup. Includes netcheck network audit: IP quality, DNS/WebRTC leak, Cloudflare challenge, timezone/locale alignment. Zero deps.扫描并清理 macOS / Windows 上 Claude Desktop 与 Claude Code 的本地残留,备份策略由你选择(U 盘 / 不备份),支持一键还原。 提炼自 NeverBanned 的环境清理模块,独立运行,零依赖(Node 18+)。 既可以当作 Agent Skill 用(把整个文件夹交给 Claude Code / Antigravity / Codex / WorkBuddy 等 agent),也可以直接在终端里跑。

Alternatives in Security

  • Loongsuite Pilot — Local-first telemetry collector for AI coding agents — unified OpenTelemetry events for Claude Code, Codex, Cu 150 ★
  • Orca Agent Cleanup — Safely audit and quarantine Orca-installed agent skills, hooks, and CLI residue on Windows, macOS, and Linux 35 ★
  • Gaia Residue — Triages the keyed audit residue recorded in merged pull-request bodies 26 ★

README

Claude NeverBanned Skills

扫描并清理 macOS / Windows 上 **Claude Desktop** 与 **Claude Code** 的本地残留,备份策略由你选择(U 盘 / 不备份),支持一键还原。

提炼自 [NeverBanned](https://neverbanned.app) 的环境清理模块,独立运行,零依赖(Node 18+)。

既可以当作 **Agent Skill** 用(把整个文件夹交给 Claude Code / Antigravity / Codex / WorkBuddy 等 agent),也可以直接在终端里跑。

能做什么

命令 作用
scan 只读扫描。不写任何文件,不读取也不输出任何凭据、Cookie 内容或 Keychain 密码
netcheck 清理后的网络环境只读检测:IP 质量/类型、DNS 归属地、WebRTC/UDP 泄露(真实 STUN)、Cloudflare 挑战、IPv6、时区/语言对齐,并输出新开 Claude 前的前置调整建议
clean --yes 备份后清理。不加 --yes 拒绝执行;Claude 仍在运行时拒绝执行
restore --from <备份目录> 从备份还原,默认不覆盖已存在文件,加 --force 完整回滚

扫描覆盖 6 类:

  1. Desktop 存储与设备 ID:ant-did、ant-device-registry.json、ccd-ids.json、Cookie/本地存储、历史账号会话目录等
  2. 系统日志与缓存(macOS):Library/Logs、HTTPStorages、WebKit、defaults 等;全平台含 ~/.cache/claude、~/.local/state/claude
  3. CLI 身份与会话:~/.claude.json 跟踪字段、.credentials.json、statsig 等
  4. Keychain(仅 macOS,只检测存在)
  5. 中转与代理配置:ANTHROPIC_BASE_URL、HTTPS_PROXY 等,含 settings.json.bak 等备份文件里的旧凭据残留
  6. 封禁痕迹(banTrace):只读检测 Desktop 日志中的 organization_disabled / banned / deactivated 等记录

详细的清理范围与保护清单见 [SKILL.md](SKILL.md)。

备份策略(v0.2 新增)

本机的 `~/.claude-neverbanned-skills-backups/` 目录只是中转,两种收尾方式:

  • A. 备份到 U 盘:清理后把备份目录移动到 U 盘,核对无误后删除本机副本
  • B. 不备份:清理后直接删除备份目录,本机零残留(不可还原)

Agent skill 流程会在清理前让用户二选一;直接命令行使用时请手动处理备份目录。

网络环境检测(v0.2 新增)

node scripts/claude_neverbanned_skills.cjs netcheck

清理只解决"本机"残留,但新开 Claude 前还有网络层指纹要过关。`netcheck` 覆盖:

  • IP 质量/类型:hosting(机房)/proxy(被标记代理)/mobile 标记、ISP、AS 归属(ip-api → ipwho.is → ipapi.co 多源兜底)
  • DNS 归属地:系统解析器与 DoH 多路检测,判断 DNS 是否与出口同区(DNS 泄露)
  • WebRTC/UDP 泄露:真实 STUN 绑定请求(与浏览器 WebRTC 同机制),看 UDP 出口是否绕过代理
  • Cloudflare 挑战:claude.ai 直连是否被挑战 + cf trace 出口信息,并与常规出口交叉比对(多地区出口是强风控信号)
  • IPv6:是否启用、公网出口归属地是否与 IPv4 出口一致
  • 时区/语言对齐:系统时区、locale 与 IP 所在时区/国家的偏差

输出包含逐条"前置调整建议"(换住宅 IP、关 IPv6、改系统时区/语言、禁用 WebRTC 等)。agent 按此流程使用时:先给建议清单,用户认可后才代为执行系统配置修改(需管理员权限的逐条确认