Skip to content
View xuange-hu's full-sized avatar

Block or report xuange-hu

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
xuange-hu/README.md

轩哥 / Nexus

CS student @ 武汉科技大学 · 汽车安全 CTF(UDS / CAN / V2X / ECU 固件)+ AI agent / 供应链安全工具链

I write zero-dependency, deterministic security tools — the kind you can drop into a scratch CI container with no network and no toolchain. Every finding carries the evidence (file:line, byte offset, packet number) instead of a vibe, because a scanner you cannot verify is a scanner you will switch off.

中文优先,代码注释与文档都是「能复核」优先;所有工具都在 Windows 主力机上实测过。


AI agent security(当前主线 · 2026 最大热点)

Repo What it is Why it exists
civet GitHub Actions 工作流审计器 · 36 规则 · 零依赖 zizmor 6.7k★ 是 Rust、actionlint 4.3k★ 是 Go;零依赖 Python 赛道空着
mcplock MCP 服务器能力锁文件 + 漂移检测 MCP 工具集会静默变化;官方 inspector 11k★ 但是 GUI,CI 里跑不了
skillvet Agent skill / MCP 配置的静态安全审查 确定性规则,不调 LLM;含 Trojan Source 检测 + SARIF
agent-scan JS/Node 版 agent 生态扫描器(MCP / Skills / AGENTS.md) 30+ 规则,零依赖

Supply chain & infrastructure

Repo What it is Why it exists
kubeguard Kubernetes 清单审计 · 37 规则 · 跨资源分析 kube-linter 3.5k★ 是 Go 且只看单对象;K8s 默认全通,风险在对象之间
layerlint Dockerfile 审计 · 唯一建模 stage→layer 的那个 hadolint 12.5k★ 只看指令清单,RUN rm -rf 删不掉前一层
docklint 容器构建审计 · 三遍扫描:Dockerfile + compose + .dockerignore · 38 规则 layerlint 看的是层叠上去的东西(RUN rm 删不掉前一层);docklint 看的是三个文件之间的缝隙:被 .dockerignore 排掉的 COPY、compose 用 user: root 撤销的降权、烤进 layer 又被挂载盖住的密钥。在 docker/awesome-compose 的 74 个文件上校准,因此删过自己的规则
pcaplens pcap / pcapng 解析 + CLI + MCP 不用 tshark;上下文预算一等公民,每条结论带报文号与字节偏移
sbomkit 供应链体检 · SBOM + SPDX 许可证表达式求解 + PR 门禁 diff 许可证是表达式不是字符串:(MIT OR GPL-3.0-only) 可以选 MIT,子串匹配的工具会误报
secretsweep 凭据泄露扫描 · 86 规则 · 占位符分级 · 基线门禁 · GitHub Action gitleaks 30k★ / trufflehog 28k★ 都是 Go,Python 侧 detect-secrets 带依赖;示例密钥不等于真泄露;Action 一行接入、不装任何依赖
tfguard Terraform / OpenTofu 审计 · 40 规则 · 自写 HCL2 解析器 · 凭据溯源 · 跨块关系 tfsec 7k★ / terrascan 5.2k★ 是 Go,checkov 9.1k★ 是 Python 但带一车依赖;零依赖赛道空着。password = var.db_password 的密钥其实在变量那一行
cronlint crontab 安全审计 · 35 规则 · 三遍扫描 · 逐行形状判定 · 零依赖 · SARIF + MCP crontab 配错不报错,只在错误的时间(或以错误的用户)跑:六字段有三种读法(cronie 前置秒 / Quartz 尾部年 / /etc/crontab user 列),DOM+DOW 同时限制是「或」不是「与」,--password= 在 ps 里全程可见。每条 finding 带字节偏移,cronlint demo 一次跑出 35/35 规则覆盖
hookvet git hooks 安全审计 · 22 规则 · 三遍扫描(脚本行 / hook 配置 / 文件间缝隙) · 零依赖 · SARIF + MCP git hook 是信任等级最高的代码:每次提交都跑、带着开发者自己的凭据、先于任何 review。gitleaks 找的是泄露的值,没人看 hook 代码本身——.git/hooks 里跑着一个没有任何 diff 审查过的副本、rev: main 随分支漂移、core.hooksPath 悄悄换掉所有 hook。每条 finding 带字节偏移,hookvet demo 一次跑出 22/22 规则覆盖

Linux host security

Repo What it is Why it exists
unitlint systemd 单元审计 · 44 规则 · drop-in 溯源 · 零依赖 · 读 rootfs / 容器层 systemctl cat 把基础文件和 drop-in 依次打印,从不打印结果;systemd-analyze security 评的是运行中的单元,不给是哪个文件设的。于是最常见的现实是:基础文件写着 ProtectSystem=strict,八个月后有人加了一个 99-debug.conf 把它设回 no,而所有 review 看的都还是基础文件。这里先做合并(搜索路径优先级、drop-in 文件名序、同名遮蔽、/etc 整体替换厂商单元),再审计结果,unitlint why 能指出「哪个文件的哪一行赢了」

| sudolint | sudoers 安全审计 · 41 规则 · 三遍扫描(行 / 别名 / last-match-wins) · 零依赖 · SARIF + MCP | sudoers 不是声明式白名单:NOPASSWD: PAGER_CMDS 看着无害,直到别名里装着 less(能起 root shell);NOPASSWD: a, b 标签级联到后面所有命令;同用户同主机的后一行规范静默覆盖前一行。这里展开每个 Cmnd_Alias 按展开体分类、计算每条命令实际生效的标签、再比对行与行的覆盖关系,sudolint demo 现场跑出 41/41 规则覆盖 |

| sshdguard | sshd_config 安全审计 · 45 规则 · 三遍扫描(行 / 组合 / Match 作用域) · 零依赖 · SARIF + MCP | sshd 与 sudoers 相反:首个值生效,追加在文件末尾的加固行是死文本(SHD019);Match 块会悄悄削弱主作用域的加固(SHD071/072);未知关键字让 sshd -t 直接失败、重启即掉线(SHD018)。45 条规则带证据字节偏移,sshdguard demo 45/45 覆盖 |

| firelint | 防火墙规则审计(iptables / nftables / ufw) · 20 规则 · 三遍扫描(规则行 / 链默认值 / 文件与协议族关系) · 零依赖 · SARIF + MCP | 防火墙的问题从来不在单条规则,而在规则之间:INPUT 默认策略 ACCEPT 等于没防火墙;无条件 -j DROP 之下的规则永远匹配不到;nftables 挂了 hook 却没写 policy 的链默认 ACCEPT;IPv4 锁死了、IPv6 一条规则都没有。三种方言(iptables-save / nft list ruleset / ufw status verbose)归一成同一个规则模型再推理,解析不了的行变成 FWL109 结论而不是被静默跳过,firelint demo 内嵌语料 20/20 规则全命中(42 findings) | | sysctlvet | 内核参数(sysctl)审计 · 31 规则 · 优先级引擎 · 零依赖 · SARIF + MCP | 加固最常见的死法是被后面的文件悄悄改回去:/usr/lib/sysctl.d 设了 randomize_va_space = 2,/etc/sysctl.conf 又设回 0——sysctl --system 静默应用、最后一个获胜,只看单个文件的审计照样报安全。sysctlvet 先还原真实加载顺序(usr/lib → usr/local/lib → run → etc/sysctl.d → /etc/sysctl.conf,同目录按文件名排序),只评判生效值:SYS301「加固被静默回退」是核心结论,另有 KASLR 击破三件套、core_pattern+SUID 转储链、net/ipv4/ 与 net.ipv4. 同 key 异写(SYS303);sysctlvet effective KEY 直接回答「哪一行赢了、谁死了」 |

| nginxvet | nginx 配置安全审计 · 37 规则 · 三遍扫描(指令 / server-location 关系 / include 跨文件) · 零依赖 · SARIF + MCP · gixy(8.6k★) 的开源替代 | nginx 的安全头最容易死在一个地方:add_header 从不继承——location 里只要出现任何一条 add_header,server 级设的 HSTS/CSP/X-Frame-Options 在该 location 全部失效。这是安全头缺失的头号原因,而单遍指令扫描(gixy)根本看不见。nginxvet 先展开 include、再算每个 location 的有效配置,nginxvet effective <host> 回答「这个 location 最终还剩哪些安全头」;NGV201 专抓这个陷阱,另有 server_tokens 回退、TLS 指令与 listen 不匹配等跨文件结论 |

Cloud identity security

Repo What it is Why it exists
iamlint AWS IAM 策略审计 · 49 规则 · 两遍扫描 · 自带 lab parliament 1.2k★ / cloudsploit 3.6k★ 都是单条 statement 视角;真正丢账号的那条结论活在两条 statement 之间(iam:CreateAccessKey + iam:AttachUserPolicy)。--bundle 跨文件合并成一个 principal

Transport & certificate security

Repo What it is Why it exists
tlslint TLS / X.509 审计 · 43 规则 · 自写 DER 解析器 · 本地实验室服务器 testssl.sh 9.3k★ 是 shell、sslyze 3.8k★ 要 cryptography + nassl、sslscan 2.6k★ 是 C;零依赖 Python 赛道空着。每条结论带字段与值;tlslint demo 不联网跑出 37/43 条规则
headervet HTTP 安全响应头审计 · 36 规则 · 三遍扫描 · 配置 + dump + live 三种输入 securityheaders.com 只给一个响应打分;真正出事的两种情况它都看不见——proxy_hide_header 把应用设的头剥了(HDV203)、nginx location 里第一个 add_header 让继承的安全头全部失效(HDV201)。nginx / Apache / Caddy / Express 全读,零依赖,SARIF + MCP

API contract security

Repo What it is Why it exists
specvet OpenAPI / Swagger 安全审查 · 36 规则 · 全部映射 OWASP API Top 10 2023 Spectral 3.2k★ / Redocly / vacuum 管的是风格;第二遍扫描看的是关系:某个 path 的 GET 有认证而 DELETE 没有

Mobile / Android

Repo What it is Why it exists
manifestvet Android 清单安全审计 · 40 规则 · 自写 AXML 解析器 · SARIF + 7 个 MCP 工具 MobSF 是一整套 Django 服务 + JADX、apkleaks 要 jadx;而编译后的清单里根本没有属性名(android:exported 就是 0x01010010),名字只能靠 resource map 反查,两种对齐都在野外存在,选错会把每个属性错标成邻居且不报错。这里用「池里的字符串」和「表里的名字」必须是同一个词来判定;源码 XML 与 APK 走同一套规则

输入层 / 解析层安全

Repo What it is Why it exists
redoslint ReDoS 审计 · 9 规则 · 自写正则解析器 · 字符集代数 · CLI + SARIF + 6 个 MCP 工具 regexploit 是手工 REPL、recheck 要 JVM/Node、rxxr2 已停更、npm 的 redos 只读 JS;零依赖 Python 扫描器赛道空着。形状匹配会同时报 (a+)+ 和线性的 (ab+)+,这里比的是字符集能不能重叠

Vehicle security(起点项目 · 1★)

Repo What it is
vehsec CAN · UDS · Seed-Key · V2X · DoIP · J1939 · DBC → CLI + TUI + 31 个 MCP 工具,5 个 Docker CTF Lab,零硬件可跑
awesome-vehicle-security 车载安全精选清单(在 vehsec 仓库内)

Other

Repo What it is
firmprint Cortex-M 固件识别,证据式(带偏移与字节)
winproof Windows 只读取证(浏览器劫持 / 启动项),PowerShell 零依赖
pickword-ime 打字学外语 Android 输入法(基于同文 Trime)
screen-translator 截图 → OCR → LLM 翻译
NexusAgent 轻量 agent 框架:memory tools + 可插拔 LLM 适配
vibe-debt AI 代码债评分 CLI
bilibili-video-crawler B 站爬虫(WBI 签名 + 限速重试)
devdeck 开发端口监管控制台:Web UI + CLI,实时看清端口被谁占用并一键释放(Node/TS,零运行时依赖)

设计信条

  1. 证据式输出 —— 每条结论必须给报文号 / 文件行号 / 原始字节。结论可复核,而不是被信任。
  2. 关系比单点更值钱 —— 单看一个对象看不出的风险,第三遍扫描才看得出来:安全组对外开放,且公网实例正落在它里面。
  3. 零依赖优先 —— 能在标准库里做的解析(DBC、X.509、pcap、YAML、HCL2、正则)就不引第三方包。
  4. 确定性 —— 能写规则就不调 LLM;同样的输入必须给同样的结论。
  5. CI 一等公民 —— 每个工具都有 --fail-on 退出码 + SARIF,进 GitHub Code Scanning。

Contact

  • GitHub: @xuange-hu
  • 方向:汽车安全 CTF(UDS/CAN/V2X/ECU 固件)、AI agent 安全、供应链安全、Android 移动端
  • 装备:Kali + 水星 MW150US V4.0(RTL8188CUS,可监听抓包、不支持注入)

最后更新:2026-11-20 · 37 repositories

Popular repositories Loading

  1. screen-translator screen-translator Public

    Windows screenshot translator: hotkey capture to OCR to LLM translation with overlay. Privacy-first, local OCR option.

    Python 1

  2. vehsec vehsec Public

    Vehicle security toolkit — CAN bus, UDS, J1939, ICSim bridge & Textual TUI for automotive security research.

    Python 1

  3. bilibili-video-crawler bilibili-video-crawler Public

    Bilibili crawler with WBI signing, rate-limit-aware retry, and SQLite persistence. Download videos & metadata.

    Python

  4. NexusAgent NexusAgent Public

    Lightweight agent framework: memory tools, pluggable LLM adapters, tool registry. Minimal dependencies, easy to extend.

    Python

  5. agent-scan agent-scan Public

    Zero-dependency MCP/Agent security scanner — 30+ rules for prompt injection, tool abuse & secret leakage. Drop-in CI gate.

    JavaScript

  6. vibe-debt vibe-debt Public

    AI code-debt scorer CLI — measures maintainability risk of AI-generated code across 12+ dimensions. Dogfood your own repo.

    TypeScript