Pattern Catalog, page 29
The AI-Built Software Pattern Catalog — 2,557 active patterns across 119 bundles. Each pattern describes a specific failure mode in AI-built software, with citation against CWE, OWASP, WCAG, NIST, and other standards. Detection criteria ship inside the audits (free for Stack Scan patterns, Pro for the rest); the published definitions, rationale, and remediation are licensed CC-BY-4.0.
2,557 / 2,557
- Idempotency keys are used on all state-changing charge requestsab-001158 · ecommerce-payment-securityProhigh
- API keys and secrets are loaded exclusively from environment variablesab-001157 · ecommerce-payment-securityProhigh
- Raw card numbers (PAN) are never sent to the backend; tokenization is usedab-001155 · ecommerce-payment-securityProcritical
- Secret API keys are not exposed to the client-side bundleab-001153 · ecommerce-payment-securityProcritical
- Official provider SDKs are used over custom card input fieldsab-001159 · ecommerce-payment-securityProhigh
- Tokenization occurs strictly client-side via provider SDKab-001156 · ecommerce-payment-securityProcritical
- Webhook signature verification is implemented on all payment webhooksab-001154 · ecommerce-payment-securityProcritical
- Correct currency code usage to prevent conversion errorsab-001175 · ecommerce-payment-securityProlow
- Audit logging of failed payment attempts for security monitoringab-001174 · ecommerce-payment-securityProlow
- Graceful handling of insufficient funds vs generic declinesab-001173 · ecommerce-payment-securityProlow
- Clear and descriptive statement descriptors are set in charge payloadsab-001176 · ecommerce-payment-securityProlow
- Webhook retry logic is handled with idempotent processing designab-001172 · ecommerce-payment-securityProlow
- Webhook endpoints return 200 OK quickly before complex processingab-001171 · ecommerce-payment-securityProlow
- Address Verification System (AVS) checks are enabledab-001167 · ecommerce-payment-securityPromedium
- CVC/CVV verification is enabledab-001168 · ecommerce-payment-securityPromedium
- Decline codes are logged internally but not exposed to the clientab-001170 · ecommerce-payment-securityPromedium
- Generic error messages are shown to users; no raw exceptions or stack traces exposedab-001169 · ecommerce-payment-securityPromedium
- Card details are not logged in browser console or analytics eventsab-001166 · ecommerce-payment-securityPromedium
- Duplicate payment prevention logic existsab-001165 · ecommerce-payment-securityProhigh
- HTTPS is enforced on all payment and checkout pagesab-001161 · ecommerce-payment-securityProhigh
- No sensitive payment data stored in localStorage or sessionStorageab-001160 · ecommerce-payment-securityProhigh
- Rollback or cleanup logic exists if post-payment database updates failab-001164 · ecommerce-payment-securityProhigh
- Rate limiting is applied to payment submission endpointsab-001163 · ecommerce-payment-securityProhigh
- 3D Secure (SCA) flow is implemented and handled correctlyab-001162 · ecommerce-payment-securityProhigh
- Confirmed orders generate confirmation record or flagab-001136 · ecommerce-order-managementProlow
- Order creation stores correct initial stateab-001133 · ecommerce-order-managementProcritical
- Delivered status records delivery date/timeab-001137 · ecommerce-order-managementProlow
- Order history log captures all state changes with timestampsab-001135 · ecommerce-order-managementProhigh
- Order state transitions follow valid sequenceab-001134 · ecommerce-order-managementProcritical
- Shipped status includes or links to tracking informationab-001138 · ecommerce-order-managementProhigh
- Cancellation notification sent to customerab-001148 · ecommerce-order-managementProlow
- Order confirmation email sent on state transition to confirmedab-001145 · ecommerce-order-managementProcritical
- Delivery notification sent on state transition to deliveredab-001147 · ecommerce-order-managementPromedium
- Refund initiation notification sent to customerab-001149 · ecommerce-order-managementProlow
- Shipment notification sent on state transition to shippedab-001146 · ecommerce-order-managementProhigh
- Cancellation updates order status and creates history entryab-001141 · ecommerce-order-managementProhigh
- Partial refunds supported and recordedab-001143 · ecommerce-order-managementPromedium
- Post-shipment cancellation requires special handling or admin approvalab-001140 · ecommerce-order-managementPromedium
- Pre-shipment cancellation allowed and functionalab-001139 · ecommerce-order-managementProhigh
- Refund status tracked separately from order statusab-001142 · ecommerce-order-managementProhigh
- Refund initiated within configured timeframe of cancellationab-001144 · ecommerce-order-managementProlow
- Admin can filter orders by status, date range, or total amountab-001152 · ecommerce-order-managementProlow
- Admin order detail view displays full lifecycle historyab-001151 · ecommerce-order-managementPromedium
- Admin can search orders by order ID or customer identifierab-001150 · ecommerce-order-managementProhigh
- Discount logic correctly applies percentage or fixed amountsab-001124 · ecommerce-catalogProlow
- Sale prices are validated to be less than base pricesab-001123 · ecommerce-catalogPromedium
- Each variant has a unique SKU or identifierab-001120 · ecommerce-catalogProhigh
- Variant selection prevents invalid combinationsab-001121 · ecommerce-catalogProhigh
- Variant options are clearly defined and enumeratedab-001119 · ecommerce-catalogProhigh
- Variant prices override base price when applicableab-001122 · ecommerce-catalogProhigh