Skip to content

v1.5.3

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 04:13

🚀 新增功能

  • GitHub 监控多 Token 池、五通道泄露检索与 WIH 凭据风险分级:新增 github_client.py(支持单/多行 GitHub PAT 池脱敏回显与合并保存,按 code_search/search/core 三桶独立节流并在 401/429 时自动切备)、github_channels.py(扩展 code/commit/issue/repo/gist 五通道组合检索)、github_secret_scanner.py(结合 WIH 规则与熵值校验实现 high/medium/low 风险分级及 push_min_risk 分级告警)与 github_templates.py(creds/cloud_aksk/db_dsn/sensitive_files/api_internal 五类渗透泄露意图模板);新增 GET /api/github_result/intent_templates/ 与 GET /api/github_result/raw_content/(上限 384 KB 及最近 5 条 Commit 按需拉取),并在 GithubManage.vue、SystemSettings.vue 与中/英/俄三语字典同步升级研判界面与多 Token 配置。
  • Docker Hub 与阿里云 ACR 双镜像源分发及受控在线切源:将原 aliyun-docker.yml 重构为 .github/workflows/release-images.yml(配套 plan_release.py、install_skopeo.sh、push_oci_fanout.sh),采用「一次构建本地 OCI → skopeo v2s2 退避重试扇出推送与远程 Digest 校验」架构同步交付至阿里云 ACR(国内默认)与 Docker Hub(海外 docker.io/owl234),具备并发锁、分服务缓存隔离、arl-web 推送前容器冒烟门禁、预发布标签不覆盖 :latest 保护及双语 Release Notes 自动提取;参数化 docker-compose.prod.yml(保留持久化卷与默认 ACR 行为),start-prod.sh 新增 --source / --tag 持久化写入 .env、ARL_SKIP_PULL 及海外裸机跳过国内加速源;SystemUpdatePanel.vue 与 updater/updater.py 新增镜像源可视化及受控官方双源切换(GET /update_stream/source_status、POST /update_stream/set_source)。
  • 零零信安(0.zone)被动子域名信息收集插件与连通性探活:新增 backend/app/services/dns_query_plugin/zerozone.py,支持 domain(url=$.<target>)与可选 site(url==<target>,提取 url/redirect_url/hostname/ssl_hostname 及 TLS 证书 CN/SAN)双源融合采集与点分边界严格过滤,统一经 intel 代理域发起请求;新增 POST /api/system_config/test_zerozone 轻量探活与今日配额查询接口、config.py 非破坏性插件默认合并(merge_query_plugin_config)及 arlupdate.py 一次性幂等迁移(migration_query_plugin_zerozone),并在 SystemSettings.vue 同步提供配置与配额探测入口。

🛠️ 性能与重构

  • GitHub 威胁情报三雷达重构与泄露弹窗交互精简:重构 github_threat_monitor.py 与 github_threat.py——CVE 雷达新增跨年检索、多 PoC 聚合(poc_repos)、反假 PoC 质量评分、GHSA/CVE Services 富化(severity/cvss_score/affected_products)、本地 Nuclei/指纹资产联动与可配推送过滤;武器库监控支持 Release → Tag → Commit 三级回退、ETag 304 零配额缓存与单工具 include_prerelease 开关;研究员监控新增 repo/star/gist 基线差集与 ETag 304 追踪;arlupdate.py 补齐 github_result、github_monitor_result、github_hash、github_cve_history 与 github_hackers_history 复合索引;GithubManage.vue 精简扫描与策略弹窗交互(移除资产组下拉并修正 Cron 预设)。
  • 在线更新并发保护、两阶段暂存拉取与版本检测加固:将 updater/updater.py 升级为 ThreadingHTTPServer,引入并发更新锁(HTTP 409 防止在途日志被覆盖)、锁定版本标签拦截(pinned_tag)、两阶段暂存拉取(缓解拉取失败导致的容器状态撕裂)与 Basic Auth 跨升级保留;system_config_service.py 修正预发布版与补丁版本号比较并补齐 GitHub Releases 302 重定向回退以缓解匿名 API 限流;SystemUpdatePanel.vue 增加跨国高延迟轮询并发防重入保护。

🐛 问题修复与加固

  • Ubuntu 26.04 初次部署 timeout SIGTTOU 挂起修复与 apt/Compose 兼容加固:在 start-prod.sh 的 run_with_spinner 与 run_cmd_with_timeout 中强制 </dev/null 切断交互式 stdin,探测并优先启用 --foreground 与 -k 5,规避 Ubuntu 26.04 rust-coreutils timeout 导致的 apt-get 进程组挂起死锁(兼容 GNU coreutils 与 BusyBox);为 apt-get 统一注入 DEBIAN_FRONTEND=noninteractive、NEEDRESTART_SUSPEND=1、DPkg::Lock::Timeout=60 与 confdef/confold 非交互参数,在 Compose 安装链路探测兼容 docker-compose-plugin 与 docker-compose-v2;补齐 Docker Hub 429 快速识别与 120s 严格后端就绪探针。
  • 仪表盘漏洞严重级别跳转与资产搜索 KeepAlive 深链联动修复:抽离 frontend/src/utils/assetFilters.js 的 parseAssetSearchDeepLink() 解析外部深链 query(兼容 npoc_service → service 别名与类型化筛选值,普通切页保留 KeepAlive 缓存态);修复 Dashboard.vue 总资产/今日新发现卡片与漏洞严重级别环形图扇区及图例点击跳转,并加固 AssetSearch.vue 在 KeepAlive 激活与路由变更下的深链筛选同步。
  • GitHub 检索语法校验、变更感知与插件布尔配置修正:加固 githubSearch.py 引号外 REST /search/code 语法校验(放行双引号字面量与 org:/repo:/user: + filename:/path:/extension: 作用域文件查询),支持 size 分片、前置噪声剪枝、基于 blob_sha 的同文件内容变更重提(content_updated: true)、周期策略防重入拦截及 error_msg/warning_msg 透出;修复 dns_query.py 将显式 False 布尔配置项误判为未配置的问题。

🛡️ 安全与配置

  • 前端网关 Nginx 升级至 1.30.8 并保留 Debian Bookworm 运行环境:frontend/Dockerfile.prod 保留旧内核兼容的 debian:bookworm-slim(glibc)运行环境,经官方签名源安装并固定 nginx=1.30.8-1~bookworm 及配套动态模块,复用官方容器入口脚本与 STOPSIGNAL SIGQUIT(PR #100)。
  • 凭据脱敏、受控切源边界、双语文档与自动化回归验证:GET /api/system_config/general 对多行 github_token 池脱敏回显,zerozone 探活与异常日志对 API Key 做脱敏处理;updater/updater.py 仅允许 aliyun/dockerhub 白名单切源并拒绝覆盖 .env 自定义私有仓;同步更新中英文 README*.md、docs/QUICKSTART*.md 与 docs/API_GUIDE*.md,并新增双仓交付、Ubuntu 防挂起、零零信安插件、GitHub 监控及仪表盘深链前后端回归测试。

🚀 New Features

  • GitHub monitoring multi-token pool, 5-channel leak discovery, and WIH-aligned secret scoring: added github_client.py (supporting single/multi-line GitHub PAT pooling with masked readback/merge, independent code_search/search/core bucket pacing, and automatic 401/429 failover), github_channels.py (expanding leak discovery across code, commit, issue, repo, and gist), github_secret_scanner.py (combining WIH rules and entropy checks for high/medium/low risk scoring and push_min_risk alert filtering), and github_templates.py (five built-in pentest leak intent templates: creds, cloud_aksk, db_dsn, sensitive_files, api_internal); added GET /api/github_result/intent_templates/ and GET /api/github_result/raw_content/ (on-demand full source up to 384 KB plus up to 5 recent commits), alongside upgraded triage views, multi-token configuration, and zh/en/ru locales across GithubManage.vue and SystemSettings.vue.
  • Dual-registry delivery (Aliyun ACR + Docker Hub) and controlled online registry switching: replaced aliyun-docker.yml with .github/workflows/release-images.yml (backed by plan_release.py, install_skopeo.sh, and push_oci_fanout.sh) using a build-once local OCI layout and decoupled skopeo v2s2 fan-out push with backoff retries and remote digest verification to Aliyun ACR (China mainland default) and Docker Hub (docker.io/owl234, global), featuring concurrency locks, per-service cache scopes, a pre-push arl-web container smoke gate, prerelease :latest tag protection, and bilingual Release Notes extraction; parameterized docker-compose.prod.yml (preserving persistent volumes and ACR defaults), extended start-prod.sh with --source/--tag .env persistence, ARL_SKIP_PULL, and overseas bare-metal mirror handling; added registry visibility and controlled official source switching (GET /update_stream/source_status, POST /update_stream/set_source) in SystemUpdatePanel.vue and updater/updater.py.
  • ZeroZone (0.zone) passive subdomain query plugin and connectivity probe: added backend/app/services/dns_query_plugin/zerozone.py combining the primary domain module (url=$.<target>) and optional site module (url==<target>, extracting url, redirect_url, hostname, ssl_hostname, and TLS certificate CN/SANs) under strict dot-boundary filtering routed through the intel proxy domain; added POST /api/system_config/test_zerozone for lightweight connectivity and daily quota probing, non-destructive default merging (merge_query_plugin_config) in config.py, one-time sentinel-guarded migration (migration_query_plugin_zerozone) in arlupdate.py, and configuration/probe controls in SystemSettings.vue.

🛠️ Performance & Refactoring

  • GitHub threat radar overhaul and scan/policy modal simplification: refactored github_threat_monitor.py and github_threat.py—CVE radar gained cross-year discovery, multi-PoC aggregation (poc_repos), anti-fake-PoC quality scoring, GHSA/CVE Services enrichment (severity/cvss_score/affected_products), local Nuclei/fingerprint matching, and configurable alert filters; security tool tracking added 3-tier Release → Tag → Commit fallback, ETag 304 zero-quota caching, and per-tool include_prerelease toggles; researcher tracking added baseline-diff repo/star/gist monitoring with ETag 304; added compound indexes for github_result, github_monitor_result, github_hash, github_cve_history, and github_hackers_history in arlupdate.py; streamlined scan/policy modals in GithubManage.vue (removing the asset-scope dropdown and fixing cron presets).
  • Online updater concurrency guards, two-phase staging pull, and version-check hardening: upgraded updater/updater.py to ThreadingHTTPServer with concurrency locking (HTTP 409 protecting active logs), pinned-tag guards (pinned_tag), two-phase staging pulls (mitigating partial container upgrades on pull errors), and Basic Auth preservation across updates; fixed prerelease vs. patch version comparison and added GitHub Releases 302 redirect fallback in system_config_service.py to mitigate anonymous API rate limits; added non-overlapping log polling guards for high-latency links in SystemUpdatePanel.vue.

🐛 Bug Fixes & Hardening

  • Ubuntu 26.04 initial-deploy timeout SIGTTOU hang fix and apt/Compose compatibility: detached interactive stdin (</dev/null) in run_with_spinner and run_cmd_with_timeout in start-prod.sh and probed --foreground with -k 5 to avoid apt-get process-group SIGTTOU deadlocks under Ubuntu 26.04 rust-coreutils timeout (retaining GNU coreutils and BusyBox compatibility); hardened apt-get calls with DEBIAN_FRONTEND=noninteractive, NEEDRESTART_SUSPEND=1, DPkg::Lock::Timeout=60, and confdef/confold options, added docker-compose-plugin / docker-compose-v2 probing and fallback, and added Docker Hub 429 fast detection with strict 120s backend readiness checks.
  • Dashboard severity drill-down and AssetSearch KeepAlive deep-link synchronization: extracted parseAssetSearchDeepLink() in frontend/src/utils/assetFilters.js to parse inbound deep-link queries (normalizing legacy npoc_service → service aliases and typed filters while preserving KeepAlive state on plain navigation); fixed Dashboard.vue asset summary cards and vulnerability severity chart sector/legend click navigation, and aligned AssetSearch.vue deep-link filter synchronization across KeepAlive reactivation and route query transitions.
  • GitHub query validation, file-change tracking, and boolean plugin option fix: hardened unquoted REST /search/code syntax validation in githubSearch.py (permitting quoted literals and scoped file-target combinations such as org:/repo:/user: with filename:/path:/extension:), added size sharding, pre-fetch ignored-repo/noise pruning, blob_sha content-change re-surfacing (content_updated: true), recurring scheduler overlap rejection, and error_msg/warning_msg propagation; fixed dns_query.py treating explicit False boolean plugin options as unconfigured.

🛡️ Security & Configuration

  • Frontend Nginx gateway upgraded to 1.30.8 on Debian Bookworm: updated frontend/Dockerfile.prod to retain the debian:bookworm-slim (glibc) runtime for older Linux kernels while installing pinned nginx=1.30.8-1~bookworm and dynamic modules from the signed official Nginx repository alongside upstream entrypoints and STOPSIGNAL SIGQUIT (PR #100).
  • Credential masking, controlled registry switching, bilingual documentation, and regression suites: masked multi-line github_token pools in GET /api/system_config/general and masked zerozone API keys in probe/error logs; restricted updater/updater.py source switching to the aliyun/dockerhub allowlist while rejecting overwrites of custom .env private registries; synchronized bilingual README*.md, docs/QUICKSTART*.md, and docs/API_GUIDE*.md, and added backend/frontend regression suites for dual-registry delivery, Ubuntu anti-freeze hardening, ZeroZone, GitHub monitoring, and dashboard deep-linking.

What's Changed

  • fix(frontend): upgrade Nginx to 1.30.8 on Debian Bookworm by @jikdarren in #100

Full Changelog: v1.5.2...v1.5.3