Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

moo-sql

Latest version: vgit:912e3fbce2f9815ae9080aff852a9a2ebaa9336b

Overview

Last scanned
19 Nov 2026
Agent skill Publisher: sailuosi
1 Stars
0 Forks
1 Versions
C# Repo language

Scan summary

moo-sql was last scanned on 19 Nov 2026 at commit 912e3fbc. Risk score 1 of 100 (low). No malicious behavior was detected.

  • Releases: Single version.
  • Findings: 1 rule fired in commit 912e3fbc (2 instances: 2 low). The score describes this commit only.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
912e3fbc 1 rule fired

Rules fired in 912e3fbc: 1

Findings

2 Low

Findings for commit 912e3fbc. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Skill mentions tunnel, paste or webhook services

The skill's text or scripts mention a tunneling service such as ngrok or trycloudflare, a Discord webhook, a raw paste link or a public IP address. Legitimate tools reference these too, so this is context for review rather than evidence of harm.

LOW
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

The score describes 912e3fbc; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

mooSQL 数据库访问层

当前版本: 8.1.2.2(2026-7)

项目概述

mooSQL 是自研的数据库访问层代码库,特点:

  • 纯粹性:不依赖 Entity Framework、Dapper 等第三方 ORM
  • 高可用:主从复制、连接池、事务管理
  • 灵活:SQL 构建、LINQ 查询、仓储模式多种方式
  • 跨平台:.NET Framework 4.5.1/4.6.2,.NET 6.0/8.0/10.0
支持的数据库

MySQL Family(MySQL / MariaDB / TiDB / OceanBase;PolarDB for MySQL 复用 MySQL)、PostgreSQL Family(PostgreSQL / CrateDB / openGauss / GaussDB)、以及 SQL Server、Oracle、达梦、金仓、ClickHouse、DuckDB、Taos、SonnetDB(net10)、GBase8a、SQLite、Oscar 等独立方言。完整矩阵见 doc/design/features/方言/数据库支持清单.md。

项目结构
mooSQL2024/
├── pure/src/          # 核心模块
│   ├── ado/           # ADO.NET 核心层
│   ├── adoext/        # 扩展层(仓储、SQLClip)
│   ├── linq/          # Fast LINQ(useBus 特色路径)
│   ├── auth/          # 认证授权
│   ├── config/        # 配置管理
│   └── excel/         # Excel 支持
├── ext/               # 扩展功能
│   └── src/linq/      # Ext LINQ(标准 Queryable,对标 EF)
└── ExcelReader/       # Excel 读取器

分层架构

应用层: Repository / LINQ / SQLBuilder / UnitOfWork
  ↓
AOP 层: MooClient / DBClientFactory / Events / Cache
  ↓
ADO 核心层: DBInstance / DBExecutor / Dialect / SQLBuilder
  ↓
驱动层: ADO.NET (SqlConnection / MySqlConnection / ...)

设计理念

Client 中心
  • 运行时能力(物化器、写侧 Accessor、EntityInfo 工厂等)挂在 MooClient 实例上解析,不以进程静态查找表作为 Resolve 路径。
  • [GenerateMaterializer](或业务侧按 [SooTable] 自建 SG)生成读侧物化器、写侧 IEntityTypeAccessor(ReadValue/WriteValue/IsNull)与可选 Xxx_EntityMeta.Create;须 RegisterGeneratedMaterializers() / RegisterGeneratedAccessors() 装入当前 Client(含 RegisterEntityFactory)。
  • 有则自动用:Client 已注册物化器时读侧直接使用,不依赖 useAotMode/EnableAot;写侧 Accessor 同理。已注册 EntityInfo 工厂时首次 getEntityInfo 跳过特性反射。EnableAot 仅保留未装入 Client 时的静态引导表/反射回退。
  • 写路径经 EntityColumn.GetEntityValue / SetEntityValue / IsEntityValueNull(需传入 Client;门面名不变,内部走 Accessor 的 Read/Write)。
SQLBuilder
  • 贴近 SQL 的语法,方法小写开头(select, from, where, insert)
  • toXxx: 输出 SQLCmd
  • doXxx: 执行修改,返回影响行数
  • queryXxx: 执行查询,返回 DataTable/泛型/标量
  • 分页(v8.1.2.2+):setPage(size, num) 或 skipTake(skip, take);top(n) 内部等价 skipTake(0, n)
  • 条件复用(v8.1.2.2+):record() → 链式条件 → stop() 得 SQLApart,再 useApart(seg) 合并
扩展方法
  • SQLBuilder 本体只做 SQL 字符串构建
  • MooSQLBuilderExtensions 提供实体查询、集成其他功能

选择使用方式

场景 推荐
简单 CRUD Repository
列表 / 多表只读宽行(查询实体) DBTableType.Select + SooJoin;见 doc/docs/SQL/high/query-entity.md
复杂查询 SQLBuilder 或 SQLClip
批量操作 UnitOfWork + Repository
动态 SQL SQLBuilder 链式构建
复用 where 片段 SQLBuilder record() / useApart()
类型安全 SQLClip Lambda 表达式
mooSQL 特色 LINQ(Set/DoUpdate/ Bus Join) useBus(Fast LINQ)
EF 式标准 Queryable / Includes / Merge useQueryable(Ext LINQ,ext/src/linq)
按月/按日分表、跨分片查询 useShard / configureShard + 仓储 QueryRange
建表后独立补注释 DDLBuilder.doAddTableCaption / buildCreateTableCaption

核心组件位置

组件 路径
SQLBuilder pure/src/ado/builder/SQLBuilder.cs
SQLClip pure/src/adoext/clip/SQLClip.cs
SooRepository pure/src/adoext/repository/SooRepository.cs
SooUnitOfWork pure/src/adoext/repository/SooUnitOfWork.cs
DBInstance pure/src/ado/data/instance/DBInstance.cs
Dialect pure/src/ado/data/dialect/
MooClient pure/src/aop/MooClient.cs

快速入口

var db = DBInsCash.Get(0);  // 获取数据库实例

var builder = db.useSQL();      // SQLBuilder
var clip = db.useClip();        // SQLClip
var repo = db.useRepo<User>();  // Repository
var uow = db.useWork();         // UnitOfWork
var bus = db.useDbBus<User>();  // Fast LINQ(特色,useBus 同路径)
// Ext 标准 Queryable: db.useQueryable<User>() 或 db.AsQueryable<User>()
Ext LINQ vs Fast LINQ(v8.1.2.2+)
路径 入口 定位
Fast LINQ useBus / useDbBus<T> mooSQL 特色:Set/DoUpdate/Bus Join 等
Ext LINQ useQueryable<T> / AsQueryable<T> 标准 IQueryable,对标 EF;编译层已与 Fast 双访问器对齐

二者并行,Ext 不替代 Fast。

分表(v8.1.2.2+)
client.useShard<OrderLog>(o => $"Order_{o.CreateTime:yyyyMM}");
client.configureShard<OrderLog>(c => c.Mode = TableShardMode.Month);
repo.ForShard(DateTime.Now).Insert(entity);
repo.QueryRange(from, to, q => q.where(x => x.Status == 1));

相关 Skills

  • moo-sql-sqlbuilder: SQLBuilder 链式构建与 API
  • moo-sql-sqlclip: SQLClip Lambda 表达式查询
  • moo-sql-repository: Repository 与 UnitOfWork
  • moo-sql-troubleshooting: 问题排查与最佳实践

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • GitHub sailuosi/mooSQL/moo-sql

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229