godot-builder

Warn

Audited by Socket on Jul 23, 2026

13 alerts found:

Anomalyx10Securityx3
AnomalyLOW
scripts/load_sprite.py

The code is primarily a powerful asset-modification/tampering tool: it dynamically generates and executes GDScript based on unvalidated CLI inputs and then overwrites the specified Godot scene resource with a repacked version after swapping a Sprite2D texture. While there is no visible network/credential-stealing behavior in this fragment, the combination of (1) non-sandboxed execution of generated code, (2) unescaped interpolation of user-controlled strings into the generated script, and (3) explicit ResourceSaver.save back to an attacker-influenced path makes this a significant supply-chain integrity risk (project sabotage or malicious asset replacement) rather than overt stealth malware. Additional certainty would require inspecting the GodotBase implementation and how args/project/res paths are constrained/normalized.

Confidence: 62%Severity: 60%
AnomalyLOW
scripts/collision_generator.py

This module is primarily a build/generation utility, but it has a meaningful security risk due to dynamic generation and execution of interpreter code (GDScript) using untrusted CLI inputs embedded without escaping/validation. In particular, args.mesh and args.out are interpolated directly into string literals in the generated script, enabling potential GDScript injection, and args.out controls where ResourceSaver.save writes the output. Import-path manipulation via sys.path also increases the impact of any compromised or unexpected base.py/GodotBase implementation. No overt malware behaviors (network exfiltration, credential theft, reverse shells) are evident in the shown fragment, but it should be treated as security-relevant when inputs or the runtime environment are not strictly trusted.

Confidence: 62%Severity: 58%
AnomalyLOW
scripts/gltf_processor.py

No clear indicators of overt malware (exfiltration/credential theft/backdoor behavior) are visible in this snippet. However, the tool dynamically generates and executes a Godot GDScript using untrusted CLI inputs embedded directly into executable source code, creating a plausible GDScript injection risk if inputs contain quote/newline characters. Additionally, it triggers Godot to read an attacker-controlled asset path and write to an attacker-controlled output path via ResourceSaver.save, which can become a file read/write/path traversal risk depending on validation and runtime permissions. Overall, this module should be treated as moderately high risk primarily due to dynamic code execution and unvalidated path embedding; further review of GodotBase and input handling is needed.

Confidence: 55%Severity: 62%
SecurityMEDIUM
scripts/add_node.py

This module is primarily a Godot automation wrapper, but it introduces a strong security risk: it embeds attacker-controlled CLI arguments directly into dynamically generated GDScript that is immediately executed by Godot, and it loads/overwrites a caller-provided resource path. The most concerning vector is args.type being inserted as a raw executable expression ({args.type}.new()), enabling code injection within the Godot runtime context. While there are no explicit signs of classic malware (network exfiltration, credential theft) in this snippet, the untrusted-input→code-execution→resource tampering chain makes this security-sensitive and should require strict validation/allowlisting (paths, node types) and robust escaping/safe templating.

Confidence: 66%Severity: 72%
AnomalyLOW
scripts/create_scene.py

No explicit malware behavior (e.g., exfiltration, backdoor persistence, credential theft) is evident in this Python fragment. However, the module creates and executes dynamically generated GDScript using unvalidated CLI inputs embedded directly into executable code, including an engine-side resource write to a user-provided path. This design creates a meaningful code-injection and unintended-write risk if an attacker can influence CLI arguments or the project/module environment. Additionally, sys.path manipulation increases the importance of local module integrity for importing GodotBase. Overall: treat as a risky code-generation/execution utility requiring input validation/escaping and strong control of who can supply project/res/type.

Confidence: 66%Severity: 60%
AnomalyLOW
scripts/save_scene.py

No direct evidence of classic malware (exfiltration/backdoor/cryptomining) exists in this fragment. However, the tool dynamically generates and executes Godot GDScript using unvalidated user-controlled input (args.res embedded directly into executable code) and performs a user-influenced resource save/load that can overwrite project resources. This creates a meaningful injection/integrity risk that should be mitigated via strict input validation/escaping, safe templating, and permission/path restrictions around both the executed script and the target resource path.

Confidence: 60%Severity: 67%
SecurityMEDIUM
scripts/config_compiler.py

This module is security-sensitive because it dynamically generates executable Godot (GDScript) code using unescaped/unvalidated command-line inputs (notably args.json and args.out) and then executes it. That combination creates a high risk of script/code injection and attacker-controlled filesystem writes via ConfigFile.save. While overt malware behaviors (network exfiltration, credential theft, persistence) are not evident in the visible fragment, the execution of attacker-influenced code is itself a strong security concern. Full impact cannot be precisely determined without the unseen GodotBase implementation (write_worker/run/normalize).

Confidence: 60%Severity: 70%
AnomalyLOW
scripts/tilemap_generator.py

This module is a code-execution wrapper that dynamically generates and runs a Godot script. The most significant issue is that args.json (untrusted CLI input) is directly interpolated into generated executable script source without escaping/validation, creating an injection/influenced-execution risk in the Godot runtime context. Additionally, stdout/stderr are printed, potentially exposing attacker-controlled content, and args.project influences where the script is written and which project is executed. No explicit network exfiltration, credential theft, or persistence is evident in the provided fragment, but the overall danger depends heavily on the not-shown GodotBase implementation and how it handles paths and script execution.

Confidence: 56%Severity: 57%
SecurityMEDIUM
scripts/navmesh_baker.py

No explicit network exfiltration, credential theft, or persistence is visible in the fragment. The primary security issue is the untrusted-to-executable-code pipeline: args.res is interpolated into GDScript text without escaping and the resulting script is written and executed by Godot. Additionally, runtime sys.path manipulation could enable module shadowing of the imported GodotBase helper. Treat this as a significant code-execution/injection risk that warrants review of escaping/validation and the implementations of gb.write_worker and gb.run.

Confidence: 62%Severity: 72%
AnomalyLOW
scripts/export_mesh_library.py

This fragment is a tooling-style helper that executes a dynamically generated Godot script. It does not show overt malicious capabilities (no network/exfiltration or persistence in the snippet), but it creates a meaningful security risk: args.out from the CLI is embedded verbatim into an executed script payload, and that payload is run by Godot. If inputs are attacker-controlled and/or GodotBase does not properly escape/validate paths, this can enable script injection within the Godot runtime and/or unintended resource writes. sys.path manipulation is a secondary concern for import-hijacking in compromised/misconfigured environments. Additional file and runtime safety depend on unseen GodotBase.write_worker/normalize/run implementations.

Confidence: 62%Severity: 60%
AnomalyLOW
scripts/csg_optimizer.py

No direct evidence of classic malware (exfiltration, persistence, credentials, reverse shells) is present in the shown fragment. However, the tool dynamically generates GDScript and immediately executes it via Godot, embedding the unvalidated `res` argument directly into a `load("...")` call inside the executed script. This creates a credible injection-to-execution path (high impact, depending on input control and how `GodotBase.write_worker/run` handle paths). Additionally, runtime `sys.path` modification before importing `GodotBase` increases supply-chain/path-tampering risk in compromised environments. Recommend strict allowlisting/escaping for `res`, and review `GodotBase.write_worker/run` for safe file/path handling and whether user input can escape the intended string context.

Confidence: 60%Severity: 62%
AnomalyLOW
scripts/get_uid.py

The fragment is a dynamic “generate and execute” wrapper around Godot. Its primary risk is an untrusted-input-to-code-execution path: args.res is interpolated directly into generated GDScript source without escaping/validation, then executed by Godot via gb.run(-s ...). While no direct exfiltration/credential theft is evident here, this pattern can enable arbitrary in-engine script behavior if inputs are controllable and the rest of the pipeline (write_worker/run and Godot project) permits harmful actions. Review GodotBase.write_worker/run and enforce strict validation/escaping of args.res (or avoid code generation entirely).

Confidence: 60%Severity: 65%
AnomalyLOW
scripts/stop_project.py

The provided fragment is a cross-platform CLI process-killer that takes an untrusted PID and force-terminates it (SIGKILL on non-Windows; `taskkill /F` on Windows). No overt malware indicators such as networking, credential theft, persistence, or obfuscation are present in the snippet. The main security concerns are operational/destructive impact from arbitrary PID termination and a runtime `sys.path` modification that could influence which local module is imported. Confidence is limited by the apparent truncation of the entry-point invocation and the unseen behavior of the referenced local `base` module.

Confidence: 55%Severity: 50%
Audit Metadata
Analyzed At
Jul 23, 2026, 06:20 AM
Package URL
pkg:socket/skills-sh/thedivergentai%2Fgd-agentic-skills%2Fgodot-builder%2F@fa09c507b8bc22677b7f76d87135f58ed0814a00c596121d3effdda8b48784c4
Security Audit — socket — godot-builder