oh-capi-xts-gen
Audited by Socket on Sep 16, 2026
2 alerts found:
Anomalyx2The code is a build-management utility, not evidence of malware. Its subprocess calls are directed at a local build-control script and do not use shell command concatenation. The primary security concern is insufficient validation of suite_name, which can enable path traversal when reading logs or status files and when deleting files. Broad cleanup of the shared /tmp directory and unsafe temporary-file handling add operational and multi-user risks. Review async_build.sh separately because it is the actual build execution component.
The code is a straightforward but destructive cleanup script. It shows no clear malicious behavior, data exfiltration, or backdoor functionality. Its main security risk is that BUILD.gn-derived suite paths and the user-supplied OH_ROOT are insufficiently validated before recursive deletion, allowing accidental or potentially attacker-influenced deletion outside the intended scope. Restrict suite paths to verified descendants of the subsystem directory and validate OH_ROOT before deletion.