技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
ramp-security-basics【数据与研究】Establish least-privilege OAuth, secret, webhook, data, card, and financial-write controls for a Ramp integration. Use when threat modeling, reviewing a launch, or remediating controls. Trigger with "secure Ramp integration" or "Ramp security review".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Protect credentials and financial authority as separate assets. Minimize scopes and data paths, verify webhook authenticity from raw bytes, and require idempotent, approved, reconciled writes.
references/official-docs.md and re-check endpoint schemas, scopes, limits, and support status before a live operation.X-Ramp-Signature, an HMAC-SHA256 signature over the exact raw request body.Threat-model clients, redirects, token exchange, secret stores, API adapters, webhook ingress, queues, logs, card delivery, accounting writes, admin access, and support paths.
Split applications by trust boundary, request minimum scopes, isolate environments and tenants/entities, and assign rotation plus emergency revocation owners.
Verify webhook signatures over raw bytes before parsing, validate expected event type and business, deduplicate by event ID, and process asynchronously.
Prefer embedded card delivery; isolate any approved Vault service and prohibit PAN/CVV from logs, queues, analytics, support tools, and general databases.
Test stolen-token containment, replay, cross-tenant/entity denial, redirect/state failure, secret rotation, webhook-secret rotation, and financial-write reconciliation.
Security owns client and secret controls; privacy/data owners approve fields; finance/business owners approve write authority; Ramp approves restricted production card surfaces.
A threat model, client/scope matrix, secret inventory, webhook verification design, card-data boundary, write-control ledger, test receipts, and incident contacts.
| Condition | Response |
|---|---|
| Signature verification fails after JSON parsing | Capture and verify the exact raw body before any parser or middleware mutation. |
| A secret appears in source or logs | Revoke and rotate, restrict evidence, remove downstream copies, and add prevention tests. |
| A read client can write | Revoke or replace its token, narrow scopes/application design, and add a negative test. |
Secure a webhook receiver with raw-body HMAC verification, stable event-ID dedupe, tenant checks, and a durable queue.
Move card display to Ramp's hosted iframe and prove the backend no longer receives card details.