Token导航 LogoToken导航

Agent Skill · 研究检索

axiom-app-attest(Axiom 应用程序证明)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

axiom-app-attest 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 45,041。

总安装 875周安装 34GitHub Stars 873下载 280核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:axiom-app-attest(Axiom 应用程序证明)
来源仓库:https://github.com/charleswiltgen/axiom
仓库路径:skills/axiom-app-attest
安装命令:
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-app-attest
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-app-attest

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

实现设备绑定的应用完整性验证,防止欺诈行为。证明请求来自真实苹果设备且 payload 未被篡改。适用于购买验证、促销防滥用和服务器端 attestation 处理。

安装命令:npx skills add https://github.com/charleswiltgen/axiom --skill axiom-app-attest 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/axiom-app-attest

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/charleswiltgen/axiom --skill axiom-app-attest;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

axiom-app-attest 怎么安装?

在终端执行 npx skills add https://github.com/charleswiltgen/axiom --skill axiom-app-attest。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

axiom-app-attest 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

axiom-app-attest 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

axiom-app-attest 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

axiom-app-attest 用的人多吗?

公开数据是累计安装 875 次,近一周安装 34 次,下载 280 次,GitHub 873 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

axiom-app-attest 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
axiom-app-attest

Axiom 应用程序证明 · 本页

875873需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

App Attest

Device-backed app integrity verification for fraud prevention. Proves three things to your server: the request came from a genuine Apple device, running your genuine app, with an untampered payload.

When to Use This Skill

Use when you need to:

  • Verify requests come from legitimate app instances (not modified/cloned apps)
  • Prevent fraud in purchases, promotions, or competitive features
  • Implement DCAppAttestService attestation or assertion flows
  • Handle DeviceCheck 2-bit per-device state for promotional abuse
  • Build server-side validation for attestation objects or assertion signatures
  • Plan a gradual App Attest rollout for a large install base

Example Prompts

"How do I verify my app hasn't been tampered with?" "DCAppAttestService attestKey keeps failing with serverUnavailable" "How do I prevent users from claiming a free trial multiple times?" "What's the difference between attestation and assertion?" "How do I validate an attestation object on my server?" "isSupported returns false — should I block the user?" "We have 2M DAU, how do I roll out App Attest safely?" "How do I detect if someone is creating fake app instances?"

Red Flags

Signs you're headed for trouble:

  • Validating app integrity on-device — Modified apps control the runtime. Any local check can be patched out. Verification MUST happen server-side.
  • Not guarding with isSupported — DCAppAttestService crashes on unsupported devices. Always check before calling any API.
  • Blocking users when isSupported returns false — Some legitimate devices return false. Treat as risk signal, not hard block.
  • Reusing keys across multiple users on same device — One key per user per device. Shared keys break account-level trust association.
  • Enabling App Attest for all users at once — attestKey calls Apple's servers. At scale, rate limiting causes failures. Gradual rollout required (WWDC 2021-10244).
  • Using assertions for every API call — Cryptographic cost per call. Reserve for sensitive operations (purchases, account changes), not routine fetches.
  • Discarding key on serverUnavailable error — Transient Apple server issue. Retry with same key. Only discard on other errors.
  • Skipping counter validation on server — Counter must be ever-increasing. Without this, replay attacks succeed.

Three Properties Verified

App Attest proves three things about each request:

PropertyWhat It ProvesHow
Genuine deviceRequest comes from real Apple hardwareHardware-backed key in Secure Enclave
Genuine appYour app binary, unmodifiedApp identity hash in attestation
Untampered payloadRequest data hasn't been alteredDigest signing in assertions

Privacy design: Anonymous. No hardware identifiers. Keys don't survive reinstall/migration/restore. Apple can't correlate across apps or users.

Key Generation

import DeviceCheck

func generateAppAttestKey(for userId: String) async throws -> String {
    let service = DCAppAttestService.shared

    guard service.isSupported else {
        // NOT an error — use as risk signal, not blocker
        reportUnattestedDevice()
        throw AppAttestError.unsupported
    }

    let keyId = try await service.generateKey()
    // Cache persistently — one key per user per device
    UserDefaults.standard.set(keyId, forKey: "appAttestKeyId_\(userId)")
    return keyId
}

Key lifecycle: One key per user per device. Cache keyId persistently (Keychain or UserDefaults). Keys don't survive reinstall, migration, or restore. App Clips share identity with full app. Generate new key on sign-out.

Attestation Flow

Attestation registers the key with Apple and your server. Happens once per key.

digraph attestation {
    "Server issues\nchallenge" [shape=ellipse];
    "SHA256 hash\nchallenge" [shape=box];
    "attestKey API\n(Apple servers)" [shape=box];
    "Send attestation\nto your server" [shape=box];
    "Server validates\ncertificate chain" [shape=box];
    "Store public key\n+ key association" [shape=doublecircle];

    "Error?" [shape=diamond];
    "serverUnavailable?" [shape=diamond];
    "Retry same key" [shape=box];
    "Discard key\ngenerate new" [shape=box];

    "Server issues\nchallenge" -> "SHA256 hash\nchallenge";
    "SHA256 hash\nchallenge" -> "attestKey API\n(Apple servers)";
    "attestKey API\n(Apple servers)" -> "Error?" ;
    "Error?" -> "Send attestation\nto your server" [label="success"];
    "Error?" -> "serverUnavailable?" [label="error"];
    "serverUnavailable?" -> "Retry same key" [label="yes"];
    "serverUnavailable?" -> "Discard key\ngenerate new" [label="no"];
    "Send attestation\nto your server" -> "Server validates\ncertificate chain";
    "Server validates\ncertificate chain" -> "Store public key\n+ key association";
}
func attestKey(userId: String) async throws {
    guard let keyId = storedKeyId(for: userId) else {
        throw AppAttestError.noKey
    }

    // 1. Get one-time challenge from YOUR server (minimum 16 bytes)
    let challenge = try await server.fetchAttestationChallenge()

    // 2. Hash the challenge
    let hash = Data(SHA256.hash(data: challenge))

    // 3. Request attestation from Apple
    do {
        let attestation = try await service.attestKey(keyId, clientDataHash: hash)
        // 4. Send attestation object to YOUR server for validation
        try await server.verifyAttestation(attestation, keyId: keyId, challenge: challenge)
    } catch DCError.serverUnavailable {
        // Transient — retry with SAME key later
        scheduleAttestationRetry(keyId: keyId, userId: userId)
    } catch {
        // Other error — key is compromised or invalid
        // Discard and generate a new key
        clearStoredKey(for: userId)
        try await generateAndAttestNewKey(userId: userId)
    }
}

Challenge requirements: Server-generated, single-use, minimum 16 bytes, short-lived (expire after minutes, not hours).

Assertion Flow

Assertions prove ongoing request integrity. No Apple server involvement — on-device only.

func assertRequest(payload: Data, userId: String) async throws -> Data {
    guard let keyId = storedKeyId(for: userId) else {
        throw AppAttestError.noKey
    }

    // Hash the payload you want to protect
    let hash = Data(SHA256.hash(data: payload))

    // Generate assertion (on-device, no network)
    let assertion = try await service.generateAssertion(keyId, clientDataHash: hash)

    // Send assertion + original payload to server
    // Server verifies signature and checks counter
    return assertion
}

When to assert: Reserve for moments that cost you money or trust if faked.

AssertDon't Assert
In-app purchasesContent fetches
Account changes (email, password)Read-only API calls
Competitive actions (leaderboard scores)Analytics events
Promotional claims (free trial)UI configuration
Reward redemptionsSearch queries

Performance: Secure Enclave operations. Fast enough for individual actions, expensive on every request.

Server-Side Validation

Your server does the actual trust verification. The app only generates cryptographic material.

Attestation Validation (once per key)

  1. Certificate chain — Verify roots to Apple's App Attest root CA (Apple Private PKI)
  2. Nonce — Recompute SHA256(challenge || clientDataHash), match against credential certificate
  3. App identity hash — SHA256(teamId + "." + bundleId) must match your app
  4. Counter — Store initial value (assertions increment from here)
  5. Key association — Extract and store public key, associate with user account

Assertion Validation (per sensitive request)

  1. Signature — Verify using stored public key from attestation
  2. App identity hash — Must match attestation's hash (prevents cross-app replay)
  3. Counter — Must be strictly greater than last seen value (replay protection)
  4. Client data hash — Recompute from request payload, must match what was signed

Counter is critical: Without strictly-increasing counter validation, replay attacks succeed indefinitely.

Rollout Strategy

From WWDC 2021-10244: attestKey makes a network call to Apple's servers. Apple rate-limits these calls per app.

Install BaseRecommended Ramp Time
<100K DAUDays
~1M DAU~1 day gradual ramp
~100M DAUWeeks
~1B DAU1+ month gradual ramp

Gradual Enablement Pattern

func shouldEnableAppAttest(userId: String) -> Bool {
    guard DCAppAttestService.shared.isSupported else { return false }
    // Server controls rollout percentage — start at 1%, ramp daily
    return server.isAppAttestEnabled(for: userId)
}

Rollout process: Start at 1%. Monitor attestation success rate. If above 95%, double daily. If rate limiting errors spike, pause. Treat unattested requests as lower-trust during rollout (additional fraud signals), not blocked.

DeviceCheck Integration

DeviceCheck stores 2 bits of state per device on Apple's servers. Different purpose from App Attest.

FeatureApp AttestDeviceCheck
PurposeVerify app integrityTrack per-device state
Survives reinstallNoYes (tied to hardware)
Apple serversAttestation onlyEvery query

Promotional Fraud Prevention

import DeviceCheck

func checkTrialEligibility() async throws -> Bool {
    guard DCDevice.current.isSupported else { return true }

    let token = try await DCDevice.current.generateToken()
    // Server calls Apple: POST https://api.devicecheck.apple.com/v1/query_two_bits
    let state = try await server.queryDeviceState(token: token)
    return !state.bit0  // bit0 = has claimed trial
}

func markTrialClaimed() async throws {
    let token = try await DCDevice.current.generateToken()
    // Server calls Apple: POST https://api.devicecheck.apple.com/v1/update_two_bits
    try await server.updateDeviceState(token: token, bit0: true)
}

2 bits, your rules: Apple stores bits + timestamp. Semantics are yours (e.g., bit0=trial claimed, bit1=abuse flagged). Reset on your schedule. Shared across all apps from the same developer team — coordinate meaning across your portfolio.

Risk Metric Service

After attestation, redeem the receipt with Apple to get risk metrics:

Server-side: POST receipt to https://data.appattest.apple.com/v1/attestationData (use data-development.appattest.apple.com for sandbox). Response includes approximate key count for the device.

How to use: Most devices have 1-3 keys. High key counts signal an attacker creating many fake identities. Redeem periodically (Apple rate-limits), establish a baseline for your app, and combine with other fraud signals (velocity, behavioral analysis).

Anti-Rationalization Table

RationalizationWhy It FailsWhat To Do Instead
"We'll validate integrity on-device"Modified apps control the runtime and can patch out any local checkAll validation on your server. Device only generates crypto material.
"isSupported is always true on modern devices"Some configurations and enterprise MDM setups return falseAlways guard. Handle false as risk signal, not crash.
"One key per device is enough"Multi-user devices need per-user keys for accurate account associationOne key per user per device. New key on sign-out.
"We'll enable App Attest for everyone on launch day"Apple rate-limits attestKey calls. Large install bases will see widespread failures.Server-controlled gradual rollout. Monitor success rate.
"Assert every API call for maximum security"Secure Enclave operations have real cost. Assertion latency on every request degrades UX.Assert sensitive operations only. Use session tokens for routine calls.
"serverUnavailable means the key is bad"It's a transient Apple server issue. Discarding the key forces re-attestation unnecessarily.Retry with same key. Only discard on non-transient errors.
"We don't need counter validation"Without strictly-increasing counters, replay attacks succeed indefinitely.Store counter server-side. Reject assertions with counter <= last seen.
"DeviceCheck replaces App Attest"DeviceCheck is 2-bit state storage, not integrity verification. Different threat models.Use both: App Attest for integrity, DeviceCheck for per-device flags.

Pressure Scenarios

Scenario 1: "Block users who fail attestation"

Pressure: "If they can't attest, they're probably running a modified app. Block them."

Reality: isSupported returns false on legitimate devices (older hardware, enterprise MDM, simulator). During rollout, most users simply haven't been enrolled yet. Blocking = blocking real customers.

Correct action: Trust tiers on server. Attested = high trust. Unattested = lower trust with additional fraud signals. Never hard-block on attestation failure alone.

Push-back template: "Some legitimate devices return isSupported=false. Let's use attestation as one signal in a risk score — high trust for attested, additional checks for unattested."

Scenario 2: "Enable App Attest for everyone at once"

Pressure: "We've been building this for weeks. Ship it to everyone."

Reality: attestKey calls Apple's servers. Apple rate-limits per app. At 5M DAU, flipping the switch causes a thundering herd — mass failures, error floods, confused users. WWDC 2021-10244 explicitly recommends gradual rollout.

Correct action: Server-controlled rollout starting at 1%. At 5M DAU, expect ~1 week to full rollout.

Push-back template: "Apple rate-limits attestKey calls — their WWDC session recommends gradual rollout. I'll set up server-side percentage control starting at 1%, ramping to 100% over about a week."

Checklist

Before shipping App Attest:

Key Generation:

  • isSupported checked before any DCAppAttestService call
  • Graceful handling when isSupported returns false (risk signal, not block)
  • Key ID cached persistently per user
  • One key per user per device (not shared)

Attestation:

  • Challenge from server is single-use, minimum 16 bytes, short-lived
  • serverUnavailable retries with same key
  • Other errors discard key and generate new
  • Attestation object sent to server for validation (not validated on-device)

Assertion:

  • Used only for sensitive operations (not every API call)
  • Payload hash covers the actual request data being protected
  • Server validates signature with stored public key
  • Server validates counter is strictly increasing

Server:

  • Certificate chain validated against Apple's App Attest root CA
  • App identity hash (teamId + bundleId) verified
  • Counter stored and checked for strict increase
  • Public key associated with user account

Rollout:

  • Server-controlled percentage (not client-side)
  • Gradual ramp with monitoring
  • Unattested users handled gracefully (lower trust, not blocked)
  • Rollback plan if attestation success rate drops

Resources

WWDC: 2021-10244

Docs: /devicecheck, /devicecheck/establishing-your-app-s-integrity, /devicecheck/validating-apps-that-connect-to-your-server

Skills: axiom-cryptokit

平台分布

Codex

37.05%
按下载量换算104

Claude

31.04%
按下载量换算87

Cursor

18.6%
按下载量换算52

Gemini CLI

9.03%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills