axiom audit iap

Engineering Community

Skill notes

Tool Use Is Mandatory

Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning. Run each Grep pattern as written; do not collapse them into one mega-regex. Run the Read verifications each section calls for. "Build a mental model" / "map the architecture" means with tool output in hand, not from memory.

Files to Exclude

Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*

Step 1: Identify StoreKit Version and Entry Points

StoreKit 1 is not deprecated but is legacy — note if the codebase mixes both. Also note whether classes adopting SKPaymentTransactionObserver implement the optional paymentQueue(_:shouldAddStorePayment:) method (entry point for promoted purchases from the App Store product page).

Step 2: Identify Product Types in Use

Note where each subscription?.status read site lives — single read at launch vs. re-checked on app foreground / after Transaction.updates fires / on a timer.

Step 3: Map Purchase Flow and Architecture

Read 2-3 key IAP files to understand: Where products are loaded (single StoreManager vs scattered views) How Transaction.updates listener is wired (app launch, Task lifetime) Where .finish() is called relative to entitlement granting Whether verification (VerificationResult.verified) happens before granting

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Engineering
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
94 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@CharlesWiltgen · MIT
Token usage
Heavy
Setup complexity
Guided setup
External API key
Not required
Operating systems
Unspecified (assume cross-platform)
Runtime requirements
No explicit requirements detected
Detected file/system behavior
  • Read-only
  • Write / modify
  • Shell exec
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview axiom-audit-iap.preview
# 2. Missing VerificationResult Check (CRITICAL/HIGH — Security)

**Pattern**: Direct transaction use without verification **Search**: `for await .* in Transaction\.updates`, `Transaction\.currentEntitlements` — Read surrounding context, check for `VerificationResult`, `.verified`, `.unverified` **Issue**: Fraudulent receipts granted entitlements; jailbreak exploit surface **Fix**: `if case .verified(let transaction) = result` before granting

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.