TRE Python バインディングによる ReDoS 耐性デモの紹介
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
Simon Willison が、Redis の開発者である antirez の推薦を受け、Ville Laurikari が開発した正規表現エンジン TRE を利用し、Claude Code に実験的な Python バインディングを作成させた。この取り組みは、ReDoS(再帰的デコードによるサービス停止)に対する耐性を検証するデモとして公開された。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るSource Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
研究: TRE Python binding — ReDoS robustness demo
もしこれが antirez にとって十分良いもの として Redis に追加されるなら、Ville Laurikari の TRE 正規表現エンジンももう少し詳しく探る価値があると考えました。
私は Claude Code に実験的な Python バインディング(ctypes を使用)を作成させ、ライブラリに対していくつかの悪意のある正規表現攻撃を試行させました。主にバックトラックサポートがないおかげで、TRE は Python の標準ライブラリ実装よりもはるかにこれらの攻撃を処理します。
原文を表示
Research: TRE Python binding — ReDoS robustness demo
If it's good enough for antirez to add to Redis I figured Ville Laurikari's TRE regular expression engine was worth exploring in a little more detail.
I had Claude Code build an experimental Python binding (it used ctypes) and try some malicious regular expression attacks against the library. TRE handles those much better than Python's standard library implementation, thanks mainly to the lack of support for backtracking.
Tags: security, python, regular-expressions, c, ctypes
同じ出来事を3媒体で確認
同じ出来事を扱う別媒体の記事です。見出しと公開時刻を比較できます。
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み