Skip to content

Add Agent Threat Rules — local AI-agent threat-detection tool plugin - #2584

Merged
crazywoola merged 1 commit into
langgenius:mainfrom
eeee2345:add-agent-threat-rules
Jun 22, 2026
Merged

crazywoola merged 1 commit into
langgenius:mainfrom
eeee2345:add-agent-threat-rules

Conversation

@eeee2345

Copy link
Copy Markdown
Contributor

Plugin Submission

Plugin information

Submission type

  • New plugin
  • Version update

What changed

A Tool plugin exposing the open Agent Threat Rules (ATR) engine as a scan tool. It scans text for AI-agent security threats — prompt injection, tool poisoning, credential exfiltration, and skill supply-chain attacks — and returns a structured verdict (flagged, verdict, matched rule_ids, severity, confidence). Runs fully local via the pyatr package; no API key, no data leaves the host. Callable from Agent, Workflow, and Chatflow nodes.

Risk level

  • Low risk
  • Medium risk
  • High risk

Local text pattern-matching only; no code/command/SQL execution, no network calls during scanning.

Required checks

  • I have read and followed the Marketplace submission requirements.
  • I have read and comply with the Plugin Developer Agreement.
  • I tested this plugin locally; detection runs via the bundled pyatr engine (no external service).
  • The package contains only files needed at runtime.
  • The package does not contain secrets, local credentials, .env files, .git directories, virtual environments, caches, logs, or IDE files.
  • The package does not contain executables or bundled binaries (pure Python source + an SVG icon).
  • The plugin README includes setup steps, usage, required APIs/credentials (none — local), and the source repository link.
  • The plugin includes PRIVACY.md (no data collection) and manifest.yaml references it.
  • All user-facing text is in English.

Security and privacy notes

None. Detection is local pattern evaluation; the plugin performs no command/code/SQL execution, no SSH/SFTP, no browser automation, no arbitrary URL fetching, and no network calls during scanning. It does not handle health, financial, biometric, or children's data. Built with the official dify plugin package CLI (v0.6.2).

@crazywoola crazywoola left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM

Decision: Approve

Local Check Results

Check Status Detail Required action
PR content language ✅ Pass PR title/body CJK ratio=0.0% (zh=0, en=1698, ignored_zh=0, allowed_zh<=0) None.
Project structure ✅ Pass All expected files present: manifest.yaml, README.md, PRIVACY.md. _assets/: yes. None.
Manifest author ✅ Pass author is valid. None.
Icon validation ✅ Pass icon exists: _assets/icon.svg None.
Version check ✅ Pass version 0.1.0 is available. None.
README language ✅ Pass README.md CJK ratio=0.0% (zh=0, en=823, allowed_zh<=0) None.
PRIVACY.md ✅ Pass PRIVACY.md exists and is non-empty. None.
Dependency install ✅ Pass requirements installed successfully. None.
dify_plugin version ✅ Pass dify_plugin version 0.9.1 satisfies >= 0.9.0. None.
Install test ✅ Pass plugin install test passed. None.
Packaging test ✅ Pass packaging check passed. None.

@crazywoola
crazywoola merged commit a2469ef into langgenius:main Jun 22, 2026
eeee2345 added a commit to Agent-Threat-Rule/agent-threat-rules that referenced this pull request Jun 25, 2026
Every PR state below was live-verified with gh before editing.

Tier 2 — merged integrations added (all confirmed merged):
- Dify (langgenius/dify-plugins#2584, merged by maintainer crazywoola) — framed
  as a reviewed listing in the Dify plugin marketplace, NOT a Dify-core adoption
- rulezet (rulezet/rulezet-core#50, merged by an external maintainer)
- Tencent AI-Infra-Guard (Tencent/AI-Infra-Guard#422, merged by a Tencent
  maintainer) — real MCP threat-detection rules
- AMD GAIA (amd/gaia#1809, merged by an AMD maintainer) — docs integration
- Google ADK — corrected: the adk-python sample PR (#6130) closed unmerged, but
  the docs integration google/adk-docs#1850 was merged by a Google maintainer,
  so Google is an active adopter via docs rather than a removed entry

Tier 3 — merged awesome-list references added:
- cckuailong/awesome-gpt-security#39
- Joe-B-Security/awesome-prompt-injection#45
- ProjectRecon/awesome-ai-agents-security#17

The website ecosystem page renders ADOPTERS.md directly; these were merged wins
not yet reflected, plus a stale Google entry that pointed at a closed PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants