nocobase-dsl-reconciler

Warn

Audited by Socket on Sep 14, 2026

10 alerts found:

Anomalyx7Securityx3
AnomalyLOW
src/deploy/collection-deployer.ts

The code is a database/schema provisioning utility. It contains a potentially dangerous intentional capability: arbitrary SQL from `def.triggers` is executed through `execSql`, so definitions must be treated as fully trusted or validated and restricted before use. The duplicated trigger loop is an operational anomaly and should be removed. No clear malware or supply-chain backdoor behavior is present in the fragment; the main risk is unsafe execution of untrusted configuration and unencoded URL parameters.

Confidence: 96%Severity: 58%
SecurityMEDIUM
templates/crm/acl.yaml

No malicious behavior or supply-chain malware is evident. This is an access-control configuration. It contains significant authorization risks: broad all-record visibility and modification, unrestricted deletion for support_manager, and unrestricted customer XLSX import for sales_representative. These may be intentional business permissions but should be reviewed under least-privilege requirements and validated against the platform's permission precedence rules.

Confidence: 98%Severity: 72%
AnomalyLOW
src/deploy/orphan-cleaner.ts

This is an administrative orphan-model cleanup utility. It contains a legitimate but potentially destructive deletion workflow: incomplete API responses, failed root discovery, pagination limits, or malformed hierarchy data could cause valid models to be deleted. No evidence of malware, credential theft, data exfiltration, obfuscation, command execution, or unauthorized network activity is present. Dry-run mode reduces risk but is not enforced by default.

Confidence: 98%Severity: 62%
AnomalyLOW
src/deploy/fillers/divider-filler.ts

No clear malicious or supply-chain attack behavior is present. The code implements model deployment and synchronization, but content_file introduces a path traversal/arbitrary local file read risk because resolved paths are not checked to remain within modDir. Those contents are then persisted through the notebook model API, creating a possible data-leak path when specifications are untrusted. Divider deletion should be authorized and limited to trusted deployment inputs.

Confidence: 97%Severity: 58%
SecurityMEDIUM
src/deploy/incremental.ts

The code implements legitimate Git-based incremental deployment logic and shows no direct malware, credential theft, persistence, or exfiltration behavior. However, interpolating lastSha into execSync shell command strings is a significant command-injection vulnerability if lastSha is attacker-controlled or otherwise untrusted. Validate it as a strict commit object format and preferably invoke Git without a shell using an argument array or an equivalent safe process API.

Confidence: 98%Severity: 78%
SecurityMEDIUM
scripts/copy-data.py

This appears intended to copy data from public source tables into matching *_copy tables, replacing target contents and verifying row counts. It does not show malware indicators such as network exfiltration, credential harvesting, process execution, persistence, or obfuscation. However, if corrected and executed, it is a high-impact administrative script because it truncates tables with CASCADE and disables constraint enforcement. The hardcoded fallback password and unescaped dynamically constructed SQL identifiers are additional security concerns. As supplied, syntax errors prevent normal execution.

Confidence: 98%Severity: 78%
AnomalyLOW
scripts/cleanup-orphan-templates.ts

This is an administrative cleanup script for identifying and deleting apparently unused NocoBase flow model templates and their target flow models. It does not show indicators of malware, credential theft, exfiltration, persistence, or obfuscation. The principal security concern is destructive behavior combined with incomplete reference analysis: the unused routeUids collection suggests route references are not accounted for, so legitimate templates could be deleted. Review and correct the reference logic, and require an explicit deletion flag or confirmation before production use.

Confidence: 98%Severity: 62%
AnomalyLOW
scripts/cleanup-copy.py

The fragment appears to be an administrative cleanup utility rather than malware. It intentionally authenticates to a configurable service and deletes resources matching copy-related names. Its destructive behavior is explicit and related to the stated cleanup purpose, but it lacks confirmation and may delete legitimate matching resources. Credentials and tokens are sent to NB_URL and a token is read from a predictable /tmp path; HTTPS and secure file permissions should be enforced. No clear malicious behavior or obfuscation is present.

Confidence: 97%Severity: 58%
AnomalyLOW
src/deploy/fillers/chart-filler.ts

No clear malware or supply-chain backdoor is evident. The code implements chart deployment and SQL verification, but it executes configuration-provided SQL and reads configuration-referenced files without explicit path traversal or absolute-path validation. These are material risks if chart configuration or module directories can be influenced by untrusted parties. The raw render content may also require downstream sanitization.

Confidence: 96%Severity: 57%
AnomalyLOW
src/deploy/fillers/event-flow-filler.ts

No direct evidence of malware or intentional data theft is present. The function implements a plausible deployment feature for loading event-flow scripts, but it has a path traversal risk if ef.file is untrusted and deliberately transfers arbitrary local JavaScript into an executable runjs sink. Restrict event-flow metadata to trusted package contents, resolve paths and verify they remain within modDir, and validate or review loaded scripts before registration.

Confidence: 96%Severity: 62%
Audit Metadata
Analyzed At
Sep 14, 2026, 06:53 PM
Package URL
pkg:socket/skills-sh/nocobase%2Fskills%2Fnocobase-dsl-reconciler%2F@f2f38b1ab71a7aab62e9870f38e23c5660b3ee00a5e7ab5c1ac998ada6cf17a3
Security Audit — socket — nocobase-dsl-reconciler