Skip to content

Suggestion: Integrate security scanning for plugin submissionsΒ #2163

@elliotllliu

Description

@elliotllliu

Hi Dify team! πŸ‘‹

We built AgentShield and scanned all 493 plugins in this repo. Results:

  • 6 high-risk plugins (1.2%) β€” real eval()/exec() with dynamic input
  • 73 medium-risk (14.8%) β€” potential issues worth reviewing
  • 414 clean (84.0%) β€” no issues found
  • Average score: 93/100

Suggestion

Consider adding AgentShield as a CI check for new plugin PRs:

# .github/workflows/security-scan.yml
- name: Security Scan
  run: npx -y @elliotllliu/agent-shield scan ./plugins/${{ github.event.pull_request.title }} --json --fail-under 70

This would catch malicious plugins before they enter the marketplace. AgentShield:

  • Has native .difypkg support (auto-extract + scan)
  • Runs 100% offline (no data leaves CI)
  • Takes ~200ms per plugin
  • MIT licensed, zero cost

Full integration guide: https://github.com/elliotllliu/agent-shield/blob/main/docs/integration-guide.md

πŸ”— https://github.com/elliotllliu/agent-shield
πŸ“¦ https://www.npmjs.com/package/@elliotllliu/agent-shield

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions