Skip to content

docs(threat-model): bound patterns in automations' conditions under ReDoS - #551

Merged
adeelahmad merged 2 commits into
mainfrom
claude/project-thread-li6m25
Oct 18, 2026
Merged

adeelahmad merged 2 commits into
mainfrom
claude/project-thread-li6m25

Conversation

@adeelahmad

Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: the threat model's ReDoS line covered only Cypher and admin regexes, though members now write matches patterns in automations' conditions (#434) that run on outside text such as emails.

After: it says how those patterns are bounded: nested repeats and repeated alternatives that start alike are refused when saved, a value is read only to 20,000 characters (match.MAX_INPUT), and a pattern gives up after 50 ms (match.PATTERN_SECONDS).

Workflow studio module M5, the threat-model follow-up for new surface.

Motivation and Context

AGENTS.md: new attack surface goes into the threat model.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests. (Docs only; ci/validate_threat_model.py passes.)
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

Done questions (AGENTS.md)

  • Goal: the threat model covers the new pattern surface; merged on green CI.
  • Agents: n/a, docs.
  • Zero setup: n/a.
  • Fewest clicks: n/a.
  • Configurable: n/a.
  • Light: n/a.
  • Private and secure: this is the threat-model update.
  • Cost: n/a.
  • User decides: n/a.
  • Upgrades: n/a.
  • Honest: describes merged code (match.py limits).
  • Tested and documented: validator passes.
  • Open: n/a.
  • Reported in the project thread.
  • Reuse: n/a.

Generated by Claude Code

…eDoS

Members write the matches patterns of automations' conditions and they run
on outside text; the threat model now says how they are bounded: nested
repeats and repeated alternatives that start alike are refused, a value is
read only so far and a slow pattern gives up.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AjJqXgjj1cNdKGRQbX5frb
@adeelahmad adeelahmad self-assigned this Oct 18, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AjJqXgjj1cNdKGRQbX5frb
@adeelahmad
adeelahmad merged commit e4da6b9 into main Oct 18, 2026
10 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-li6m25 branch October 18, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants