microsoft-365
Warn
Audited by Socket on Sep 22, 2026
1 alert found:
AnomalyAnomalyscripts/download-artifact.sh
LOWAnomalyLOW
scripts/download-artifact.sh
The code appears to be a legitimate SharePoint download utility and contains no clear malware indicators. It has a meaningful path-handling risk: unvalidated FILENAME and PHASE values can contain traversal components, and DEST_DIR is unrestricted, allowing downloads to unintended local paths and potentially overwriting writable files. Validate that client, phase, and filename are single path components or canonicalize and enforce containment beneath an approved directory. Use a securely created temporary file for logging if operation in a hostile multi-user environment is a concern.
Confidence: 98%Severity: 62%
Audit Metadata