[New Plugin] ATR (Agent Threat Rules) detection plugin#1652
Open
eeee2345 wants to merge 1 commit into
Open
Conversation
Signed-off-by: Adam Lin <adam@agentthreatrule.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds ATR (Agent Threat Rules) as a detection plugin for Portkey gateway.
ATR is an MIT-licensed open detection rule format for AI agent security threats. The plugin mirrors the existing Lasso Security integration pattern under
plugins/lasso/—manifest.json+ handler + tests + README underplugins/atr/.What it does
rulesparameteragent-threat-rulesnpm package at config-construction timeFiles
plugins/atr/manifest.json— plugin manifest, single functionscan, no credentialsplugins/atr/scan.ts— handler implementationplugins/atr/scan.test.ts— 7 unit tests, all offline (no network), all passingplugins/atr/README.md— configuration and usageConfig
Local verification
npm run format:check— cleannpx jest plugins/atr/— 7 of 7 passnpm run pre-push(build + start-server) — clean (gateway boots with ATR plugin present)Production context
ATR rule format is used in production at: Microsoft Agent Governance Toolkit (PRs #908 and #1277), Cisco AI Defense skill-scanner (PRs #79 and #99), MISP/CIRCL via misp-taxonomies #323 and misp-galaxy #1207, Gen Digital Sage (PR #33), OWASP Agent Security Resource Hub (PR #74). Current release: v2.2.2, 425 rules, MIT.
Repo: https://github.com/Agent-Threat-Rule/agent-threat-rules
Happy to adjust the plugin contract to whatever shape the maintainers prefer (for example, fetching a pinned rules pack at startup vs inline rules, or splitting into beforeRequest-only / afterRequest-only functions).