databricks-spark-structured-streaming
Fail
Audited by Snyk on Nov 21, 2026
Risk Level: CRITICAL
Full Analysis
CRITICAL E004: Prompt injection detected in skill instructions.
- Potential prompt injection detected (medium risk: 0.30). The skill is legitimate Spark documentation with no covert code, exfiltration, or impersonation, but its shared-cluster pattern at lines 170-175 of streaming-best-practices.md tells the agent to stop every active stream on the cluster, which could destroy other users' or jobs' work.
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (low risk: 0.10). The required runtime path is Kafka ingestion (kafka-streaming.md Quick Start and Pattern 1), where payloads come from user-supplied brokers and topics that an outsider could publish to only if the topic is externally writable. The agent does not consume that content as LLM context by default, and reading payloads, state, or DLQ contents would require it to actively query specific data, so I'm scoring it low under the recall-first override.
MEDIUM W013: Attempt to modify system services in skill instructions.
- Attempt to modify system services in skill instructions detected (low risk: 0.10). The skill is guidance for Spark Structured Streaming, but it does include operational mutations, such as
dbutils.fs.rm("/checkpoints/stream", recurse=True)to delete checkpoints,ALTER TABLEproperty changes, andspark.conf.setchanges. The checkpoint deletion is not described as irreversibly destroying operational state: the same file's text suggests backing up first and restoring from backup, and says Delta deduplication handles reprocessing. Without explicit unrecoverable-loss language tied to this operation, the tier is low.
Issues (3)
E004
CRITICALPrompt injection detected in skill instructions.
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
W013
MEDIUMAttempt to modify system services in skill instructions.
Audit Metadata