Skip to content

v1.7.0

Latest

Choose a tag to compare

@arcjet-rei arcjet-rei released this 01 Dec 19:23
· 3 commits to main since this release
Immutable release. Only release title and notes can be modified.
v1.7.0
1acd901

1.7.0 (2026-12-01)

Highlights

You can now detect AI agents separately from other bots. The new CATEGORY:AI_AGENT bot category lets you allow or block AI agents as a group, and bot results now expose the bot's identity. For example, you can let search engines and AI agents through while blocking every other bot:

detectBot({
  mode: "LIVE",
  allow: ["CATEGORY:SEARCH_ENGINE", "CATEGORY:AI_AGENT"],
}),

Read about bot protection and AI agent detection

Guard now supports TanStack AI 1.x and version 1.x of the Anthropic SDK. Import @arcjet/guard/tanstack-ai/v1 or @arcjet/guard/claude-managed-agents/v1 to check tool calls against your Arcjet policy before they run. See all framework integrations

🔒 Security updates

Fixes GHSA-m3c8-7v76-7pgw

⚠ BREAKING CHANGES

Note

Guard now fails closed. A direct guard() or guard_sync() call returns DENY with reason ERROR when a required check has no result: a timeout, an unavailable response, a missing or invalid live-rule verdict, or no registered client. Previously these calls returned an ALLOW for which has_failed_open() was True. Code that blocks only on has_failed_open() must also block when conclusion is "DENY". Call decision.error_results() to see which check failed. Tool and action wrappers already blocked by default and still do, and on_guard_error="allow" on a wrapper still lets an unavailable check through. protect() is unchanged.

Note

A detect_sensitive_info rule changes in three ways. A name in allow or deny that is not a built-in type now raises ValueError when the rule is created, unless you pass detect or a backend; a name close to a built-in one raises even then. A LIVE rule that cannot scan its value now turns Arcjet's ALLOW into an ERROR decision, for which is_allowed() is false. Card numbers are detected with the Arcjet server's definition, listed below, and user@localhost is no longer detected as an email. docs/UPGRADING.md has the details.

  • guard: fail closed when required live checks are incomplete (#306)

🚀 New Features

  • guard: return detected content moderation categories (#303) (bc55ee8)
  • sync analyze 38753f0 and well-known-bots c413909 (#302) (bddbaf8)
  • sync well-known-bots 18631dc (#305) (8d05533)

🪲 Bug Fixes

  • guard: fail closed when required live checks are incomplete (#306) (a1b4cc6)
  • improve sensitive information handling (#307) (2783f49)
  • sensitive-info: use the shared card detection and validate entity names (#304) (46fbaa5)

🔨 Build System

Card number detection

Compared with 1.6.0:

  • Newly detected:
    • 13-digit numbers starting with 4 (Visa)
    • 53–55 at 16 digits (Mastercard)
    • 2200–2204 at 17 to 19 digits (Mir)
    • 300–305, 309, 36, 38 and 39 at 15, 17 or 18 digits (Diners Club)
    • 60 and 64 at 17 or 18 digits, and 65 at 17 to 19 digits (Discover and Maestro)
    • 61, 66, 68 and 69 at 16 to 19 digits (Maestro)
  • No longer detected:
    • 50, 56–59, 63 and 67 at 12 to 15 digits (Maestro). At these lengths the prefixes also match tax IDs, national IDs and phone numbers. Maestro is detected at 16 to 19 digits.
    • 18-digit numbers starting with 4. Visa issues 13, 16 and 19 digits.
    • 62 and 8100–8171 at 14 or 15 digits, and 8172–8199 at any length. UnionPay issues 16 to 19 digits, and its 81 range ends at 8171.
    • 306–308 at 14, 16 or 19 digits. Diners Club International issues 300–305 and 309.
    • 1800–1899, 2100–2199, 3500–3527 and 3590–3599 at 16 to 19 digits. JCB's 35 range is 3528–3589.
    • 2205–2220 and 2721–2799 at 16 digits. Mastercard's 2-series is 2221–2720.

Every other prefix and length 1.6.0 detected is still detected.