Skip to content

feat(catalog): AGT MCPSecurityScanner for catalog drift and tool poisoning - #112

Merged
imran-siddique merged 1 commit into
mainfrom
impl/agt-security-scanner
Jun 5, 2026
Merged

feat(catalog): AGT MCPSecurityScanner for catalog drift and tool poisoning#112
imran-siddique merged 1 commit into
mainfrom
impl/agt-security-scanner

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Integrates AGT's MCPSecurityScanner instead of the manual hash-delta check.

CatalogScanner.scan_catalog() — at load time: registers all tools (SHA-256 fingerprinting) and scans for hidden instructions (P2.1) and typosquatting (P4.1).
CatalogScanner.check_drift() — at runtime: check_rug_pull() on notifications/tools/list_changed (P4.2).

Graceful fallback to no-op when agent-os-kernel not installed.
10 unit tests including rug-pull detection.

Closes #58

- catalog/scanner.py: CatalogScanner wraps AGT MCPSecurityScanner:
  scan_catalog() — registers all tools at load time (SHA-256 fingerprinting)
  and scans for hidden instructions (P2.1 tool poisoning) and typosquatting
  (P4.1); check_drift() — check_rug_pull() on notifications/tools/list_changed
  (P4.2 rug-pull detection); graceful fallback if agent-os-kernel not installed
- 10 unit tests: clean scan, flagged threat, all tools registered, rug-pull
  detection, graceful no-op without AGT

Closes #58

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit 9569386 into main Jun 5, 2026
@imran-siddique
imran-siddique deleted the impl/agt-security-scanner branch July 29, 2026 23:20
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.

[catalog] Tool catalog drift detection — rug-pull via tool-definition mutation

1 participant