[bug] Vigil SECURITY_TEXT misses "key leaked": a leaked-credential alert is held in…

オープン 初心者向け
#2,938 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
security

調査の方向性

LIFEOS/VIGIL/Route.ts の 86 行目付近から始めて、jobClass の leak 分岐が leaked (key|token|credential)s? に一致する箇所と、85 行目の周囲の ALWAYS_SEND ロジックを読んでください。issue の 3 つのケースを jobClass(id, text) と jobRoute(..., { policy: DEFAULT_POLICY, quiet: true }) で再現し、その後 regex を広げて名詞優先の順序も受け入れるようにしてください。両方の leaked-credential の表現が security/text を返し、control と非 credential のフレーズが引き続き一致しないときに完了です。

索引モデルが issue の本文から書いたものです。

説明

What happened

Vigil does not treat 'API key leaked' as a security alert; only 'leaked key' word order is caught, so the alert is held in quiet hours

Summary

LIFEOS/VIGIL/Route.ts:86 matches the leak branch only as leaked (key|token|credential)s?, i.e. the adjective before the noun. The natural report order puts the noun first, so jobClass returns ops and jobRoute holds it during quiet hours, although security is in ALWAYS_SEND (Route.ts:85).

Repro with jobClass(id, text) + jobRoute([...], { policy: DEFAULT_POLICY, quiet: true, ... }):

  • "Our API key leaked, rotate it now" -> class ops, action held (expected security / text)
  • "A token was leaked in the logs" -> class ops, action held (expected security / text)
  • control: "Leaked key found in the repo" -> security / text

Suggested fix: accept both orders, e.g. leaked (key|token|credential|secret|password)s?|(key|token|credential|secret|password)s? (is |are |was |were |has been |have been |got )?leaked. It still does not match "The keyboard leaked water".

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

主要言語
TypeScript
スター
19.9k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。