sharepoint-api
Warn
Audited by Socket on Aug 15, 2026
1 alert found:
AnomalyAnomalyscripts/list-files.sh
LOWAnomalyLOW
scripts/list-files.sh
No direct malware behavior is evident in this snippet; it primarily performs a SharePoint file listing and formats results. However, it contains meaningful supply-chain/runtime security risks: it executes a local `.config` via `source` (arbitrary code execution if compromised) and it uses `agent-browser ... eval` to run JavaScript in a privileged automation context, with network destinations derived from environment variables without allowlisting. The CAML/ViewXml is built without escaping, which can enable malformed or manipulated queries. These are the main concerns to review in surrounding project/deployment trust assumptions.
Confidence: 62%Severity: 55%
Audit Metadata