neelianupama

Agentpay Guard Hackathon — Security skill for Claude Code

Security community

An AI-powered payment security platform that enables controlled autonomous transactions using Claude AI, LangGraph, and PayPal Sandbox.

How to install Agentpay Guard Hackathon

This entry records only its repository, not the path inside it, so there is no exact command to give. Open neelianupama/agentpay-guard-hackathon and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentpay Guard Hackathon does

An AI-powered payment security platform that enables controlled autonomous transactions using Claude AI, LangGraph, and PayPal Sandbox. Features intelligent risk assessment, spending policy enforcement, human-in-the-loop approvals, and searchable transaction auditing.

Alternatives in Security

  • Security Audit Stride — Chạy checklist bảo mật OWASP Top 10 + STRIDE trước bước review cuối của Tech Lead trong WF-REVIEW-CRIT (luôn c 90 ★
  • Ryk — Local guardrails for coding agents 42 ★
  • Crewforth — Enterprise engineering workflow for Claude Code — not just prompts 24 ★

README

AgentPay Guard

An AI-powered payment security platform that enforces controlled, auditable transactions through natural-language intent parsing, deterministic risk assessment, human-in-the-loop reviewer approvals, and a searchable Elasticsearch audit trail — all wired to the PayPal Sandbox Orders v2 API.


Problem and Solution

Autonomous AI agents that initiate payments create a new class of risk: no human reviews the intent, no policy engine checks the amount, and no audit trail records what happened.

AgentPay Guard addresses this by placing three gates in front of every payment:

  1. Intent parsing — a Groq LLM extracts structured payment details from a natural-language request and verifies that every extracted value actually appears in the original text.
  2. Risk assessment — a deterministic, rule-based engine scores the transaction and returns ALLOW, REVIEW, or BLOCK. No LLM is involved in the risk decision.
  3. Reviewer approval — high-risk payments require an explicit human reviewer action before any PayPal call is made. Capture is always a separate, explicit reviewer step after buyer authorization.

Architecture

graph TD
    Browser["Browser\nReact 19 + Vite\n:5173"]

    subgraph Backend ["FastAPI :8000"]
        Intent["/api/v1/intent/parse"]
        Risk["/api/v1/risk/assess"]
        Payments["/api/v1/payments/*"]
        Audit["/api/v1/audit/events"]
    end

    Groq["Groq LLM\n(intent extraction)"]
    PayPal["PayPal Sandbox\nOrders v2"]
    Elastic["Elasticsearch\n(audit trail)"]

    Browser -->|REST| Intent
    Browser -->|REST| Risk
    Browser -->|REST| Payments
    Browser -->|REST + Bearer token| Audit

    Intent -->|Groq SDK| Groq
    Payments -->|httpx| PayPal
    Audit -->|httpx| Elastic

The backend is a single FastAPI process. Payment records are held in memory — they are lost on restart. Elasticsearch provides durable audit storage when configured; without it, events are buffered in