cloudflare-r2

Warn

Audited by Socket on Sep 15, 2026

5 alerts found:

Anomalyx4Security
AnomalyLOW
references/cloudflare-access-integration.md

The fragment appears to be legitimate Cloudflare Access and R2 integration guidance, not intentionally malicious code. No credential theft, arbitrary command execution, persistence, cryptomining, destructive behavior, or covert exfiltration is evident. Security review is warranted because JWT verification details are not shown, service-token authorization is broad and insufficiently demonstrated, request-controlled object keys are not constrained by an explicit allowlist, and download/time controls have correctness weaknesses. The assessment is limited to the visible fragment.

Confidence: 91%Severity: 63%
SecurityMEDIUM
references/common-patterns.md

The fragment implements legitimate R2 storage and delivery patterns, but several endpoints are insecure if exposed directly: missing authentication, unsanitized object-key components, client-controlled quota inputs, arbitrary user namespace selection for presigned uploads, and unvalidated long-lived CDN caching. These are security design risks and potential data-access or storage-abuse issues, not evidence of supply-chain malware. The assessment is limited to the shown portion and does not assume omitted code adds protections.

Confidence: 96%Severity: 72%
AnomalyLOW
references/advanced-features.md

The fragment does not show malware, exfiltration, persistence, or unauthorized system access. It does contain meaningful application security risks: unauthenticated-looking upload handling, trust in client-supplied userId, unsanitized filename-based R2 keys, possible storage exhaustion, and an unsafe hardcoded password example. Authentication, authorization, filename/key validation, quotas, cleanup, and production-grade key management should be enforced before deployment. Assessment is limited to the visible fragment and its examples.

Confidence: 93%Severity: 68%
AnomalyLOW
references/setup-guide.md

No malicious behavior or intentional obfuscation is evident. The code is legitimate R2 setup documentation, but the example handlers are insecure if deployed publicly because unauthenticated users can read, overwrite, create, or complete arbitrary objects accessible through the bucket binding. This is a security design risk rather than supply-chain malware.

Confidence: 98%Severity: 67%
AnomalyLOW
references/r2-sql-integration.md

The fragment is documentation and example integration code, not apparent malware. The principal security issue is unsafe dynamic SQL construction in the Grafana example: untrusted request fields are interpolated directly into a query and executed, potentially enabling SQL injection or unauthorized R2 data access. Validate allowed metrics, buckets, and paths against strict allowlists, validate date formats, escape or parameterize values where supported, and enforce authorization before execution. Malware indicators are absent.

Confidence: 98%Severity: 68%
Audit Metadata
Analyzed At
Sep 15, 2026, 12:04 AM
Package URL
pkg:socket/skills-sh/secondsky%2Fclaude-skills%2Fcloudflare-r2%2F@a3b6fbb1855dc56e3aec3b52ea52a2857fb56d9b353dca318bc4737c94c8b5a2
Security Audit — socket — cloudflare-r2