indicaindependent/humandefender

GitHub: indicaindependent/humandefender

基于五维行为信号的 Reddit 版主自动化工具,通过 Ghost Score 实时检测机器人账号与协同虚假行为。

Stars: 0 | Forks: 0

HumanDefender Logo # HumanDefender **5 信号行为 AI,对每条评论进行 Ghost Score 评估——全自动运行。** [![版本](https://img.shields.io/badge/version-0.0.4-red?style=flat-square)](https://developers.reddit.com/apps/humandefender) [![平台](https://img.shields.io/badge/platform-Devvit-FF4500?style=flat-square&logo=reddit)](https://developers.reddit.com) [![黑客松](https://img.shields.io/badge/Devpost-Reddit%20Mod%20Tools%202026-003E54?style=flat-square)](https://redditmodtools.devpost.com) [![许可证](https://img.shields.io/badge/license-MIT-green?style=flat-square)](LICENSE) [![GitHub](https://img.shields.io/badge/GitHub-indicaindependent-181717?style=flat-square&logo=github)](https://github.com/indicaindependent/humandefender) *由版主决定。HumanDefender 只负责提供信息。*
## 问题背景 Reddit 的版主审核队列已不堪重负。机器人网络和协同虚假行为 (CIB) 活动以机器速度运作——批量注册账号、刷 karma、并在人类版主作出反应之前,用伪造 grassroots 的内容淹没各个 subreddit。 HumanDefender 能在他们的**第一条评论**就将其捕获。 ## 工作原理 每条评论都会触发使用 **5 个行为信号**进行的自动分析,并生成一个 **Ghost Score (0–100)**。得分较高的账号会自动收到版主备注。Ghost 级别 (81+) 的账号会在零版主干预的情况下自动被报告至版主队列。 ### 5 大信号 | 信号 | 分值 | 捕获目标 | |--------|--------|-----------------| | 🔴 Karma 比例 | 25 分 | 95%+ 仅为评论 karma —— 机器人的特征指纹 | | 🟠 速度指数 | 20 分 | 如节拍器般的发帖节奏 —— 机器人不需要睡眠 | | 🔴 语言熵 | 25 分 | 模板化语言与低词汇多样性 | | 🟠 跨版块分散度 | 15 pts | 对无关 subreddit 进行地毯式轰炸 —— 伪造 grassroots 活动的标志 | | 🔴 纯回复标记 | 15 分 | 从不发起帖子 —— 纯粹的 Amplification 行为 | ### Ghost Score 判定结果 | 分数 | 判定 | 自动操作 | |-------|---------|------------------| | 0–30 | ✅ CLEAN (干净) | 无操作 | | 31–60 | ⚠️ SUSPICIOUS (可疑) | 已记录 | | 61–80 | 🤖 LIKELY BOT (疑似机器人) | 添加版主备注 | | 81–100 | 👻 GHOST (幽灵) | 版主备注 + 自动报告至队列 | ## 截图
Ghost Score Card Detection Log
Ghost Score card — 89/100, auto-reported Detection log — last flagged accounts
Smoke Tests Stats Dashboard
Smoke test suite — 10/10 passing Stats dashboard — full detection breakdown
## 架构 ``` Reddit Comment └─→ Devvit CommentSubmit Trigger ├─→ Local signals (Karma Ratio + Velocity + Reply-Only) └─→ CF Edge Worker (Linguistic Entropy + Cross-Sub Scatter) └─→ Composite Ghost Score ├─→ Mod Note (61+) ├─→ Auto-Report (81+) └─→ Detection Log (all) ``` **Devvit App (TypeScript)** - `CommentSubmit` 事件触发器 —— 零配置,在每条评论时触发 - 基于 Redis 的滚动检测日志(每个 subreddit 500 条记录) - 完整的结构化日志:级别、事件类型、耗时、信号明细 - 可通过版主菜单访问的包含 10 项测试的冒烟测试套件 **Cloudflare Edge Worker** (`ghosthunter.osintnet.uk`) - 处理计算密集型信号:语言熵 + 跨版块分散度 - 对 token 分布进行 Shannon 熵分析 - 跨 subreddit 突发窗口检测 - 低于 100ms 的全球响应时间,并支持优雅降级 ## 版主工具菜单 通过 subreddit 的版主菜单进行访问: | 菜单项 | 功能说明 | |-----------|-------------| | 🔍 评估此账号 | 手动评估任何评论者 | | 📋 检测日志 | 最近 500 个被标记的账号 | | 📊 统计信息 | 总计 / Ghost / Bot / Suspicious / Clean 计数 | | 🔴 错误日志 | 完整的可观测性 —— 涵盖每一个事件 | | 🧪 运行冒烟测试 | 10 项自动化测试以验证整个系统 | ## 安装 1. 访问 [developers.reddit.com/apps/humandefender](https://developers.reddit.com/apps/humandefender) 2. 点击 **Install** 3. 选择您的 subreddit 4. 完成 —— HumanDefender 会立即开始评分,无需任何配置 ## 隐私与安全 - 仅读取公开可用的 Reddit 数据 - **绝不存储评论内容** —— 仅进行行为分析 - 无个人数据,无内容分类 - 始终由版主作出最终决定 —— 无自动封禁,无自动删除 ## 更新日志 ### v0.0.4 — 2026 年 5 月 9 日 - 添加了应用图标和门户描述 - 包含完整文档和截图的 README ### v0.0.3 — 2026 年 5 月 9 日 - 完成了 5 信号 Ghost Score 引擎 - Edge worker(语言熵 + 跨版块分散度) - 10 项测试的冒烟测试套件 - 统计信息仪表板 + 检测日志 + 错误日志 ### v0.0.2 — 2026 年 5 月 9 日 - CommentSubmit 触发器上线 - Karma 比例、速度指数、纯回复信号 - Ghost 级别的版主备注 + 自动报告 ### v0.0.1 — 2026 年 5 月 9 日 - 初始脚手架 ## 构建团队 **Indica Independent Media** / VPDLNY *Vulnerable Persons Defense League of New York* 我们为弱势群体和互联网安全构建开源信息工具。所有工具在使用端均完全免费。 🔗 [GitHub](https://github.com/indicaindependent) | [应用门户](https://developers.reddit.com/apps/humandefender) | [r/humandefender_dev](https://reddit.com/r/humandefender_dev)
标签:Devvit, GitHub, Mod Tool, Naabu, Reddit, 人工智能, 内容安全, 协同虚假行为, 反作弊, 发帖频率分析, 实时处理, 幽灵分数, 异常检测, 搜索引擎查询, 机器人检测, 水军识别, 用户模式Hook绕过, 社交媒体安全, 社区管理, 程序员工具, 网络健康, 自动化审核, 自动化攻击, 语言熵, 跨板块监控, 黑客松